Seedream text-to-image API reference and live Playground — pure text prompts, 1K/2K/3K/4K and exact pixel sizes, three versions on a single endpoint
Bearer sk-xxx), enter a prompt, pick a model and size, and hit send.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | yes | — | seedream-5-0-260128 / seedream-4-5-251128 / seedream-4-0-250828 |
prompt | string | yes | — | Prompt text. Supports English and Chinese. Be detailed about scene, style, lighting. |
size | string | no | 2K | Preset tier (varies by version) or exact pixels WxH |
response_format | string | no | url | url returns a signed link; b64_json returns a plain base64 string |
output_format | string | no | jpeg | 5.0 supports png / jpeg; 4.5 / 4.0 only jpeg (pass via extra_body in OpenAI SDK) |
n | integer | no | 1 | Output count per request (recommended ≤ 4, subject to total ≤ 15) |
seed | integer | no | random | Seed for reproducibility |
watermark | boolean | no | varies | Whether to include the BytePlus watermark (set false for commercial use) |
stream | boolean | no | false | Streaming output, useful for long prompts + high resolution |
usage.generated_images reflects the billed image count. Seedream bills per image; output_tokens / total_tokens are observability metrics and do not affect billing.API Key obtained from APIYI Console
Model ID — pick one
seedream-5-0-260128, seedream-5-0-lite-260128, seedream-4-5-251128, seedream-4-0-250828 Prompt, supports both English and Chinese. Describe scene, style, and lighting in detail for better results.
"A serene Japanese garden with cherry blossoms, koi pond, traditional bridge, golden hour, ultra detailed"
Output size. Preset tiers (vary by version):
1K (~1024×1024) — 4.0 only2K (~2048×2048) — 5.0 / 4.5 / 4.03K (~3072×3072) — 5.0 only4K (~4096×4096) — 4.5 / 4.0Or exact pixel size WxH, total pixels ∈ [1280×720, 4096×4096], aspect ratio ∈ [1/16, 16]
"2K"
url returns a temp signed link (24h validity); b64_json returns plain base64 (no data: prefix)
url, b64_json Output format. 5.0 supports png/jpeg; 4.5/4.0 only jpeg
png, jpeg Number of images per request. Recommended ≤ 4. Subject to overall input+output ≤ 15. For batch sequence generation use sequential_image_generation
1 <= x <= 4Random seed for reproducibility. Omit for random
42
Whether to include the BytePlus watermark. Set to false for commercial use
Enable streaming output. Useful for long prompts and high-resolution generation