Compare the recorded score and API price.
GPT Image 2
OpenAIGenerate images from text descriptions with PNG output.
Choose your workload
Models for creating images from a text description and creative direction.
Compare the recorded score and API price.
Generate images from text descriptions with PNG output.
Prices apply to the stated model settings. Token input rates cover uncached input; output tokens are priced separately. Cache usage and image or video settings can change the charge.
Input formats, model capabilities and prices.
| Reference | GPT Image 2Available candidate |
|---|---|
| Input → output | text, image → image |
| Price for these settings | $0.0042 / image · 1024×1024 · low quality · generation only |
| Reference Arena score | 1383 |
| Billing details | Image generation uses the stated size and quality. Contact Roten for image-editing pricing. |
Implementation
Copy an available model request, replace the API key with your own, and run.
API model ID: gpt-image-2
Image generation and multipart image editing, with PNG output.
Generate images from text descriptions with PNG output.
Copy the Python or cURL test for GPT Image 2. Replace the API-key placeholder with your own key and run.
GPT Image 2 · image generation · Creates one low-quality test image and returns its base64 image data in the response.
import requests
response = requests.post(
url="https://api.roten-ai.com/v1/images/generations",
headers={
"Authorization": "Bearer YOUR_ROTEN_API_KEY",
},
json={
"model": "gpt-image-2",
"prompt": "A simple indigo geometric cube on a plain white background.",
"n": 1,
"size": "1024x1024",
"quality": "low",
"response_format": "b64_json"
},
timeout=180,
)
print(response.json())
response.raise_for_status()curl --fail-with-body 'https://api.roten-ai.com/v1/images/generations' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ROTEN_API_KEY' \
-d '{
"model": "gpt-image-2",
"prompt": "A simple indigo geometric cube on a plain white background.",
"n": 1,
"size": "1024x1024",
"quality": "low",
"response_format": "b64_json"
}'Python requires requests: install once with python3 -m pip install requests. cURL examples run directly in your terminal.
Evidence and limits
Reference Arena scores, API tests and billing rates describe different aspects of each candidate.
Built for production
Talk to us about volume pricing, model selection and migration.