Seedream 5.0 Pro
POST
/api/v3/images/generationsBody Parametersapplication/json
guidance_scale number
How closely to follow the prompt; range [1, 10]
image oneOf
Reference (official). Single URL string or URL array (interactive edit / I2I, up to ~10)
images oneOf
compat field; gateway normalizes to image. Use either this or image
model* string
Model name
n integer
Number of images; Pro usually 1
optimize_prompt_options object
prompt optimization settings
properties mode* string
optimized mode
output_format string
image file format
prompt* string
generation / edit prompt
response_format string
response shape
seed integer
Random seed, range [-1, 2147483647], default -1
size string
Resolution tier or pixels. Commonly 1K/2K; also e.g. 1024x1024, 2048x2048, 2816x1584. Empty billed at higher tier
watermark boolean
Whether to add a watermark
Responses
200 OK application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"model": "doubao-seedream-5-0-pro-260628",
3"prompt": "一只猫",
4"response_format": "url",
5"size": "2K",
6"watermark": false
7}
1curl -X POST "https://api.digislash.com/api/v3/images/generations" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"model": "doubao-seedream-5-0-pro-260628",
6"prompt": "一只猫",
7"response_format": "url",
8"size": "2K",
9"watermark": false
10}'
1▼{
2"code": 0,
3▼"data": {
4"task_id": "task_example_001"
5},
6"message": "success"
7}
