Skip to main content
POST

Authorizations

string
required
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

string
default:"doubao-seedream-5-0-lite"
required
Image generation model nameSupported models: doubao-seedream-5-0-lite, doubao-seedream-5.0-lite, Doubao-Seedream-5.0-liteExample: "doubao-seedream-5-0-lite"
string
required
Text description for image generation
string
default:"1:1"
Image aspect ratioSupported aspect ratios:
  • 1:1 - Square (default)
  • 4:3 - Landscape 4:3
  • 3:4 - Portrait 3:4
  • 16:9 - Landscape widescreen
  • 9:16 - Portrait vertical
  • 3:2 - Landscape 3:2
  • 2:3 - Portrait 2:3
  • 21:9 - Ultra-wide
  • auto - Auto-match reference image aspect ratio (requires image_urls)
Note: Seedream-5.0-Lite does not support 9:21 ratio
string
default:"2K"
Image resolutionSupported resolutions:
  • 2K - Standard resolution (default)
  • 3K - High definition
  • 4K - Ultra high definition
Note: Seedream-5.0-Lite supports 2K, 3K, and 4K resolutions, and does not support 1K
Resolution reference sizes:
integer
Number of images to generateRange: 1-15Default: 1Note:
  • When n > 1, sequential image generation mode is automatically enabled
  • Must enter a plain number (e.g., 1), do not use quotes or it will cause an error
Charges will be pre-deducted based on the number
The number of reference images in image_urls + the final number of generated images specified by n must be ≤ 15.
array
Reference image URL list for image-to-image generationTwo formats are supported:1. Full image URL
  • Publicly accessible image URL (http:// or https://)
  • Example: https://example.com/image.jpg
2. Base64 encoded format
  • Must use the full Data URI format
  • Format: data:image/{format};base64,{base64data}
  • Supported image formats: jpeg, png
  • Example: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
  • ⚠️ Note: Must include the data:image/jpeg;base64, prefix
Limitations:
  • Image formats: jpeg, png
  • Aspect ratio (width/height) range: [1/3, 3]
  • Width and height (px) > 14
  • Size: not exceeding 10MB per image
  • Total pixels: not exceeding 6000×6000 px
The number of reference images in image_urls + the final number of generated images specified by n must be ≤ 15.
string
default:"jpeg"
Output image format
  • jpeg: JPEG format (default)
  • png: PNG format, suitable for transparent backgrounds and similar use cases
Note: The output_format parameter is exclusive to Seedream-5.0-Lite. Other image models will ignore this parameter.
string
default:"disabled"
Sequential image generation modeControls whether to generate multiple images:
  • disabled: Disable sequential mode (default)
  • auto: Enable sequential mode, can generate multiple images
Usage Notes:
  • When n > 1, it will automatically be set to auto
object
Sequential image generation optionsAvailable when sequential_image_generation is set to autoProperties:
  • max_images (integer): Specify the number of images to generate
Example:
boolean
default:"false"
Whether to add a watermark to the generated image
  • true: Add watermark
  • false: No watermark (default)

Response

integer
Response status code
array
Response data array