seedream-5.0-pro
提交 seedream-5.0-pro 异步图片生成与多图参考任务,返回 task_id 后通过状态查询接口轮询。
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Request Body
application/json
model*string
模型名,固定为 seedream-5.0-pro。
prompt*string
图片描述(必填,非空)。
size?string
输出宽高比。
Value in
"1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9" | "auto"image?string
单张参考图 URL,可与 images 合并使用。
Format
uriimages?array<string>
多张参考图 URL,最多 10 张。
Items
items <= 10n?integer
生成数量。
Range
1 <= value <= 1quality?string
输出分辨率。
Value in
"1K" | "2K"resolution?string
quality 的兼容别名。
Value in
"1K" | "2K"watermark?boolean
是否添加水印。
output_format?string
输出图片格式。
Value in
"jpeg" | "png"[key: string]?never
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.apimp.ai/api/generate/submit" \ -H "Content-Type: application/json" \ -d '{ "model": "seedream-5.0-pro", "prompt": "A fashion editorial portrait with soft studio lighting" }'{
"code": 200,
"data": {
"task_id": "task_0VDknz6qRwvH5Y5aDAt6mN8pRShzLb6X",
"status": "not_started",
"created_time": "2026-06-18T09:21:26",
"error_message": null
}
}{
"code": 400,
"error": {
"message": "field `prompt` is required",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "string",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "string",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "string",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "string",
"type": "invalid_request_error"
}
}这篇文档对您有帮助吗?
最后更新于