Skip to main content
Seedream 4.0 natively accepts text, a single image, or multiple images. It can blend references while keeping subjects consistent, edit images, and generate related image sets. This guide shows how to use the API to generate sets and create images from multiple references.

Model parameters

The following Image API parameters are not supported:
  • negative_prompt
  • seed
  • strength
  • aspect_ratio
  • quality
  • style_preset
  • output_format
  • mask
  • background
See also: Official Seedream 4.0 API documentation.
Doubao-Seedream-4.0 does not have separate aspect ratio and resolution settings. Use size in one of two ways:
  • Specify a resolution (1K, 2K, or 4K), then describe the desired aspect ratio in prompt.
  • Specify width and height in pixels. The default is 2048x2048 (1:1). Use the following dimensions for other aspect ratios:
The allowed range for width × height in pixels is [1280x720, 4096x4096].

Text-to-image generation

Generate an image from a text description:
The response is a JSON object containing the URL of the generated image:

Image-to-image generation

Single image Edit an existing image using a text instruction to generate a new image:
As with text-to-image generation, the response is a JSON object containing the generated image URL:
Multiple images Combine styles or elements from several reference images. For example, combine clothes, shoes, and accessories with a model photo to show an outfit, or place a person in a landscape:
As with a single input, the response is a JSON object containing the generated image URL:

Generate image sets

Use text and one or more images to generate related images, such as comic panels or a brand identity set:
The response is a JSON object containing the list of generated images: