← Back to models
OpenAIModel family

GPT Image 2

Selected variant API IDAutomatic routing
GPT Image 2 creates images from text prompts for product visuals, concepts, illustrations and poster assets. Compare the family’s routes and specifications, then use the selected route’s parameters, price and unique model ID.Read moreRead less

GPT Image 2 creates images from text prompts for product visuals, concepts, illustrations and poster assets. Compare the family’s routes and specifications, then use the selected route’s parameters, price and unique model ID.

Providers

Different providers serve this model. Compare pricing and performance, select a provider, or use automatic routing.

ProviderVariant / API model IDApplicable priceRequest latencyRequest successConnect
gpt-image-2 · 经济线gpt-image-2-xz
¥0.02 / requestStandard
39.93 s100.00%Use route ↗
gpt-image-2-4kgpt-image-2-4k-xp
¥0.32 / requestStandard
—100.00%Use route ↗
gpt-image-2 · 标准线gpt-image-2-pro-xp
¥0.13 / requestStandard
—100.00%Use route ↗

Providers for the same API model ID currently share model pricing; variants have independent rates. A selected provider retries only within its own keys, never across variants or providers. Official badges apply to their individual routes.

Model data

Aggregated across providers for the selected variant · UTC

2026-11-04 08:00 — 2026-11-05 07:05 UTC

Requests

70,512
Requests11/04, 08:00 AM UTC · 28,47611/04, 09:00 AM UTC · 8,13611/04, 01:00 PM UTC · 5,42411/04, 02:00 PM UTC · 6,78011/04, 05:00 PM UTC · 8,13611/04, 11:00 PM UTC · 1,35611/05, 06:00 AM UTC · 12,204
11/04, 08:00 AM11/05, 07:00 AM UTC

Requests in the selected window, excluding refund records.

Request latency

39.93 s
Request latency11/04, 08:00 AM UTC · 54.92 s11/04, 09:00 AM UTC · 26.26 s11/04, 01:00 PM UTC · 23.79 s11/04, 02:00 PM UTC · 26.67 s11/04, 05:00 PM UTC · 26.32 s11/04, 11:00 PM UTC · 15.73 s11/05, 06:00 AM UTC · 40.39 s
11/04, 08:00 AM11/05, 07:00 AM UTC

Mean end-to-end duration of successful requests, not time to first token.

Request success rate

100.00%
EarlierLatest

Successful requests divided by total requests, not an SLA.

Output rate

—
Shown when valid samples are available

Non-estimated output tokens per end-to-end second, shown only from valid logs.

Statistics use UTC. Metrics without valid records display —. Request volume uses the configured public display scale.

Use the API

A family ID chooses the lowest-priced available route; a unique ID selects its own route.

Get an API key ↗

Base URL: https://api.ai526.com/v1 · /v1/images/generations

curl
curl https://api.ai526.com/v1/images/generations \
  -H 'Authorization: Bearer YOUR_AI526_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model":"gpt-image-2","prompt":"A quiet mountain lake at sunrise, soft natural light"}'

# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
# size: use a supported image size; fixed-size IDs require their own size.
python
import requests

response = requests.post(
    "https://api.ai526.com/v1/images/generations",
    headers={
    "Authorization": "Bearer YOUR_AI526_API_KEY",
    "Content-Type": "application/json"
},
    json={
    "model": "gpt-image-2",
    "prompt": "A quiet mountain lake at sunrise, soft natural light"
},
)
response.raise_for_status()
print(response.json())

# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
# size: use a supported image size; fixed-size IDs require their own size.
javascript
const response = await fetch("https://api.ai526.com/v1/images/generations", {
  method: "POST",
  headers: {
  "Authorization": "Bearer YOUR_AI526_API_KEY",
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "model": "gpt-image-2",
  "prompt": "A quiet mountain lake at sunrise, soft natural light"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

// API URL: use the URL above.
// YOUR_AI526_API_KEY: replace with your own platform key.
// model: use the copied unique ID, or a family ID for the lowest-priced route.
// prompt / messages: replace with your task.
// size: use a supported image size; fixed-size IDs require their own size.

Anthropic Messages is a chat protocol and does not support image or video generation for this model. Use the media endpoint above.

Replace the placeholder key before calling. Media options depend on model support.

Try your own task

Prepare a request, then send it from the dashboard. This page makes no model calls.

Optional. Use a model-supported size, or leave blank for the API default.
Calculated from size

Sending the request is billed at this model’s rate.

Request preview

JSON
{
  "model": "gpt-image-2",
  "prompt": "A quiet mountain lake at sunrise, soft natural light"
}

This is a request preview. Results appear in the dashboard after a request completes.

Frequently asked questions

How should I choose a provider?

Start with automatic routing. To select a public provider, choose its code and copy the updated example. Retries remain within that provider.

How are performance metrics updated?

Metrics update from request records. Latency covers completed successful requests; metrics without valid records display —.

Can I use this model in another client?

The client must support the model’s protocol and a custom API URL. See tool integration guides ↗