GPT Image 2
gpt-image-2OpenAI GPT Image 2 text-to-image generation. Send a prompt through the images generations endpoint and receive generated images; billed per request. Use it for product mockups, marketing assets, illustrations, and any workflow that needs reliable general-purpose image synthesis from text descriptions.
Reference route pricing
Route source: TokenUs
- Published rate
- $0.011 / request
- Billing unit
- / request
- Context / Max output
- — / —
- Live routes
- 3
Auto provider is not confirmed. Select a route before relying on these rates.
On this page
Overview
OpenAI GPT Image 2 text-to-image generation. Send a prompt through the images generations endpoint and receive generated images; billed per request. Use it for product mockups, marketing assets, illustrations, and any workflow that needs reliable general-purpose image synthesis from text descriptions.
Playground
Sample response
Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $0.011 / request | — | — | Community | |
Live | Input $0.009 / image | 42ms | — | Verified | |
Live | Input $4.514 / 1M tokens Output $27.083 Cache read — Cache write — | 0ms | — | Verified |
- Unit price
- $0.011
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/images- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
prompt | string | A cute cat sitting on a windowsill | No | prompt |
n | number | 1 | No | n |
No required parameters returned.
Request example
curl 'https://api.openany.si/v1/images' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A cute cat sitting on a windowsill",
"n": 1
}'Response example
No response example is configured for this endpoint. Run a request in Playground to see a live response.
Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.Examples
Request example
POST /v1/imagescurl 'https://api.openany.si/v1/images' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A cute cat sitting on a windowsill",
"n": 1
}'