Routes to Volcengine's image generation service, supporting SSE streaming, image-to-image, and multi-image fusion.
Supported models
Basic generation
curl -X POST https://51kik.com/v1/image/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedream-5-0-260128",
"prompt": "A golden retriever running on grass",
"size": "2k"
}'
Base64 output
curl -X POST https://51kik.com/v1/image/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedream-5-0-260128",
"prompt": "a cat",
"size": "1024x1024",
"response_format": "b64_json"
}'
Image-to-image
curl -X POST https://51kik.com/v1/image/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedream-5-0-260128",
"prompt": "Turn this photo into a cartoon style",
"image": "https://example.com/portrait.jpg",
"size": "1024x1024",
"upstream_options": { "watermark": false, "guidance_scale": 7.5 }
}'
Multi-image fusion
curl -X POST https://51kik.com/v1/image/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedream-5-0-260128",
"prompt": "Place the person into the scene",
"image": ["https://example.com/person.jpg", "https://example.com/scene.jpg"],
"size": "1024x1024"
}'
image also supports object arrays [{ file_id, image_url }].
Streaming
curl -N -X POST https://51kik.com/v1/image/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "doubao-seedream-5-0-260128",
"prompt": "Golden retriever running on grass",
"size": "2k",
"stream": true
}'
Common upstream_options
| Parameter | Description |
|---|---|
watermark | Toggle watermark. Default true |
guidance_scale | Prompt guidance strength, 1-20 |
sequential_image_generation | Sequential image mode |
output_format | Output format, e.g. png, webp |