GPT Image 2.5 Sunburst API

GPT Image Sunburst(v2.5 与 v2.6)是侧重精细编辑的 GPT Image 版本,支持文字生图和最多 16 张参考图编辑,单次可出 1–4 张,输出 1k、2k 或 4k。

在线试用 · 获取 API Key · 查看文档

模型能力

模型
图片
API 模型
zhenzhen-image-g-v2.5-sunburst
接口
POST /v1/image/generations, GET /v1/image/generations/{id}
参数
prompt, images: 0–16 (public HTTP(S)), n: 1–4, size: auto / ratio / WxH, resolution: 1k / 2k / 4k, quality: auto / low / medium / high / xhigh / max, output_format: png / jpeg / webp, background: auto / transparent / opaque, v2.6: complexity, mask_url / markup_url / markup, gif / svg

实时价格

≈¥0.04–16.82 每次请求

画廊样例

该模型暂无已发布的画廊作品。

浏览提示词画廊

快速开始

示例流程:上传商品图,用提示词要求“改为蓝色并保持形状”。size 不填时沿用参考图比例,也可填 auto、1:1、16:9 等比例,或填宽×高(16 的倍数,单边不超过 3840,总像素 655,360–8,294,400)。quality 可选 auto、low、medium、high、xhigh、max;输出 png、jpeg 或 webp,透明背景需 png 或 webp。参考图仅接受公开 HTTP(S) 地址,不支持流式返回。v2.6 另支持 complexity、局部重绘(mask_url / markup_url / markup,需配合参考图)以及纯文字生成的 GIF 和 SVG。

cURL

curl --fail-with-body https://www.zzai.app/v1/image/generations \
  -H "Authorization: Bearer $SEEDANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"images":["https://your-cdn.example/product.png"],"model":"zhenzhen-image-g-v2.5-sunburst","prompt":"Make the teapot blue and keep its shape, lighting and background.","quality":"low","resolution":"1k"}'

Python

import json, os, requests

payload = json.loads(r'''{"images":["https://your-cdn.example/product.png"],"model":"zhenzhen-image-g-v2.5-sunburst","prompt":"Make the teapot blue and keep its shape, lighting and background.","quality":"low","resolution":"1k"}''')
response = requests.post(
    "https://www.zzai.app/v1/image/generations",
    headers={"Authorization": "Bearer " + os.environ["SEEDANCE_API_KEY"]},
    json=payload, timeout=120,
)
response.raise_for_status()
print(response.json()["id"])

JavaScript

const response = await fetch("https://www.zzai.app/v1/image/generations", {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.SEEDANCE_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"images":["https://your-cdn.example/product.png"],"model":"zhenzhen-image-g-v2.5-sunburst","prompt":"Make the teapot blue and keep its shape, lighting and background.","quality":"low","resolution":"1k"}),
});
if (!response.ok) throw new Error(await response.text());
console.log((await response.json()).id);

提交后保存返回的 id,替换查询示例中的 TASK_ID。每隔 3–5 秒查询一次,直到成功或失败;提交成功不等于生成完成。成功后及时保存结果文件。 data.status: SUCCESS / FAILURE; data.result_url.

curl --fail-with-body https://www.zzai.app/v1/image/generations/$TASK_ID \
  -H "Authorization: Bearer $SEEDANCE_API_KEY"

常见问题

如何调用这个模型?

创建 API Key,使用下方模型名,并按照文档中的 OpenAI 兼容接口发送请求。最终费用以当前价格和实际参数结算。