XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
Model catalogueGPT-Image 2

GPT-Image 2

NEW

Model ID

Put this value in the request body's `model` field — not the display name above.

Image generationClosed source

by OpenAI · OpenAI GPT-Image 2 standalone image generation. Text-to-image and reference-image editing, any aspect ratio and custom sizes.

Try it now

Quick start

EndpointPOST /v1/images/generations
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleSynchronous: one request returns the result
Base URLhttps://usapi.dflop.top/v1
cURL
curl https://usapi.dflop.top/v1/images/generations \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "一只在竹林里喝茶的熊猫,水彩风格",
    "size": "2048x2048",
    "n": 1
  }'

# 图生图:再加 "image": ["https://.../ref.jpg"](参考图按张另计费)
# 返回的图片 URL 是上游预签名链接,约 24 小时过期 —— 请尽快转存

Pricing

Billed per output image: a request generating n images is billed at unit price × n.

Rates
per image 24Credits
Settlement
Settled once on success against the images actually returned (no hold, no difference to refund)
  • Before submitting we only check that your balance covers unit price × n — nothing is held. You are charged once, on success, for the images actually returned; failures are not billed.
  • Returned image URLs are upstream presigned links that expire in about 24 hours — re-host them promptly.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Image generation
Endpoint family
Image generation (Images)
Released
2026-07-08
License
Closed source

Try it

Models like this bill for real per image / per second / per call and are mostly async tasks, so there is no one-click test here. Use the sample code above, or generate in the matching workbench (which has a parameter panel and a cost estimate).

Open the workbench

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ GPT-Image 2→✓ gpt-image-2

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The API key is invalid, or it has a model allowlist that doesn't include this ID.

→ Check the key's status and allowed models

400 invalid_request

`size` is below this SKU's minimum, or `n` exceeds the limit of 10.

→ Check your request body against the sample code above

More models from this vendor

GPT-5.6 Lunagpt-5.6-lunaGPT-5.6 Solgpt-5.6-solGPT-5.6 Terragpt-5.6-terraGPT-6gpt-6GPT-6 Astragpt-6-astraGPT-6 Lunagpt-6-luna
Try it

关于 GPT-Image 2 的常见问题

怎么调用 GPT-Image 2?
请求体的 model 字段填 gpt-image-2,打到 https://usapi.dflop.top/v1/images/generations,把 sk-gpushare- 开头的密钥放进 Authorization: Bearer 请求头。这是非对话类 SKU,用上面的专用端点提交任务。
GPT-Image 2 的 API 价格是多少?
  • ·每张出图:24 积分(≈ ¥0.4 / ≈ $0.059)
  • ·平台以积分计价,60 积分 = ¥1;每次调用先按上限预扣,返回后按实际用量结算,差额自动退回。
GPT-Image 2 支持哪些能力?
图像生成。

本页的 Markdown 版本:/models/gpt-image-2.md