The gateway automatically sets sequential_image_generation: "auto", max_images, and stream: false for you.
curl -X POST YOUR_BASE_URL/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer kikaku_YOUR_KEY" \
-d '{
"model": "seedream-4.5",
"prompt": "Generate 4 illustrations of a courtyard across the four seasons",
"size": "2K",
"n": 4,
"response_format": "url",
"watermark": false
}'
💡 How batch works: The gateway sends sequential_image_generation: "auto" with stream: false to SeedDream. If the API returns fewer images than requested, the gateway automatically makes parallel individual calls to fill the remaining slots — ensuring you always get the exact number of images requested.
Batch Generation — using native SeedDream parameters:
You can also pass sequential_image_generation directly. Requires stream: false.
curl -X POST YOUR_BASE_URL/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer kikaku_YOUR_KEY" \
-d '{
"model": "seedream-4.5",
"prompt": "Generate 4 illustrations of a courtyard across the four seasons",
"size": "2K",
"sequential_image_generation": "auto",
"sequential_image_generation_options": { "max_images": 4 },
"stream": false,
"response_format": "url",
"watermark": false
}'
⚠️ Important: When using sequential_image_generation directly, you must set "stream": false. Without it, the API may only return 1 image. Using the n shortcut is recommended.