{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-x-router-ai-v1-images-generate",
  "title": "X-Router \u00b7 Text-to-Image Generation",
  "url": "https://api.x-router.ai/v1/images/generate",
  "category": "media",
  "summary": "Generate AI images from text descriptions with automatic CDN hosting and per-call pricing.",
  "seo": {
    "title": "X-Router AI Image Generation | x402 Text-to-Image API",
    "description": "Generate images from text prompts via x402 micropayments. 0.005694 USDC per generation on Base. Returns CDN URLs."
  },
  "use_cases": [
    "Create marketing visuals from product descriptions",
    "Generate concept art for games",
    "Produce social media imagery on demand"
  ],
  "ideal_buyer": "Marketing teams and indie creators needing affordable, on-demand AI image generation without monthly limits.",
  "example_prompt": "Generate a futuristic cityscape at sunset with flying vehicles",
  "example_request_body": {
    "model": "default",
    "prompt": "futuristic cityscape at sunset with flying vehicles"
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "cheap_outlier",
    "ratio": 0.071,
    "median_category_atomic": 80000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0xeb4da07be74b26b2966b3cd07842cade70e47d53",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "5694",
      "max_timeout_seconds": 120,
      "mime_type": "application/json",
      "description": "Text-to-Image Generation",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "seed": {
              "type": "number",
              "description": "Random seed for reproducibility"
            },
            "model": {
              "type": "string",
              "description": "Image model to use"
            },
            "steps": {
              "type": "number",
              "description": "Number of inference steps (1-50)"
            },
            "width": {
              "type": "number",
              "description": "Image width in pixels, must be divisible by 64 (128-2048, default: 1024)"
            },
            "height": {
              "type": "number",
              "description": "Image height in pixels, must be divisible by 64 (128-2048, default: 1024)"
            },
            "prompt": {
              "type": "string",
              "required": true,
              "description": "Text description of the image to generate (2-3000 chars)"
            },
            "guidance": {
              "type": "number",
              "description": "Guidance scale for generation (1-30)"
            },
            "numberResults": {
              "type": "number",
              "description": "Number of images to generate (1-4, default: 1)"
            },
            "negativePrompt": {
              "type": "string",
              "description": "Negative prompt to avoid certain elements (max 3000 chars)"
            }
          },
          "discoverable": true
        },
        "output": {
          "model": {
            "type": "string",
            "description": "Model used for generation"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "CDN URL of the generated image"
                },
                "uuid": {
                  "type": "string",
                  "description": "Unique identifier for the image"
                }
              }
            },
            "description": "Array of generated image objects"
          }
        }
      }
    }
  ],
  "duplicate_cluster_id": "media-cl-59c43a2af0d0",
  "origin": {
    "slug": "api-x-router-ai",
    "host": "api.x-router.ai",
    "title": "xRouter API \u2014 AI Gateway with x402 Micropayments",
    "description": "Payment-enabled AI API gateway offering text chat completions and image generation via x402 protocol on Base. Agents pay per-request in USDC with upfront cost estimation and model discovery endpoints.",
    "url": "https://api.x-router.ai",
    "favicon": "https://x-router.ai/favicon.ico"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/api-x-router-ai-v1-images-generate",
    "url": "https://x402all.com/resource/api-x-router-ai-v1-images-generate",
    "name": "X-Router \u00b7 Text-to-Image Generation",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-x-router-ai-v1-images-generate",
      "@type": "Offer",
      "price": "0.005694",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.005694",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://api.x-router.ai/v1/images/generate",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/api-x-router-ai",
      "url": "https://api.x-router.ai",
      "name": "xRouter API \u2014 AI Gateway with x402 Micropayments",
      "@type": "Organization"
    },
    "identifier": "api-x-router-ai-v1-images-generate",
    "description": "Generate images from text prompts via x402 micropayments. 0.005694 USDC per generation on Base. Returns CDN URLs.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-x-router-ai-v1-images-generate",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "media"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=api-x-router-ai-v1-images-generate"
}
