Skip to main content
POST

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Body

application/json
model
enum<string>
required

Image generation model name. Supported models include dola-seedream-5-0-pro-260628 (Seedream 5.0 pro, supports interactive editing, does not support sequential image generation).

Available options:
dola-seedream-5-0-pro-260628
prompt
string
required

Prompt for image generation, supports Chinese and English. It is recommended not to exceed 300 Chinese characters or 600 English words. Too many words may disperse information, causing the model to ignore details and focus only on key points, resulting in missing elements in the image.

Example:

"Dynamic close-up editorial portrait with sharp gaze, sculptural hat, rich color blocking."

image
required

Input image information, supports URL or Base64 encoding. Supports single or multiple image inputs.

  • Image URL: Ensure the image URL is accessible.
  • Base64 encoding: Follow the format data:image/<image_format>;base64,<Base64_encoded>. Note that <image_format> should be lowercase, e.g., data:image/png;base64,<base64_image>.

Notes:

  • Single image requirements:
    • Format: jpeg, png, webp, bmp, tiff, gif, heic, heif
    • Aspect ratio (width/height) range: [1/16, 16]
    • Width/height (px) > 14
    • Size: no more than 30MB
    • Total pixels: no more than 6000×6000 = 36000000 px (limit on the product of width and height, not individual values)
  • Seedream 5.0 pro supports up to 10 reference images.
size
string
default:2K

Specifies the size of the generated image, supports specifying resolution level (e.g., 2K) or width and height pixel values (e.g., 2048x2048), which cannot be mixed.

dola-seedream-5-0-pro-260628 (Seedream 5.0 pro) Supports the following two methods, which cannot be mixed:

  • Method 1 (Recommended): Specify resolution level and describe aspect ratio, shape, or purpose in the prompt. The model determines the final image size.

    • Default: 2K
    • Options: 1K, 2K
  • Method 2: Specify width and height pixel values (widthxheight).

    • Total pixel range: [1280x720 (921600), 2048x2048×1.1025 (4624220)]
    • Aspect ratio range: [1/16, 16]

Note: When using Method 2, both total pixel range and aspect ratio range must be satisfied. Total pixels refers to the product of width and height, not individual values.

  • Valid example: 2048x1024 Total pixels 2048x1024=2097152, within [921600, 4624220]; aspect ratio 2048/1024=2, within [1/16, 16], so valid.
  • Invalid example: 512x512 Total pixels 512x512=262144, below 921600 minimum, so invalid.

Resolution to pixel reference values when using Method 1 (not limited to these standard values, common ones listed):

Example:

"2K"

response_format
enum<string>
default:url

Specifies the return format of the generated image. Supported options:

  • url: Returns image download URL; valid for 24 hours after generation.
  • b64_json: Returns image data as Base64 encoded JSON.
Available options:
url,
b64_json
watermark
boolean
default:true

Whether to add watermark to generated images.

  • false: No watermark.
  • true: Add "AI Generated" watermark at bottom right corner.

Response

Success, returns the image generation result.

model
string

Model ID (model name-version) used for this request.

created
integer<int64>

Unix timestamp (seconds) of creation.

data
object[]

List of generated images.

usage
object

Usage information for this request.