Seedream 5.0 Flash API

$0.0122/image Official price $0.018−32%

Balanced quality at a lower price and higher speed. One price per image at every size, reference images free.

1.5K, 2K or customUp to 10 reference imagesUp to 10 per Playground run

Examples

Call Seedream 5.0 Flash

The request below mirrors the Playground tab. Change a setting there and this code follows. You need a key first: create an API key.

curl -X POST https://api.letsfliq.com/api/v3/images/generations \
  -H "Authorization: Bearer $FLIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dola-seedream-5-0-flash-260915",
    "prompt": "High-speed photo of a water drop striking a dark surface, a crown-shaped splash frozen in mid-air",
    "size": "2K"
  }'

Parameters

modelstringDefault dola-seedream-5-0-flash-260915
Model ID, same as the official one
promptstring
What to generate. BytePlus: “Prompt length recommendation: Use no more than 300 Chinese characters or 600 English words. Excessively long prompts may scatter information, causing the model to overlook details and focus only on major elements.”
sizestringDefault 2K
1.5K, 2K, or width x height at about one of those sizes, such as 2816x1584, at 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9. The image comes back at the standard size for that ratio
imagestring or array
Up to 10 reference image URLs

Getting the result

  • Returns all information after all images have been generated. There is no task to poll.
  • data[0].url: The URL of the image, returned when response_format is specified as url. This link will expire within 7 days of generation. Be sure to save the image before expiration.
  • data[0].b64_json: The Base64 information of the image; returned when response_format is specified as b64_json.
  • The model generates only one image. For several, send the request once per image.

Pricing

ModelSizePer imagePer reference imageDiscount
Seedream 5.0 Flash1.5K$0.0122/image Official price $0.018References freeFree−32%
Seedream 5.0 Flash2K$0.0122/image Official price $0.018References freeFree