Skip to main content
POST
Submit Seedream 5.0 Pro task

提交任务

prompt 必填。图片生成时省略 image_urls;图片编辑时传入恰好 1 个 HTTP(S) URL 或 base64 data URI(JPEG、PNG、WebP)。resolution 可选 1K(默认)、1.5K、2K;output_format 可选 jpeg(默认)或 png。每个被接受的请求生成一张图片。
网关按 resolution 每张计费:1K = 44、1.5K = 44、2K = 89 积分。aspect_ratio、output_format 与参考图不影响价格。具体积分以 /pricing 为准。

授权

Authorization
string
header
必填

Wizzx API key. This is not a JWT.

请求体

application/json

Omit image_urls for text-to-image or provide exactly one reference image for editing. One image per request. Billed per image by resolution; 1.5K costs the same as 1K. aspect_ratio, output_format, and the reference image do not change the price.

prompt
string
必填

Required prompt, at most 4000 Unicode characters.

Required string length: 1 - 4000
image_urls
string[]
Maximum array length: 1

HTTP(S) URL or base64 data URI. JPEG, PNG, or WebP only.

Pattern: ^(https?://|data:image/(jpeg|png|webp);base64,)
aspect_ratio
enum<string>
默认值:auto
可用选项:
auto,
1:1,
4:3,
3:4,
16:9,
9:16,
3:2,
2:3,
2:1,
1:2,
21:9
resolution
enum<string>
默认值:1K

Case-insensitive. Billed per image: 1K = 44, 1.5K = 44, 2K = 89 credits.

可用选项:
1K,
1.5K,
2K
output_format
enum<string>
默认值:jpeg
可用选项:
jpeg,
png

响应

Task accepted

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

"success"

data
object
必填
request_id
string<uuid>
必填