快速结论

  • Supports prompt-based text-to-image workflows for marketing and creative assets.
  • Supports reference-guided generation for stronger style consistency.
  • Stabilize parameters in this guide first, then move into production API.

关键参数

  • model | string | 必填 | gpt-image-2.5-sunburst | - | Exact model identifier from ToAPIs.
  • prompt | string | 必填 | - | - | Primary image instruction prompt.
  • size | string | 可选 | 1:1 | - | Output aspect ratio, model-dependent.
  • n | integer | 可选 | 1 | - | Number of generated images per request.
  • reference_images | file[] | 可选 | - | - | Reference images for style consistency.

常见错误

  • 400 invalid_request_error: 触发=Missing or invalid payload fields.; 修复=Validate model/prompt/size payload fields.; 重试=Retry only after payload fix.
  • 401 authentication_error: 触发=Missing or invalid API key.; 修复=Verify Authorization header and key scope.; 重试=Retry after authentication fix.

gpt-image-2.5-sunburst

gpt-image-2.5-sunburst by OpenAI is optimized for image generation/editing workflows. Contracts follow ToAPIs docs for production-ready API integration.

模型類型:
價格: 3 積分 /request
1

描述你的圖片

參考圖

描述你想生成的圖片。56 / 1200

進階選項

範例參數
2

你的生成結果

圖片結果會顯示在這裡

登入後可直接提交生成任務。

生成需要一些時間,請稍等您可以離開此頁面,[ 任務日誌 ] 可直接檢查生成的內容

請求預覽

{
  "model": "gpt-image-2.5-sunburst",
  "prompt": "使用 gpt-image-2.5-sunburst 生成一张高质感产品广告图,主体清晰,光线自然,适合社媒投放。",
  "size": "1:1",
  "n": 4,
  "response_format": "b64_json",
  "metadata": {
    "resolution": "1K",
    "orientation": "square"
  }
}

透明計價

gpt-image-2.5-sunburst 價格

Image usage is billed according to the current request and resolution rules. Final billing follows the current account quote.

儲值積分
3 積分 /request

為什麼選擇 ToAPIs

Why call gpt-image-2.5-sunburst through ToAPIs?

Keep image generation, API keys, billing, and usage management in one workflow.

High-quality generation

Generate production-ready visual assets via a unified API.

Reference consistency

Use references to stabilize style and composition.

Parameter tuning

Tune ratio/count/sampling for quality and cost balance.

Connect in three steps

Create a key, send an image request, and review the generated result.

  1. 1

    Step 1

    Set Authorization: Bearer <YOUR_API_KEY>.

  2. 2

    Step 2

    Call image generation endpoint with model, prompt, and size.

  3. 3

    Step 3

    Optionally pass reference_images for stronger consistency.

When to use gpt-image-2.5-sunburst

Use case 1

When generating marketing, e-commerce, and social visual assets quickly.

Use case 2

When reference-guided consistency is required.

常見問題

gpt-image-2.5-sunburst FAQ

What is gpt-image-2.5-sunburst best for?

Best for high-frequency creative generation and reference-guided consistency workflows.

图像视频模型报错:invalid apitype: -1

这类错误通常说明接口走错了。图像和视频模型一般不走 chat 接口,而是按对应文档发起 HTTP 任务请求,并通过任务状态接口轮询结果。排查时建议先看用户的实际请求代码、请求地址和请求体。

用户进行生成图片/视频的任务时出现任务失败,但是扣款

先让用户提供任务日志或截图,重点看是否出现了输入或输出 token 统计。如果有这类 token 记录,大概率是用户把图片/视频模型走成了 chat 接口;这不是正确用法。图片和视频模型通常是异步任务接口,需要通过 HTTP 请求先提交任务,再拿到任务 ID 轮询状态,详细以对应文档为准。

gpt-image-2.5-sunburst API

Start building with gpt-image-2.5-sunburst

Test an image request here, then continue in the dashboard or API documentation.

Try gpt-image-2.5-sunburst with one ToAPIs key.

Use one account and API surface for image generation workflows.

Sign up to get free credits