Skip to main content
Doubao Seedream 5.0 Pro and Flash support text-to-image, single-image editing, and generation from multiple reference images. Interactive editing supports precise coordinates and free-form annotations. You can also split a single image into a base image and multiple layers.

Model parameters

The following Image API parameters are not supported:
  • negative_prompt
  • strength
  • aspect_ratio
  • quality
  • style_preset
  • mask
See also: Official Seedream 5.0 Pro/Flash API documentation.
For image-to-image generation, pass reference images in image as URLs or Base64-encoded data. Supply up to 10 images, using an array for multiple images. Requirements:
  • Supported formats: PNG, JPG, JPEG, WEBP, BMP, TIFF, and GIF.
  • Each image must be no larger than 30 MB. The long-to-short side ratio must not exceed 16:1, and the short side must be greater than 14 px.
  • Total pixels: 196–36,000,000, or 262,144–36,000,000 for layer separation.
Seedream 5.0 adds layer separation. Pass layer_decomposition in extra_body to enable it. See Layer separation. Seedream 5.0 does not have separate aspect ratio and resolution settings. Use size in one of two ways:
  • Specify a resolution: 1K, 1.5K, 2K (default for regular generation), or auto (default for layer separation and only available in that mode). Describe the aspect ratio, shape, or intended use in prompt and let the model determine the dimensions.
  • Specify width and height in pixels. The default is 2048x2048 (1:1). Use the following dimensions for other aspect ratios:
Set output_format to png or jpeg to control the Seedream 5.0 output format. The default is png. Set response_format to url or b64_json to control the Seedream 5.0 response format. The default is url. Use background to control whether Seedream 5.0 generates an image with an alpha channel:
  • transparent: Transparent background. Outputs an image with a transparent background.
  • opaque: Opaque background. Outputs an image with a regular solid background.
Limitations:
  • Only supported for image-to-image generation, with a single input image containing an alpha channel.
  • Transparent background mode outputs PNG by default. Setting output_format to jpeg in this mode returns an error.
  • Supplying an input format that does not support an alpha channel, such as JPEG, returns an error.
Seedream 5.0 no longer supports image sets. Parameters for image sets have no effect. To select the prompt optimization mode in GeekAI, use extra_body.prompt_extend_mode instead of the official optimize_prompt_options.mode. Alternatively, pass the official optimize_prompt_options object in extra_body. GeekAI accepts both; extra_body.optimize_prompt_options takes precedence.

Pricing

Seedream 5.0 Pro pricing depends on the total output pixel count. Images below 2.61 million pixels cost 0.3 CNY each; those above 2.61 million cost 0.6 CNY each. Layer separation costs half these rates. Both 1K and 1.5K images have fewer than 2.61 million pixels, so they fall in the same price tier: For regular image-to-image generation with more than one input, each input after the first costs 0.02 CNY. Total price = output price per image × number of outputs + input price per image × (number of inputs − 1). Layer separation accepts just one input image, so the input is free and only the outputs are billed. When using a GeekAI discounted proxy channel, multiply the listed price by the channel’s discount factor. For example, the high-availability Pro channel has a factor of 0.8. An image with size set to 1K costs 0.3 x 0.8 = 0.24 CNY. Separating an image into eight outputs costs 0.15 x 0.8 x 8 = 0.96 CNY. Apply the same calculation to other settings.

Text-to-image generation

Give the model a clear, precise description to quickly generate a single high-quality image:
The response is a JSON object containing the URL of the generated image:
The image-to-image examples below return the same response format.

Image-to-image generation

Doubao-Seedream-5.0-Pro can modify existing images to generate new ones. Pass one or more images in image and describe the changes in prompt. Single image
Multiple images
Doubao-Seedream-5.0-Pro accepts up to 10 input images.

Layer separation

Doubao-Seedream-5.0-Pro can split one image into a base image and up to 16 layers. Pass "layer_decomposition": true in extra_body to enable layer separation:
The response uses the same structure as the official API: