gpt-image-2

openai/gpt-image-2
Capabilities
3
lowmediumhigh
Context length
Tokens
Max output tokens
Tokens
Type
Image
OpenAI

Playground

Input

Output

Pricing

Pricing breakdown
Usage-based pricing, broken down by billing item at your current rates.
10% OFF

Input tokens

Standard rate
4.5 credits / 1M

Input image tokens

Standard rate
7.2 credits / 1M

Output tokens

Standard rate
27 credits / 1M

Billing items are additive. Only one matching price tier applies to each item. Charges are calculated from actual usage per request, with each item rounded up.

API

cURL example
POST/v1/images/generations
SynchronousOpenAI-compatible
curl "http://127.0.0.1:11113/v1/images/generations" \  -X POST \  -H "Authorization: Bearer $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "model": "openai/gpt-image-2",  "prompt": "A quiet mountain lake.",  "n": 1}'

Set your API_KEY environment variable before running. Keep your key server-side.

API documentation

Uptime

Coming soon
Uptime workspace
This release includes the core layout and display area. The full feature will be added later.