/v1/images/generations endpoint. Use any supported image generation model with a single API key.
Quick Start
- Python
- Node.js
- cURL
Request Parameters
Response Format
Image Sizes
DALL-E 3
DALL-E 2
Supported Models
UseGET /v1/models?output_modalities=image to query the current list of image generation models.
Model availability may vary. Always query
GET /v1/models?output_modalities=image for the current list.Advanced Examples
High-Quality Portrait
Batch Generation with DALL-E 2
Routing to Specific Providers
Use theprovider object to control which provider handles your image generation request:
Pricing
Image generation is billed per image, not per token. Costs vary by model and resolution:
Costs for other models (Stability AI, Flux) are charged based on the upstream provider rate. Check
usage.cost in the response for the actual charge.
Image URLs returned by ARouter expire after 1 hour. Download and store images you intend to keep.