Docs

Doubao Seedream 5.0 Flash API developer guide

Doubao Seedream 5.0 Flash is currently "Available". This guide provides model IDs, price snapshots, and copyable examples for integration. Doubao Seedream 5.0 Flash model page

Overview

  • Vendor: ByteDance
  • Type: Image
  • Number of tiers: 1
  • Endpoint tags: openai, image-generation

Available tiers and pricing

The model in requests must use the model IDs in the table below, case-sensitive.

doubao-seedream-5.0-flash

Billed per output at the selected rate

Resolution: 1k
$0.02 / output image
Resolution: 2k
$0.024 / output image
Snapshot time Final charges depend on the actual request and settlement.

Compare pricing

Base URL and authentication

Base URL is https://api.rokoapi.com/v1. All requests must include Authorization: Bearer $OPENAI_API_KEY.

Console

Quickstart

curl -sS "https://api.rokoapi.com/v1/images/generations" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "doubao-seedream-5.0-flash",
  "prompt": "A cobalt desk clock on pale stone, with a readable Roko API engraving",
  "size": "1K",
  "n": 1,
  "response_format": "url"
}'

Response schema example

Illustrative data

{
  "data": [
    {
      "url": "https://example.com/output.jpg"
    }
  ]
}

Download data[].url promptly and inspect the file type and pixel dimensions. For b64_json, decode data[].b64_json. The 1K and 2K tiers are billed per output. Test reference image count and formats on your route before using them in production.

Handle failures

  • 400Check field types, allowed values and asset mode.
  • 401 / 403Check the bearer key and model access.
  • 429Honor Retry-After when present and back off.

Request parameters

Common parameters
FieldDetails
string · RequiredUse this public model ID.
doubao-seedream-5.0-flash
string · RequiredDescribe the subject, scene and desired changes.
string · OptionalResolution tier. Read the pixel dimensions from the returned image.
1K · 2K
Affects cost
integer · OptionalRequest one image per call. The examples use n=1.
Advanced parameters
FieldDetails
string | array · OptionalReference images must be reachable by the provider.
≤ 10
image-to-image · reference-to-image
string · OptionalSelect a URL or Base64 payload.
url · b64_json

Notes

  • Use only the model IDs listed on this page; unprovisioned or retired names will return a model unavailable error.
  • If you encounter a 403 error, check your account balance, key group, and model access permissions.
  • Multimodal, tool calling, caching, and streaming capabilities depend on the upstream model and channel configuration; refer to actual responses.