Seedream-4.5
Seedream-4.5 Image Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Supports multiple generation modes including text-to-image, image-to-image, and image editing
- Generated image links are valid for 24 hours, please save them promptly
POST
Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Body
Image generation model nameSupported models:
doubao-seedance-4-5, Doubao-Seedream-4.5, doubao-seedream-4.5, doubao-seedream-4-5Example: "doubao-seedance-4-5"Text description for image generation
Image aspect ratioSupported aspect ratios:
1:1- Square (default)4:3- Landscape 4:33:4- Portrait 3:416:9- Landscape widescreen9:16- Portrait vertical3:2- Landscape 3:22:3- Portrait 2:321:9- Ultra-wide9:21- Ultra-tallauto- Auto-match reference image aspect ratio (requires image_urls)
Image resolutionSupported resolutions:
2K- Standard resolution (default)4K- High definition
Note: Seedream-4.5 does not support 1K resolutionResolution reference sizes:
| Resolution | 1:1 Size | 16:9 Size |
|---|---|---|
| 2K | 2048x2048 | 2560x1440 |
| 4K | 4096x4096 | 5404x3040 |
Number of images to generateRange: 1-15 (minimum 1, maximum 15)Default: 1Note:
- The actual number of images that can be generated is affected by both this parameter and the number of input reference images. The total of reference images + generated images must be ≤ 15
- Must enter a plain number (e.g.,
1), do not use quotes or it will cause an error
Reference image URL list for image-to-image or image editingTwo formats are supported:1. Complete image URL
- Publicly accessible image URL (
http://orhttps://) - Example:
https://example.com/image.jpg
- Must use the complete Data URI format
- Format:
data:image/{format};base64,{base64 data} - Supported image formats: jpeg, png
- Example:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg... - Note: the
data:image/jpeg;base64,prefix is required
- Maximum 10 images
- Image formats: jpeg, png
- Aspect ratio (width/height) range: [1/3, 3]
- Width and height (px) > 14
- Size: not exceeding 10MB
- Total pixels: not exceeding 6000×6000 px
Prompt optimization mode
standard: Standard mode, generates higher quality content with longer processing timefast: Fast mode, generates content in shorter time with regular quality
standardSequential image generation mode (Doubao-specific feature)Controls whether to generate multiple images:
disabled: Disable sequential mode, generates only 1 image even with multiple reference images (default)auto: Enable sequential mode, can generate multiple images
- ✅ Must provide
image_urls- at least 1 reference image required - ✅ Set
n: 3or usesequential_image_generation: "auto"+max_images: 3 - ✅ This will generate 3 different images based on reference images
- ⚠️ When
n > 1, it will automatically be set toauto
- Pure text-to-image (without
image_urls) cannot generate multiple images - this is a Doubao API limitation
Sequential image generation optionsAvailable when
sequential_image_generation is set to autoProperties:max_images(integer): Specify the number of images to generate, Range: 1-15
Whether to add a watermark to the generated image
true: Add watermarkfalse: No watermark (default)
Response
Response status code
Response data array