Async processing mode — submit a request and receive a task ID. Use the Query Task Status endpoint to retrieve generation results. Image links are valid for 24 hours — please save them promptly.
cURL
Python
JavaScript
Go
Java
curl -X POST https://qingbo.dev/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5.0",
"action": "generate",
"prompt": "一只柴犬穿宇航服站在月球上",
"size": "16:9",
"resolution": "2K",
"watermark": false
}'
{
"task_id" : "task-wave1775285160b950328499" ,
"model" : "seedream-5.0" ,
"action" : "generate" ,
"status" : "queued" ,
"created_at" : 1775285160040 ,
"progress" : 0
}
Available Models
Model ID Description seedream-5.0Seedream 5.0, supports multi-image sets, web search, and streaming output seedream-4.5Seedream 4.5, supports multi-image sets and 4K resolution seedream-4.0Seedream 4.0, supports multi-image sets, 1K-4K resolution
Common Parameters
Model group name: seedream-5.0, seedream-4.5, seedream-4.0
Text prompt, supports Chinese and English, recommended no more than 300 Chinese characters
Reference image URL array, up to 14 images, each up to 10MB
Aspect ratio: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9
Resolution, available values depend on the model (see model tabs)
Number of images to generate. Values greater than 1 enable multi-image set mode
Whether to add a watermark
Webhook callback URL upon task completion
Additional parameters passed through to the upstream model (see model tabs)
Model-Specific Parameters
Seedream 5.0
Seedream 4.5
Seedream 4.0
resolution options: 2K, 3Ksize additional support: 4:5, 5:4Output image format: png, jpeg
Return format: url (download link) or b64_json (Base64)
Streaming output, returns each image result immediately
Prompt optimization configuration
standard — Higher quality, longer processing time
fast — Faster processing, lower quality (not supported in 5.0)
Model tools, supports web search to improve timeliness "extra" : { "tools" : [{ "type" : "web_search" }] }
resolution options: 2K, 4KReturn format: url or b64_json
resolution options: 1K, 2K, 4KText weight. Higher values increase adherence to the prompt, range [1, 10]
Return format: url or b64_json
Generation Modes
Mode Parameters Description Text-to-image promptPure text generation Single image-to-image prompt + image_urls (1 image)Reference image + text Multi-image-to-image prompt + image_urls (2-14 images)Multiple reference image fusion Image set n > 1Generate a set of related images
In image set mode, the total of reference images + generated images must be 15 or fewer.
Response
Creation time (Unix millisecond timestamp)