BytePlus Seedream and SeedEdit image generation

Generate images from text or images, or create multiple related images with Seedream 5.0 Pro, 5.0 Lite, 4.5, and 4.0. Compatible with the OpenAI SDK.

POST /v1/images/generations

Auth: {'type': 'bearer', 'prefix': 'sk-', 'description': 'Pass your API key in the `Authorization: Bearer sk-xxx` header.'}

BytePlus Seedream + SeedEdit image generation series (under BytePlus ModelArk, a ByteDance overseas brand) > 📖 Official documentation: https://docs.byteplus.com/en/docs/ModelArk/1824121 [Seedream 5.0 Pro Official Documentation 🚀](https://docs.byteplus.com/en/docs/ModelArk/2582774) ## Model Matrix (new version preferred) | Model | Primary Use Cases | i2i? | Multi-image Reference | sequential | |---|---|---|---|---| | `dola-seedream-5-0-pro-260628` ⭐ | **Pro Version** (t2i/i2i/group/online search), only 1K/2K | ✅ | ✅ Multiple | — (only single image output) | | `seedream-5-0-lite-260128` | **Next-Generation Recommended**, compatible with 4.5 schema 100%, best value for money | ✅ | ≤14 images | ✅ max 15 | | `seedream-4-5-251128` | 4K recommended + multi-image sequential generation | ✅ | ≤14 images | ✅ max 15 | | `seedream-4-0-250828` | Basic text-to-image + image-to-image | ✅ | ≤3 images | — | ## Supported sizes - `1K` / `2K` (default) / `4K` — primary tiers - `auto` — automatically selected by model - `WxH` custom (1024-4096, 16 multiples), only 4.0+ supported - Note: `dola-seedream-5-0-pro` only supports 1K / 2K, single image output (no group sequential generation) ## Field differences (by model) - **t2i model** (3.0-t2i / 4.0 / 4.5 / 5.0-lite): `prompt` required, `image` optional - **SeedEdit 3.0 (i2i)**: **`image` required** (single URL), `prompt` is the editing instruction - **4.5 / 5.0-lite exclusive**: `sequential_image_generation` + `sequential_image_generation_options.max_images` returns multiple images in one go - **3.0 / 4.0**: does not support sequential generation ## response format Returns 24h valid CDN URL (`data[].url`), client must download and store locally or in object storage. ## Usage tips - Client can use OpenAI Python/Node SDK to call `client.images.generate(model="seedream-5-0-lite-260128", prompt="...", size="2K")` directly - Watermark defaults to `true` (watermark included by upstream, bottom-left corner), pass `watermark: false` to disable - Single image file size can reach up to 1-3 MB (depends on size), download URL 24h to download locally - No streaming support, `stream` / `partial_images` fields are ignored

Request body

modelstringrequiredModel ID, 4 optional (newer versions preferred): `dola-seedream-5-0-pro-260628` ⭐ / `seedream-5-0-lite-260128` / `seedream-4-5-251128` / `seedream-4-0-250828`
promptstringrequiredText description (t2i) or editing instruction (SeedEdit), up to 4000 characters
imagestring | string[]Reference image URL (i2i). `dola-seedream-5-0-pro` supports single/multiple images (first one free, starting from the 2th image charged); `seedream-4.5 / 5.0-lite` supports up to 14 images in array; `seedream-4.0` supports single or up to 3 images in array
sizestringImage size. Main tier 1K/2K/4K, or custom `WxH` (1024-4096 pixels, 16 times scale). `dola-seedream-5-0-pro` only 1K/2K (billed by resolution tier)
response_formatstringReturn format. Fixed to `url` (returns valid CDN URL for 24h)
watermarkbooleanWatermark (default `true`, bottom-left corner). For commercial use, pass `false` to disable
seedintegerRandom seed for reproducing identical results (0 ~ 2^31-1)
sequential_image_generationstringMulti-image sequential generation mode (only `seedream-5-0-lite` / `seedream-4-5`). `auto` enables returning multiple images
sequential_image_generation_optionsobjectSequential configuration, only effective when `sequential_image_generation=auto`
    max_imagesintegerMaximum number of images returned per request (1-15)

Responses

Example

# 文生图 (Seedream 5.0 Pro, 仅 1K/2K)
curl https://api.router.ai/v1/images/generations \
  -H "Authorization: Bearer sk-xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dola-seedream-5-0-pro-260628",
    "prompt": "雪夜中的东京街头, 霓虹灯倒影在湿润的柏油路上, 电影感",
    "size": "2K",
    "watermark": false
  }'

# 图生图 i2i (Seedream 5.0 Pro, 单/多参考图; 首张参考图免费, 第 2 张起计费)
curl https://api.router.ai/v1/images/generations \
  -H "Authorization: Bearer sk-xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dola-seedream-5-0-pro-260628",
    "prompt": "把参考图变成赛博朋克风格海报",
    "image": ["https://your-cdn.com/ref1.jpg", "https://your-cdn.com/ref2.jpg"],
    "size": "1K"
  }' 

API reference