curl --request POST \
--url https://api.apimart.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "doubao-seedance-4-0",
"prompt": "可爱的熊猫在竹林中玩耍",
"size": "1:1",
"resolution": "2K",
"n": 1,
"image_urls": [
"https://cdn.apimart.ai/doc/1761215838466614297_9852.png"
]
}'
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}
Seedream-4.0
Seedream-4.0 图像生成
- 异步处理模式,返回任务ID用于后续查询
- 支持文本转图片、图生图、图像编辑等多种生成模式
- 生成的图像链接,有效期为24小时,请尽快保存
POST
/
v1
/
images
/
generations
curl --request POST \
--url https://api.apimart.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "doubao-seedance-4-0",
"prompt": "可爱的熊猫在竹林中玩耍",
"size": "1:1",
"resolution": "2K",
"n": 1,
"image_urls": [
"https://cdn.apimart.ai/doc/1761215838466614297_9852.png"
]
}'