Skip to main content
POST
/
v3
/
seedream-5.0-lite
Seedream 5.0 lite
curl --request POST \
  --url https://api.highwayapi.ai/v3/seedream-5.0-lite \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "size": "<string>",
  "image": [
    {}
  ],
  "prompt": "<string>",
  "watermark": true,
  "optimize_prompt_options": {
    "mode": "<string>"
  },
  "sequential_image_generation": "<string>",
  "sequential_image_generation_options": {
    "max_images": 123
  }
}
'
{
  "images": [
    {}
  ]
}
Generate images based on input text prompts and/or reference images. Supports generating a single image or a set of images (a group of related images).

Request Headers

Content-Type
string
required
Enumerated value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

size
string
default:"2048x2048"
Specifies the size information for the generated image. Method 1: specify the resolution (2K, 3K); Method 2: specify the width and height in pixels (such as 2048x2048). Total pixel range: [2560x1440=3686400, 3072x3072x1.1025=10404496], aspect ratio range: [1/16, 16].
image
array
Array of input image information, supporting URL or Base64 encoding. Up to 14 reference images can be provided. Supported image formats include jpeg, png, webp, bmp, tiff, and gif.Array length: 1 - 14
prompt
string
required
The prompt used to generate the image, supporting both Chinese and English. Recommended length is no more than 300 Chinese characters or 600 English words.
watermark
boolean
default:true
Whether to add a watermark to the generated image.
optimize_prompt_options
object
Configuration for the prompt optimization feature.
sequential_image_generation
string
default:"disabled"
Controls whether to disable the image set feature. auto: automatic judgment mode, where the model determines whether to return a set of images based on the prompt; disabled: disables the image set feature and generates only one image.Available values: auto, disabled
sequential_image_generation_options
object
Configuration for the image set feature. Only takes effect when sequential_image_generation is auto.

Response Information

images
array
Array of generated image information.