gpt-image-1
gpt-image-1
Overview
gpt-image-1 is available on MAX API through the OpenAI-compatible API.
Pricing
Official list prices in USD. Token prices are per 1M tokens.All requests
- Input
- $5
- Cache read
- $1.25
| Tier | Input | Cache read |
|---|---|---|
| All requests | $5 | $1.25 |
Cache read applies to prompt tokens served from the prompt cache; cache write applies to tokens written into it.
Example request
curl https://<your-endpoint>/v1/images/generations \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-1",
"prompt": "A lighthouse on a cliff at sunset, watercolor",
"size": "1024x1024"
}'https://<your-endpoint> is a placeholder. Your endpoint is shown in the console after you sign in.