Skip to main content
ARouter supports image generation via the OpenAI-compatible /v1/images/generations endpoint. Use any supported image generation model with a single API key.

Quick Start


Request Parameters


Response Format


Image Sizes

DALL-E 3

DALL-E 2


Supported Models

Use GET /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 the provider object to control which provider handles your image generation request:
See Provider Routing for full routing options.

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.