Seedream-4.0
Seedream-4.0 Image Generation
Generate high-quality images using Seedream 4.0 model
POST
Documentation Index
Fetch the complete documentation index at: https://docs.toapis.com/llms.txt
Use this file to discover all available pages before exploring further.
- Seedream 4.0 high-quality image generation model
- Use model parameter to select
doubao-seedream-4-0model - Supports text-to-image generation
- Async task management, query results by task ID
Authorizations
All endpoints require Bearer Token authenticationGet your API Key from the API Key Management PageAdd to request header:
Body
Image generation model nameExample:
"doubao-seedream-4-0"Text description for image generationMaximum 1000 characters
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 ratio (requiresimage_urls)
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 editing⚠️ URL format only (base64 no longer supported)
- Publicly accessible image URL (http:// or https://)
- Example:
https://example.com/image.jpg - You can use the Upload Image API to upload local images and get URLs
- Maximum 10 images
- Image formats: jpeg, png
- Aspect ratio (width/height) range: [1/3, 3]
- Width and height (px) > 14
- Single image size: not exceeding 10MB
- Total pixels: not exceeding 6000×6000 px
Channel-specific parameters for Seedream 4.0 model advanced configuration
Response
Unique task identifier for status queries
Object type, always
generation.taskModel name used
Task status
queued- Queued for processingin_progress- Processingcompleted- Successfully completedfailed- Failed
Task progress percentage (0-100)
Task creation timestamp (Unix timestamp)
Task metadata