POST /v1/images/generationshttps://moyunapi.comAuthorization: Bearer sk-xxximage 参数传入字符串数组,每个元素为一张参考图片的 URL 或 Base64 编码。| 模型 | 最多参考图数 |
|---|---|
| 5.0 pro | 10 张 |
| 5.0 lite | 14 张 |
| 4.5 | 14 张 |
| 4.0 | 14 张 |
image 作为数组传入多个图片 URL 或 Base64 编码。curl --location 'https://moyunapi.com/v1/images/generations' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "Doubao-Seedream-5.0-lite",
"prompt": "将这两张图片中的场景和人物融合,人物站在风景中,光线自然",
"image": [
"https://cdn.example.com/person.jpg",
"https://cdn.example.com/landscape.jpg"
],
"size": "2K",
"response_format": "url",
"watermark": false
}'{
"model": "Doubao-Seedream-5.0-lite",
"created": 1757321139,
"data": [
{
"url": "https://files.moyunapi.com/seedream/multi_001.png",
"size": "2848x1600"
}
],
"usage": {
"generated_images": 1,
"output_tokens": 17800,
"total_tokens": 17800
}
}