# Send ImageRouter to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "image-router",
    "name": "ImageRouter",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/DaWe35/image-router",
    "canonicalUrl": "https://clawhub.ai/DaWe35/image-router",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/image-router",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=image-router",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "image-router",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T07:56:34.675Z",
      "expiresAt": "2026-05-11T07:56:34.675Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=image-router",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=image-router",
        "contentDisposition": "attachment; filename=\"image-router-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "image-router"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/image-router"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/image-router",
    "downloadUrl": "https://openagent3.xyz/downloads/image-router",
    "agentUrl": "https://openagent3.xyz/skills/image-router/agent",
    "manifestUrl": "https://openagent3.xyz/skills/image-router/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/image-router/agent.md"
  }
}
```
## Documentation

### ImageRouter Image Generation

Generate images with any model available on ImageRouter using curl commands.

### Available models

The test/test model is a free dummy model that is used for testing the API. It is not a real model, therefore you should use other models for image generation.

Get top 10 most popular models:

curl -X POST 'https://backend.imagerouter.io/operations/get-popular-models'

Search available models by name:

curl "https://api.imagerouter.io/v1/models?type=image&sort=date&name=gemini"

Get all available models:

curl "https://api.imagerouter.io/v1/models?type=image&sort=date&limit=1000"

### Quick Start - Text-to-Image

Basic generation with JSON endpoint:

curl 'https://api.imagerouter.io/v1/openai/images/generations' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  --json '{
    "prompt": "a serene mountain landscape at sunset",
    "model": "test/test",
    "quality": "auto",
    "size": "auto",
    "response_format": "url",
    "output_format": "webp"
  }'

### Text-to-Image with multipart/form-data:

curl 'https://api.imagerouter.io/v1/openai/images/edits' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  -F 'prompt=a cyberpunk city at night' \\
  -F 'model=test/test' \\
  -F 'quality=high' \\
  -F 'size=1024x1024' \\
  -F 'response_format=url' \\
  -F 'output_format=webp'

### Image-to-Image (with input images):

curl 'https://api.imagerouter.io/v1/openai/images/edits' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  -F 'prompt=transform this into a watercolor painting' \\
  -F 'model=test/test' \\
  -F 'quality=auto' \\
  -F 'size=auto' \\
  -F 'response_format=url' \\
  -F 'output_format=webp' \\
  -F 'image[]=@/path/to/your/image.webp'

### Multiple images (up to 16):

curl 'https://api.imagerouter.io/v1/openai/images/edits' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  -F 'prompt=combine these images' \\
  -F 'model=test/test' \\
  -F 'image[]=@image1.webp' \\
  -F 'image[]=@image2.webp' \\
  -F 'image[]=@image3.webp'

### With mask (some models require mask for inpainting):

curl 'https://api.imagerouter.io/v1/openai/images/edits' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  -F 'prompt=fill the masked area with flowers' \\
  -F 'model=test/test' \\
  -F 'image[]=@original.webp' \\
  -F 'mask[]=@mask.webp'

### Parameters

model (required): Image model to use (see https://imagerouter.io/models)
prompt (optional): Text description for generation. Most models require a text prompt, but not all.
quality (optional): auto (default), low, medium, high
size (optional): auto (default) or WIDTHxHEIGHT (e.g., 1024x1024).
response_format (optional):

url (default) - Returns hosted URL
b64_json - Returns base64-encoded image
b64_ephemeral - Base64 without saving to logs


output_format (optional): webp (default), jpeg, png
image[] (optional): Input file for Image-to-Image (multipart only)
mask[] (optional): Editing mask for inpainting (multipart only)

### Response Format

{
  "created": 1769286389027,
  "data": [
    {
      "url": "https://storage.imagerouter.io/fffb4426-efbd-4bcc-87d5-47e6936bf0bb.webp"
    }
  ],
  "latency": 6942,
  "cost": 0.004
}

### Endpoint Comparison

FeatureUnified (/edits)JSON (/generations)Text-to-Image✅✅Image-to-Image✅❌Encodingmultipart/form-dataapplication/json

### Tips

Both /v1/openai/images/generations and /v1/openai/images/edits are the same for the unified endpoint
Use JSON endpoint for simple text-to-image when you don't need file uploads
Use unified endpoint when you need Image-to-Image capabilities
Check model features at https://imagerouter.io/models (quality support, edit support, etc.)
Get your API key at https://imagerouter.io/api-keys

### Quick test generation:

curl 'https://api.imagerouter.io/v1/openai/images/generations' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  --json '{"prompt":"test image","model":"test/test"}'

### Download image directly:

curl 'https://api.imagerouter.io/v1/openai/images/generations' \\
  -H 'Authorization: Bearer YOUR_API_KEY' \\
  --json '{"prompt":"abstract art","model":"test/test"}' \\
  | jq -r '.data[0].url' \\
  | xargs curl -o output.webp
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: DaWe35
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T07:56:34.675Z
- Expires at: 2026-05-11T07:56:34.675Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/image-router)
- [Send to Agent page](https://openagent3.xyz/skills/image-router/agent)
- [JSON manifest](https://openagent3.xyz/skills/image-router/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/image-router/agent.md)
- [Download page](https://openagent3.xyz/downloads/image-router)