RouteMarket Docs
Image Models

Direct API usage

Call RouteMarket's image generation API directly.

Endpoint

POST https://api.routemarket.ai/v1/images/generations

Parameters

ParameterTypeRequiredDescription
modelstringYesThe logical name of the image model
promptstringYesThe image description text
nintegerNoNumber of images to generate, default 1
sizestringNoImage size, e.g. 1024x1024
qualitystringNoGeneration quality, e.g. standard / hd — availability depends on the model
response_formatstringNoResponse format, url or b64_json

Example

curl https://api.routemarket.ai/v1/images/generations \
  -H "Authorization: Bearer $ROUTEMARKET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "routemarket-image-default",
    "prompt": "A shiba inu running in the snow, illustration style",
    "n": 1,
    "size": "1024x1024",
    "response_format": "url"
  }'

Example response

{
  "created": 1730000000,
  "data": [
    {
      "url": "https://cdn.routemarket.ai/generated/xxxx.png"
    }
  ]
}

For the exact supported models, parameter ranges, and pricing, check the console's model list and the Model Marketplace.