{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/image-router",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=image-router",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/image-router",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ImageRouter Image Generation",
        "body": "Generate images with any model available on ImageRouter using curl commands."
      },
      {
        "title": "Available models",
        "body": "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.\n\nGet top 10 most popular models:\n\ncurl -X POST 'https://backend.imagerouter.io/operations/get-popular-models'\n\nSearch available models by name:\n\ncurl \"https://api.imagerouter.io/v1/models?type=image&sort=date&name=gemini\"\n\nGet all available models:\n\ncurl \"https://api.imagerouter.io/v1/models?type=image&sort=date&limit=1000\""
      },
      {
        "title": "Quick Start - Text-to-Image",
        "body": "Basic generation with JSON endpoint:\n\ncurl 'https://api.imagerouter.io/v1/openai/images/generations' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  --json '{\n    \"prompt\": \"a serene mountain landscape at sunset\",\n    \"model\": \"test/test\",\n    \"quality\": \"auto\",\n    \"size\": \"auto\",\n    \"response_format\": \"url\",\n    \"output_format\": \"webp\"\n  }'"
      },
      {
        "title": "Text-to-Image with multipart/form-data:",
        "body": "curl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=a cyberpunk city at night' \\\n  -F 'model=test/test' \\\n  -F 'quality=high' \\\n  -F 'size=1024x1024' \\\n  -F 'response_format=url' \\\n  -F 'output_format=webp'"
      },
      {
        "title": "Image-to-Image (with input images):",
        "body": "curl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=transform this into a watercolor painting' \\\n  -F 'model=test/test' \\\n  -F 'quality=auto' \\\n  -F 'size=auto' \\\n  -F 'response_format=url' \\\n  -F 'output_format=webp' \\\n  -F 'image[]=@/path/to/your/image.webp'"
      },
      {
        "title": "Multiple images (up to 16):",
        "body": "curl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=combine these images' \\\n  -F 'model=test/test' \\\n  -F 'image[]=@image1.webp' \\\n  -F 'image[]=@image2.webp' \\\n  -F 'image[]=@image3.webp'"
      },
      {
        "title": "With mask (some models require mask for inpainting):",
        "body": "curl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=fill the masked area with flowers' \\\n  -F 'model=test/test' \\\n  -F 'image[]=@original.webp' \\\n  -F 'mask[]=@mask.webp'"
      },
      {
        "title": "Parameters",
        "body": "model (required): Image model to use (see https://imagerouter.io/models)\nprompt (optional): Text description for generation. Most models require a text prompt, but not all.\nquality (optional): auto (default), low, medium, high\nsize (optional): auto (default) or WIDTHxHEIGHT (e.g., 1024x1024).\nresponse_format (optional):\n\nurl (default) - Returns hosted URL\nb64_json - Returns base64-encoded image\nb64_ephemeral - Base64 without saving to logs\n\n\noutput_format (optional): webp (default), jpeg, png\nimage[] (optional): Input file for Image-to-Image (multipart only)\nmask[] (optional): Editing mask for inpainting (multipart only)"
      },
      {
        "title": "Response Format",
        "body": "{\n  \"created\": 1769286389027,\n  \"data\": [\n    {\n      \"url\": \"https://storage.imagerouter.io/fffb4426-efbd-4bcc-87d5-47e6936bf0bb.webp\"\n    }\n  ],\n  \"latency\": 6942,\n  \"cost\": 0.004\n}"
      },
      {
        "title": "Endpoint Comparison",
        "body": "FeatureUnified (/edits)JSON (/generations)Text-to-Image✅✅Image-to-Image✅❌Encodingmultipart/form-dataapplication/json"
      },
      {
        "title": "Tips",
        "body": "Both /v1/openai/images/generations and /v1/openai/images/edits are the same for the unified endpoint\nUse JSON endpoint for simple text-to-image when you don't need file uploads\nUse unified endpoint when you need Image-to-Image capabilities\nCheck model features at https://imagerouter.io/models (quality support, edit support, etc.)\nGet your API key at https://imagerouter.io/api-keys"
      },
      {
        "title": "Quick test generation:",
        "body": "curl 'https://api.imagerouter.io/v1/openai/images/generations' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  --json '{\"prompt\":\"test image\",\"model\":\"test/test\"}'"
      },
      {
        "title": "Download image directly:",
        "body": "curl 'https://api.imagerouter.io/v1/openai/images/generations' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  --json '{\"prompt\":\"abstract art\",\"model\":\"test/test\"}' \\\n  | jq -r '.data[0].url' \\\n  | xargs curl -o output.webp"
      }
    ],
    "body": "ImageRouter Image Generation\n\nGenerate images with any model available on ImageRouter using curl commands.\n\nAvailable models\n\nThe 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.\n\nGet top 10 most popular models:\n\ncurl -X POST 'https://backend.imagerouter.io/operations/get-popular-models'\n\n\nSearch available models by name:\n\ncurl \"https://api.imagerouter.io/v1/models?type=image&sort=date&name=gemini\"\n\n\nGet all available models:\n\ncurl \"https://api.imagerouter.io/v1/models?type=image&sort=date&limit=1000\"\n\nQuick Start - Text-to-Image\n\nBasic generation with JSON endpoint:\n\ncurl 'https://api.imagerouter.io/v1/openai/images/generations' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  --json '{\n    \"prompt\": \"a serene mountain landscape at sunset\",\n    \"model\": \"test/test\",\n    \"quality\": \"auto\",\n    \"size\": \"auto\",\n    \"response_format\": \"url\",\n    \"output_format\": \"webp\"\n  }'\n\nUnified Endpoint (Text-to-Image & Image-to-Image)\nText-to-Image with multipart/form-data:\ncurl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=a cyberpunk city at night' \\\n  -F 'model=test/test' \\\n  -F 'quality=high' \\\n  -F 'size=1024x1024' \\\n  -F 'response_format=url' \\\n  -F 'output_format=webp'\n\nImage-to-Image (with input images):\ncurl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=transform this into a watercolor painting' \\\n  -F 'model=test/test' \\\n  -F 'quality=auto' \\\n  -F 'size=auto' \\\n  -F 'response_format=url' \\\n  -F 'output_format=webp' \\\n  -F 'image[]=@/path/to/your/image.webp'\n\nMultiple images (up to 16):\ncurl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=combine these images' \\\n  -F 'model=test/test' \\\n  -F 'image[]=@image1.webp' \\\n  -F 'image[]=@image2.webp' \\\n  -F 'image[]=@image3.webp'\n\nWith mask (some models require mask for inpainting):\ncurl 'https://api.imagerouter.io/v1/openai/images/edits' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -F 'prompt=fill the masked area with flowers' \\\n  -F 'model=test/test' \\\n  -F 'image[]=@original.webp' \\\n  -F 'mask[]=@mask.webp'\n\nParameters\nmodel (required): Image model to use (see https://imagerouter.io/models)\nprompt (optional): Text description for generation. Most models require a text prompt, but not all.\nquality (optional): auto (default), low, medium, high\nsize (optional): auto (default) or WIDTHxHEIGHT (e.g., 1024x1024).\nresponse_format (optional):\nurl (default) - Returns hosted URL\nb64_json - Returns base64-encoded image\nb64_ephemeral - Base64 without saving to logs\noutput_format (optional): webp (default), jpeg, png\nimage[] (optional): Input file for Image-to-Image (multipart only)\nmask[] (optional): Editing mask for inpainting (multipart only)\nResponse Format\n{\n  \"created\": 1769286389027,\n  \"data\": [\n    {\n      \"url\": \"https://storage.imagerouter.io/fffb4426-efbd-4bcc-87d5-47e6936bf0bb.webp\"\n    }\n  ],\n  \"latency\": 6942,\n  \"cost\": 0.004\n}\n\nEndpoint Comparison\nFeature\tUnified (/edits)\tJSON (/generations)\nText-to-Image\t✅\t✅\nImage-to-Image\t✅\t❌\nEncoding\tmultipart/form-data\tapplication/json\nTips\nBoth /v1/openai/images/generations and /v1/openai/images/edits are the same for the unified endpoint\nUse JSON endpoint for simple text-to-image when you don't need file uploads\nUse unified endpoint when you need Image-to-Image capabilities\nCheck model features at https://imagerouter.io/models (quality support, edit support, etc.)\nGet your API key at https://imagerouter.io/api-keys\nExamples by Use Case\nQuick test generation:\ncurl 'https://api.imagerouter.io/v1/openai/images/generations' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  --json '{\"prompt\":\"test image\",\"model\":\"test/test\"}'\n\nDownload image directly:\ncurl 'https://api.imagerouter.io/v1/openai/images/generations' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  --json '{\"prompt\":\"abstract art\",\"model\":\"test/test\"}' \\\n  | jq -r '.data[0].url' \\\n  | xargs curl -o output.webp"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/DaWe35/image-router",
    "publisherUrl": "https://clawhub.ai/DaWe35/image-router",
    "owner": "DaWe35",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}