APIMart 的 GPT Image 2.5 Sunburst API(gpt-image-2.5-sunburst)运行 OpenAI GPT Image 2.5 系列中的精准模型。它在多轮编辑中控制更精细,适合可投放广告和精修产品图,支持蒙版局部重绘和 4K 输出,token 费率与 GPT Image 2.5 Flare 相同,但生成时间更长。
服务亮点
使用遮罩图时,请同时添加至少一张参考图。

Image link valid for 72 hours

透明定价,无隐藏费用。按量付费,用多少付多少。
gpt-image-2.5-sunburst预估价格
节省 20%当前展示:黄金会员价
价格按 token 用量计算,当前规格约消耗 196 token。
* 单张图片输出费用预估,不含提示词与参考图输入费用。最终按实际 Token 用量结算。
在 APIMart 用 GPT Image 2.5 Sunburst API 处理对细节要求高的工作:只改一个元素,主体、构图和品牌风格保持不动,多轮打磨后输出最高 4K,token 价格与 Flare 相同。
50K+
活跃用户
99.9%
在线率
2x
更快
70%
成本节省
一次 POST 请求即可调用 gpt-image-2.5-sunburst。生成为异步任务,耗时比 Flare 更长:先提交,再轮询任务接口获取图片链接。
把 APIMart Key 存进环境变量 APIMART_API_KEY,每次请求都以 Authorization: Bearer <key> 发送。
POST /v1/images/generations,model 填 gpt-image-2.5-sunburst,并传入提示词、size、resolution 和 quality;编辑时再加 image_urls 和 mask_url。任务 ID 在 data[0].task_id。
每 2–5 秒轮询 GET /v1/tasks/{task_id},status 变为 completed 后读取 data.result.images[0].url[0]。APIMart 结果保留 72 小时,需要保存的文件请及时下载。
全部参数、尺寸规则与返回字段见 GPT Image 2.5 API 文档。
curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5-sunburst",
"prompt": "湿润黑色岩石上的高端护肤品瓶,柔和轮廓光,水珠点缀,杂志风产品摄影",
"n": 1,
"size": "4:5",
"resolution": "2k",
"quality": "xhigh"
}'import os
import time
import requests
API_BASE = "https://api.apimart.ai"
headers = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}"}
# 1. Submit the generation task
payload = {
"model": "gpt-image-2.5-sunburst",
"prompt": "湿润黑色岩石上的高端护肤品瓶,柔和轮廓光,水珠点缀,杂志风产品摄影",
"n": 1,
"size": "4:5",
"resolution": "2k",
"quality": "xhigh"
}
resp = requests.post(f"{API_BASE}/v1/images/generations", headers=headers, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["data"][0]["task_id"]
# 2. Poll the task until it finishes
for _ in range(200):
task_resp = requests.get(f"{API_BASE}/v1/tasks/{task_id}", headers=headers, timeout=30)
task_resp.raise_for_status()
task = task_resp.json()["data"]
if task["status"] == "completed":
print(task["result"]["images"][0]["url"][0])
break
if task["status"] == "failed":
raise RuntimeError(task.get("error", {}).get("message", "generation failed"))
time.sleep(3)
else:
raise TimeoutError(f"task {task_id} did not finish in time; continue GET polling with this task ID")curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5-sunburst",
"prompt": "只把蒙版区域的标签文字改成简洁无衬线字体的 SUMMER EDITION,其他部分完全不变",
"image_urls": [
"https://example.com/product.png"
],
"mask_url": "https://example.com/product-mask.png",
"resolution": "2k",
"quality": "xhigh"
}'TASK_ID="task_xxx" # replace with the task_id returned by the POST request
curl "https://api.apimart.ai/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMART_API_KEY"| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
model | string | 是 | 默认值: gpt-image-2.5-sunburst | 填 gpt-image-2.5-sunburst。gpt-image-2.5-flare 的参数完全相同。 |
prompt | string | 是 | 默认值: — | 要生成或修改的内容:主体、场景、构图、风格、光线,以及必须保持不变的部分。 |
size | string | 否 | 默认值: auto | auto、15 种比例之一(1:1 到 21:9 以及 3:1)或精确像素,如 1600x1200。编辑时不传则跟随输入图比例。 |
resolution | string | 否 | 默认值: 1k | 1k、2k 或 4k,与比例形式的 size 搭配使用。 |
quality | string | 否 | 默认值: auto | low、medium、high、xhigh、max 或 auto。auto 会按 max 预扣费,任务结束后按实际用量结算。 |
n | integer | 否 | 默认值: 1 | 生成张数,1 到 4。 |
output_format | string | 否 | 默认值: png | png、jpeg 或 webp;output_compression(0–100)仅对 jpeg 和 webp 生效。 |
background | string | 否 | 默认值: — | transparent、opaque 或 auto。transparent 需要 png 或 webp。 |
image_urls | array | 否 | 默认值: — | 最多 16 个公网可访问的 HTTP(S) 参考图链接,传入后进入编辑模式。 |
mask_url | string | 否 | 默认值: — | 带透明通道的 PNG 蒙版,尺寸与第一张输入图一致,透明像素为要修改的区域。 |
查看 APIMart 上的 GPT Image 版本,为图片生成与编辑选择模型和请求参数。
| 型号 | 适用场景 | 分辨率 / 尺寸 |
|---|---|---|
| GPT Image 2.6 API | Flare 与 Sunburst:支持图片、GIF、SVG 输出及 complexity、标注编辑 | 1K / 2K / 4K |
| GPT Image 2.6 Flare API | 2.6 中更快的型号:适合草稿、海报、商品图与批量任务,支持 GIF 和 SVG 输出 | 1K / 2K / 4K |
| GPT Image 2.6 Sunburst API | 2.6 中画质更高的型号:适合精细 4K 作品,用遮罩或标注层保持多轮编辑一致 | 1K / 2K / 4K |
| GPT Image 2.5 API | 一个页面同时使用 Flare 与 Sunburst,支持最多 16 张参考图、蒙版和透明背景 | 1K / 2K / 4K |
| GPT Image 2.5 Flare API | 日常快速出图、批量生成与快速原型 | 1K / 2K / 4K |
| GPT Image 2.5 Sunburst API当前页面 | 成品素材、广告创意的精细编辑与多轮编辑 | 1K / 2K / 4K |
| GPT Image 2 API | 文生图与图片编辑,最多 16 张参考图、15 种画面比例 | 1K / 2K / 4K |
| GPT Image 1.5 API | 文生图与图片编辑,最多 15 张参考图,支持蒙版;OpenAI 将于 2026-12-01 停用 | 1:1 / 3:2 / 2:3 |
| GPT Image 1 API | 上一代型号,OpenAI 已于 2026-10-23 停用;新项目请使用 GPT Image 2.6 | 1:1 / 3:2 / 2:3 |
什么时候值得为 gpt-image-2.5-sunburst 多等一会儿
精度比速度更重要的场景
三步完成注册到生成第一张 GPT Image 2.5 Sunburst 图片
注册 APIMart,充值后在控制台创建 API Key。同一个 Key 适用于所有 GPT Image 模型。
先在上方体验区试提示词、参考图、尺寸和质量档位,并查看预估费用,再开始写代码。
参考下方示例在后端提交任务,然后轮询获取结果。
关于 Sunburst 精度、蒙版、参数、价格以及与 Flare 对比的解答
GPT Image 2.5 Sunburst 是 OpenAI GPT Image 2.5 系列中的精准模型,于 2026 年 9 月 8 日发布,专为细节要求高的创作和编辑工作打造。OpenAI 官方写法为 GPT-Image-2.5 Sunburst,APIMart 上的模型 ID 是 gpt-image-2.5-sunburst。
可直接投放的广告创意、精修产品图,以及只需修改一个元素的多轮编辑。OpenAI 介绍它在多轮编辑中提供更精细的控制。
多轮编辑的精度比速度更重要时用 Sunburst;需要快速、大批量出图时用 OpenAI 推荐给多数应用的 GPT Image 2.5 Flare。两者参数和价格相同,Sunburst 生成时间更长。
是的。OpenAI 说明 Sunburst 的生成时间比 Flare 更长。建议每 2–5 秒轮询一次任务,4K 以及 xhigh 或 max 质量需要预留更长等待时间。
model 和 prompt 必填。可选参数有 size、resolution(1k、2k 或 4k)、quality(low 到 max 或 auto)、n(1–4)、output_format、output_compression、background、moderation、image_urls(最多 16 张)和 mask_url。
同时传入 image_urls 和 mask_url:带透明通道的 PNG,尺寸必须与第一张输入图完全一致,完全透明的像素就是要编辑的区域,大小建议控制在 4 MB 以内。蒙版用于引导编辑,但不保证蒙版外的像素完全不变。
auto 或 15 种比例,搭配 1k、2k 或 4k,例如 4k 下 4:5 为 2576×3216;也可传 16 的倍数的精确尺寸,每边不超过 3840 px。超过 2560×1440 的尺寸属于实验性。
POST /v1/images/generations,model 填 gpt-image-2.5-sunburst,从 data[0].task_id 读取任务 ID。轮询 GET /v1/tasks/{task_id} 直到 status 为 completed,再读取 data.result.images[].url[]。结果保留 72 小时,需要的文件请及时保存。
Sunburst 按实际 token 用量计费,费率与 Flare 相同。质量越高、尺寸越大,输出 token 越多;quality 为 auto 时按 max 预扣费、按实际用量结算。黄金会员立省 20%,铂金和钻石会员最高省 28%。
官方 gpt-image-2.5-sunburst 支持蒙版、质量档位、输出格式和精确尺寸,按 token 计费。Ext 标签页使用 gpt-image-2.5-ext 并设置 version 为 sunburst,提供 10 种比例或 auto,按分辨率对实际交付的每张图片计费,不支持蒙版和质量设置。
都不是。APIMart 没有为 Sunburst 提供免费额度,每个任务按量付费。OpenAI 只以托管 API 提供该模型,没有公开模型权重。
注册 APIMart,充值后在 API Keys 页面创建 Key,并以 Authorization: Bearer <key> 发送。同一个 Key 可调用 Sunburst、Flare 以及 APIMart 上的所有模型。
探索同类型的其他模型。

Grok Imagine Image Quality
Grok Imagine Image Quality is the quality-focused version of xAI's Grok image model for photorealistic text-to-image and image editing, with up to three reference images.

Grok Imagine 2.0 Ext
Grok Imagine 2.0 Ext is xAI's text-to-image model on APIMart. Each request generates 1–12 images in one of seven aspect ratios, billed only for images successfully delivered.

Qwen Image 3.0 Pro
Qwen Image 3.0 Pro is the Pro version of Qwen Image 3.0, with clear instruction following, stable bilingual text rendering, 1K/2K output and image editing with up to 3 references.

Qwen Image 3.0
Qwen Image 3.0 is Alibaba's image model for text-to-image and editing with 1–3 reference images. It offers stable bilingual text rendering and dense layouts, in standard and Pro versions at 1K or 2K, up to 6 images per request.