Image Generation
One workflow for every available image model: choose a model, send a request, read the response, and understand the price.
Choose models from the shared catalog
This guide does not hardcode a preferred model. Available image models and their current prices always live in the shared model table.
Available image models
gemini-3.1-flash-imageRunnable- 0.5K
- $0.045/ image
- 1K
- $0.067/ image
- 2K
- $0.101/ image
- 4K
- $0.151/ image
gpt-image-2Runnable- image input
- $8.00/ 1M tokens
- cached image input
- $2.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
1024x1024 · 1024x1536 · 1536x1024 · low · medium · high · auto
gpt-image-2.6-flareRunnable- image input
- $8.00/ 1M tokens
- cached image input
- $2.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
low · medium · high · xhigh · max · auto
gpt-image-2.6-sunburstRunnable- image input
- $8.00/ 1M tokens
- cached image input
- $2.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
low · medium · high · xhigh · max · auto
gpt-image-2.5-sunburstRunnable- image input
- $8.00/ 1M tokens
- cached image input
- $2.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
low · medium · high · xhigh · max · auto
gpt-image-2.5-flareRunnable- image input
- $8.00/ 1M tokens
- cached image input
- $2.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
low · medium · high · xhigh · max · auto
grok-imagineCatalog- per generation request
- $0.02/ image
grok-imagine-image-liteCatalog- per generation request
- $0.025/ image
grok-imagine-image-2.0Unavailable- 1K
- $0.06/ image
- 2K
- $0.08/ image
1K · 2K · low · medium
grok-imagine-image-qualityRunnable- 1K
- $0.05/ image
- 2K
- $0.07/ image
1K · 2K · high
gemini-3-pro-imageCatalog- image input
- $2.00/ 1M tokens
- generated image output
- $120.00/ 1M tokens
gemini-3-pro-image-previewCatalog- image input
- $2.00/ 1M tokens
- generated image output
- $120.00/ 1M tokens
gemini-3.1-flash-image-previewCatalog- image input
- $0.50/ 1M tokens
- generated image output
- $60.00/ 1M tokens
gpt-image-2-4KUnavailable- image input
- $8.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
gpt-image-2-4kUnavailable- image input
- $8.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
gpt-image-2-proUnavailable- image input
- $8.00/ 1M tokens
- generated image output
- $30.00/ 1M tokens
Request
POST /v1/images/generations. The path and optional parameters come from the selected model’s verified contract.
bash
curl -sS https://api-ai.app/v1/images/generations \
-H "Authorization: Bearer $API_AI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A quiet observatory above the clouds",
"size": "1024x1024",
"quality": "low"
}'Capabilities vary by model
Sizes, quality levels, transparency, editing, and response formats are model-specific. Do not copy one model’s optional parameters to another without checking support.
Response
A synchronous transport returns image data or a URL immediately. An asynchronous transport returns a job id; poll its status path, then download from its content path.
Pricing
The shared model table separates every token rate into its own column and shows per-image or other media billing in the media column. Open pricing.
Last updated: November 21, 2026Found a bug? admin@minedom-france.fr