DocsSeedream 5.0 Flash API usage and code examples

Seedream 5.0 Flash API usage and code examples

Base URL, authentication, endpoints, and code examples for calling Seedream 5.0 Flash (model ID: seedream-5.0-flash) through the API.

Model details

Model IDseedream-5.0-flash
ProviderByteDance
TypeImage
StatusAvailable
Processing regionGlobal
PricingSee the model page

Base URL and authentication

FormatBase URLKey header
OpenAIhttps://token.echohub.io/v1Authorization: Bearer

Create an API key in the console and put it in the ECHO_API_KEY environment variable.

Endpoints

Method and pathWhat it does
POST /v1/images/generationsGenerate images

Call examples

Supported parameters vary by model.

curl https://token.echohub.io/v1/images/generations \
  -H "Authorization: Bearer $ECHO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-5.0-flash",
    "prompt": "A Shiba Inu walking on the beach at dusk"
  }'

Related docs