Skip to main content
POST
Submit Seedream 4.0 task

提交任务

  • Header:Authorization: Bearer <your_api_key>。
  • 必填 prompt;可选 image_urls(最多 14 张)、aspect_ratio、resolution (1K/2K/4K)、batch_size (1-15,总图数≤15)、seed、watermark。
  • Breaking:size 已废弃,请使用 resolution,并可添加 aspect_ratio 控制画幅。
  • 异步返回 task_id、credits_deducted,用 /api/v1/task/status 轮询。
Seedream 4.0 按请求输出图片数预留积分,每张 30 积分;分辨率和输入图数量不额外收费。image_urls 最多 14 张,且 输入图数量 + batch_size <= 15。提交前应重新读取 /pricing。

授权

Authorization
string
header
必填

Wizzx API key. This is not a JWT.

请求体

application/json

Seedream 4.0 and 4.5 share this request schema. input image count + effective batch_size must be at most 15.

prompt
string
必填
Minimum string length: 1
image_urls
string<uri>[]
Maximum array length: 14

Publicly reachable HTTP(S) URL.

Pattern: ^https?://
aspect_ratio
enum<string>
可用选项:
1:1,
4:3,
3:4,
16:9,
9:16,
3:2,
2:3,
21:9
resolution
enum<string>
默认值:2K
可用选项:
1K,
2K,
4K
batch_size
integer
默认值:1
必填范围: 1 <= x <= 15
seed
integer
watermark
boolean
默认值:false

响应

Task accepted

code
enum<integer>
必填
可用选项:
0
message
string
必填
示例:

"success"

data
object
必填
request_id
string<uuid>
必填