##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header when using:
Authorization: Bearer YOUR_API_KEYImage generation model name
doubao-seedream-4.5 "doubao-seedream-4.5"
Prompt describing the image you want to generate, or describing how to edit the input image, limited to 2000 tokens
2000"A serene lake reflecting the beautiful sunset"
Maximum number of images to generate, supports any integer value between [1,15]
Note:
To generate multiple images, include prompts like: "generate 2 different images" in your prompt
Reference image count + final generated image count ≤ 15 images
If: reference image count + images requested in prompt > 15, and images requested in prompt ≤ parameter n value, then final generated images = 15 - reference image count
Each request will pre-charge based on the value of n, actual charges based on the number of images generated
1
Size of generated image, supports two formats:
Method 1 - Simplified format:
2K, 4KMethod 2 - Pixel format:
2560x1440, 2048x2048, 4096x4096 and other values within range2048x2048[2560x1440, 4096x4096][1/16, 16]"2048x2048"
Prompt optimization strategy, used to set the mode for prompt optimization
Options:
standard: Standard mode, higher quality output, longer processing timestandard "standard"
Reference image URL list for image-to-image and image editing features
Note:
14 images10MB.jpeg, .jpg, .png, .webp, .bmp, .tiff, .gif[1/16, 16]6000×6000.png, .jpg)14[
"https://example.com/image1.png",
"https://example.com/image2.png"
]HTTPS callback address after task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries on failure (retries after 1 second/2 seconds/4 seconds)"https://your-domain.com/webhooks/image-task-completed"
Image generation task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-seedream4d"
Actual model name used
"doubao-seedream-4.5"
Specific task type
image.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Async task information
Task output type
text, image, audio, video "image"
Usage and billing information