跳转到主要内容
POST
创建 Seedream 5.5 异步生图任务。成功后返回 task_id,请用 查询图片任务 轮询,完成后从 result.image_url 取图。 GPT Image 2 见 创建 GPT Image 2 任务。GPT Image 2.6 见 创建 GPT Image 2.6 任务。Nano Banana 系列见 创建 Nano Banana 任务。Muse Image 见 创建 Muse Image 任务。

模型

按分辨率对应的计费模型扣费(per_task,每次 1 张)。实际单价以 模型目录 与创建响应中的 cost 为准。也可直接传计费键作为 model。

请求参数

示例

文生图(1K)

参考图(2K)

成功响应示例:

授权

Authorization
string
header
必填

控制台创建的 API Key,格式:Bearer sk_xxx

请求体

application/json
model
string
必填

gpt-image-2 (plus low/medium/high), gpt-image-2.6-flare / gpt-image-2.6-sunburst, nano-banana-2 / nano-banana-2.1 / nano-banana-pro, seedream-5.5, or muse-image

示例:

"nano-banana-2"

prompt
string

GPT Image 2 / Seedream 5.5 / Muse Image max 4000; GPT Image 2.6 max 32000; Nano Banana max 10000. Nano Banana / Seedream prompt is optional when images are provided. Muse Image prompt is always required

Required string length: 1 - 32000
quality
enum<string>
默认值:auto

GPT Image 2: auto / low / medium / high, billed by tier. GPT Image 2.6 also accepts xhigh / max without changing the price

可用选项:
auto,
low,
medium,
high,
xhigh,
max
n
integer
默认值:1

GPT Image 2 accepts 1–4. GPT Image 2.6, Nano Banana, Seedream 5.5, and Muse Image accept 1 only

必填范围: 1 <= x <= 4
ratio
string
size
string

Alias of ratio. GPT Image 2.6 accepts auto or an aspect ratio, not a pixel size. Muse Image reduces a pixel size such as 1024x1024 to its ratio

resolution
string

GPT Image 2.6 accepts 1k only. Nano Banana: 0.5k/1k/2k/4k depending on the model

images
string<uri>[]

Reference image URLs. GPT Image 2 max 15; GPT Image 2.6 max 16; Nano Banana max 5; Seedream 5.5 max 8; Muse Image max 10. GPT Image 2.6 svg and gif cannot include reference images

Maximum array length: 16
output_format
enum<string>

GPT Image 2.6 only. jpg is treated as jpeg. For gif, omit size or send auto

可用选项:
png,
jpeg,
webp,
svg,
gif
style
string

Muse Image only. Free-text style such as photorealistic, anime, or cinematic

Maximum string length: 1000
negative_prompt
string

Muse Image only. What should not appear, kept apart from prompt

Maximum string length: 1000
smart_queue
boolean
默认值:false

When true, a very low recent success rate keeps the task queued until recovery (up to about 2 hours)

响应

200 - application/json

提交成功

code
integer
示例:

20000

msg
string
data
object
最后修改于 2026年11月14日