Authorization: Bearer ********************
{
"model": "doubao-seedream-4-0-250828",
"prompt": "Tạo 3 bức ảnh một cô gái cùng thú bông hình con bò đang vui vẻ ngồi tàu lượn trong công viên giải trí, bao gồm khung cảnh buổi sáng, buổi trưa và buổi tối.",
"image": [
"https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimages_1.png",
"https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimages_2.png"
],
"sequential_image_generation": "auto",
"sequential_image_generation_options": {
"max_images": 3
},
"response_format": "url",
"size": "1728x2304",
"stream": true,
"watermark": true
}
curl --location --request POST 'https://api.key4u.shop/v1/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "doubao-seedream-4-0-250828",
"prompt": "Tạo 3 bức ảnh một cô gái cùng thú bông hình con bò đang vui vẻ ngồi tàu lượn trong công viên giải trí, bao gồm khung cảnh buổi sáng, buổi trưa và buổi tối.",
"image": [
"https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimages_1.png",
"https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimages_2.png"
],
"sequential_image_generation": "auto",
"sequential_image_generation_options": {
"max_images": 3
},
"response_format": "url",
"size": "1728x2304",
"stream": true,
"watermark": true
}'
{
"data": [
{
"url": "https://ark-content-generation-v2-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-4-0/0217574695481350fa6ef8c2347680bd87fd8d357bb16f114b01e_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20250910%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20250910T015921Z&X-Tos-Expires=86400&X-Tos-Signature=95ed1d75393161dc0ea150c0c9b6d72298d4b27ea3ca305bcf07268ffe550e4c&X-Tos-SignedHeaders=host"
}
],
"created": 1757469561,
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 16280,
"prompt_tokens_details": {
"cached_tokens_details": {}
},
"completion_tokens_details": {},
"output_tokens": 16280
}
}