Image Generation
{ "taskId": "leo_abc123xyz" }FastRouter API Key. Get yours at https://fastrouter.ai
Format: Authorization: Bearer YOUR_API_KEY
Text description of the desired image
A cute baby sea otter wearing a beretImage generation model to use. OpenAI models return images synchronously. Leonardo models (leonardo/...) return a taskId — poll POST /api/v1/getAsyncResponse to retrieve the result.
openai/gpt-image-1Possible values: Number of images to generate. Note: Only n=1 is supported for dall-e-3
1Image dimensions. Supported values vary by model:
- gpt-image-1/mini: auto, 1024×1024, 1536×1024, 1024×1536
- dall-e-2: 256×256, 512×512, 1024×1024
- dall-e-3: 1024×1024, 1792×1024, 1024×1792
autoExample: 1024x1024Image quality level:
- gpt-image-1/mini: auto, high, medium, low
- dall-e-3: auto, hd, standard
- dall-e-2: standard only
autoPossible values: Output image format. Only supported for gpt-image-1 and gpt-image-1-mini
pngPossible values: Background style. Only for gpt-image-1 and gpt-image-1-mini. Note: transparent requires png or webp format
autoPossible values: Image style (DALL-E 3 only)
vividPossible values: Format of the response data
urlPossible values: Successful response. For OpenAI models: image URL returned directly. For Leonardo models: taskId returned — poll POST /api/v1/getAsyncResponse to retrieve the image once ready.
Unix timestamp of when the image was created
Bad Request - Invalid parameters
Unauthorized - Invalid API key
Rate Limit Exceeded
Internal Server Error
Last updated
