Seedream Image Generation
OpenAI compatible: POST /v1/images/generations. Native path: /api/v3/images/generations. Seedream 5.5 Official Docs · Image Generation API
[!IMPORTANT] Core Model Differences:
- Seedream 5.5 (
doubao-seedream-5-5-261028) [Latest Flagship]: Upgrades multi-round editing consistency, native RGBA transparent generation for both text-to-image and multi-reference image-to-image (up to 10 standard inputs, no alpha required), fine layer decomposition (1 base + up to 99 layers withlayer_decomposition_options.max_images), and rich-text OCR (text_recognition: true). Defaults:output_format: "png",background: "auto". Group generation (n > 1), web search, and streaming are unsupported.- Seedream 5.0 Flash (
doubao-seedream-5-0-flash-260915) [Fast] / 5.0 Pro (doubao-seedream-5-0-pro-260628): Supports single image, interactive editing, layer decomposition (1 base + up to 16 layers), and single-image transparent editing (requires 1 RGBA PNG input). Defaults:output_format: "jpeg",background: "opaque". Group generation (n > 1), rich-text OCR, web search, and streaming are unsupported.- Seedream 5.0 Lite (
doubao-seedream-5-0-260128) / 4.5 (doubao-seedream-4-5-251128) [Group Gen]: Supports group generation (n: 2~15), web search (5.0 Lite only), and streaming; does not support layer decomposition, transparent background, rich-text OCR, or interactive editing.
1. Request Examples (POST)
- Path:
https://llm.artsapi.ai/v1/images/generations - Auth:
Authorization: Bearer sk-your_token
A. Single Image Generation (Seedream 5.5 / 5.0 Flash Recommended)
n must be 1 or omitted. Use 5.5 for latest flagship quality, or 5.0 Flash for speed and cost efficiency.
curl -X POST https://llm.artsapi.ai/v1/images/generations \
-H "Authorization: Bearer sk-your_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-5-5-261028",
"prompt": "A Shiba Inu wearing traditional red festival attire under red lanterns, celebrating New Year, warm illustration",
"size": "2K",
"watermark": false
}'
B. Group Image Generation (5.0 Lite / 4.5 Only)
Generates sequential related images. Pass OpenAI standard n (2–15) and the gateway automatically translates it to sequential_image_generation: "auto" and sequential_image_generation_options: {"max_images": n} (native parameters also accepted). 5.5 / 5.0 Flash / 5.0 Pro do NOT support group generation.
curl -X POST https://llm.artsapi.ai/v1/images/generations \
-H "Authorization: Bearer sk-your_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-5-0-260128",
"prompt": "A 4-panel comic strip about a kitten exploring a magical forest, heartwarming illustration",
"size": "2K",
"n": 4,
"watermark": false
}'
C. Image-to-Image / Multi-Reference & Multi-Round Consistent Editing
5.5 / 5.0 Flash / 5.0 Pro accept 1–10 reference images (single output, supports <bbox>x1 y1 x2 y2</bbox> coordinate editing); 5.0 Lite / 4.5 accept 1–14 reference images (group output supported). Seedream 5.5 strengthens multi-round editing consistency: feed the previous round output URL into image and prefer RGB inputs with background: "opaque" to preserve identity and unedited regions.
curl -X POST https://llm.artsapi.ai/v1/images/generations \
-H "Authorization: Bearer sk-your_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-5-5-261028",
"prompt": "Add vintage round sunglasses to the subject while keeping facial features, hairstyle, clothing, background, and composition unchanged",
"image": [
"https://example.com/assets/portrait_round1.png"
],
"size": "2K",
"output_format": "png",
"background": "opaque",
"watermark": false
}'
D. Native RGBA Transparent Image (background: "transparent")
- Seedream 5.5: Supports text-to-RGBA directly and image-to-RGBA with up to 10 reference images (no alpha channel required on input), ideal for stickers, icons, and product cutouts.
- Seedream 5.0 Flash / Pro: Image-to-image only, limited to 1 transparent PNG input.
- When
background: "transparent"is set,output_formatmust bepng(jpegreturns an error).
curl -X POST https://llm.artsapi.ai/v1/images/generations \
-H "Authorization: Bearer sk-your_token_here" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-5-5-261028",
"prompt": "Transparent acrylic standee with Christmas collage stickers and a thin white border, transparent background",
"size": "2K",
"output_format": "png",
"background": "transparent",
"watermark": false
}'
E. Fine Layer Decomposition & Rich-Text OCR (layer_decomposition)
- Seedream 5.5: Input 1 image to output 1 base image (
z_index=0) + up to 99 transparent PNG layers. Control granularity vialayer_decomposition_options.max_images(2–100, default30) and settext_recognition: trueto extract rich-text OCR (content, line bounding boxes, and styling) for regular text layers. - Seedream 5.0 Flash / Pro: Up to 1 base + 16 transparent PNG layers;
layer_decomposition_optionsand OCR are unsupported. - Note: Do not pass
backgroundduring layer decomposition (causes an error).output_formatapplies only to the base image; layers are always transparent PNG. Defaultsizeisauto.
{
"model": "doubao-seedream-5-5-261028",
"prompt": "Decompose the title text, main illustration, and decorative elements into separate layers with a naturally inpainted base image",
"image": "https://example.com/poster.png",
"layer_decomposition": true,
"layer_decomposition_options": {
"max_images": 30,
"text_recognition": true
},
"size": "auto",
"output_format": "png",
"watermark": false
}
2. Complete Parameter Dictionary
| Parameter | Type | Required | Default | Description & Constraints |
|---|---|---|---|---|
model | string | Yes | - | doubao-seedream-5-5-261028 (latest flagship), doubao-seedream-5-0-flash-260915 (fast), doubao-seedream-5-0-pro-260628 (5.0 pro), or doubao-seedream-5-0-260128 (group/search) |
prompt | string | Conditional | - | Text prompt or edit instruction (multi-language; optional for auto layer decomposition) |
image / image_urls | string / array | No | - | Reference URL or lowercase Base64 (data:image/png;base64,...). 5.5 / 5.0 Flash / Pro image gen: 1–10 images (≤30 MB, aspect [1/16, 16], pixels [196, 6000×6000]); layer decomposition: single png/jpeg (pixels [512×512, 6000×6000]); Lite/4.5: 1–14 images |
size / resolution | string | No | "2K" ("auto" for layers) | Two mutually exclusive modes: (1) Tier: 1K / 1.5K / 2K for 5.5 / 5.0 Flash / Pro image gen (auto also for layers); 2K / 3K / 4K for Lite. (2) Exact WxH pixels (image gen only, e.g. "2880x1440"): total pixels [1280×720, 2048×2048×1.1025] (921600–4624220), aspect [1/16, 16] |
n | integer | No | 1 | Number of images (1–15). n > 1 auto-maps to sequential_image_generation: "auto" + max_images: n. Only 5.0 Lite / 4.5 support n > 1; 5.5 / 5.0 Flash / Pro require n=1 |
sequential_image_generation | string | No | "disabled" | Official group switch: "auto" / "disabled" (equivalent to n; Lite / 4.5 only; prohibited on 5.5 / 5.0 Flash / Pro) |
sequential_image_generation_options | object | No | - | Official group options, e.g. {"max_images": 4} (Lite / 4.5 only; prohibited on 5.5 / 5.0 Flash / Pro) |
layer_decomposition | boolean | No | false | Enable layer decomposition (5.5: 1 base + ≤99 layers; 5.0 Flash / Pro: 1 base + ≤16 layers) |
layer_decomposition_options | object | No | - | Seedream 5.5 only. max_images (integer [2, 100], default 30, total base + layers; higher = finer split); text_recognition (boolean, default false, enables rich-text OCR) |
background | string | No | 5.5:"auto"5.0: "opaque" | Background alpha mode: auto (5.5 auto-detect) / transparent (RGBA) / opaque (RGB). Image generation only (errors in layer decomposition); transparent requires output_format: "png" |
output_format | string | No | 5.5:"png"5.0: "jpeg" | Output format: png / jpeg. In layer decomposition, applies only to the base image (layers are always transparent PNG) |
response_format | string | No | "url" | Response delivery: url (valid for 24h) or b64_json |
watermark | boolean | No | true | Add "AI Generated" watermark at bottom-right (set false to disable) |
web_search | boolean | No | false | Web search (5.0 Lite only; unsupported on 5.5 / 5.0 Flash / Pro) |
stream | boolean | No | false | Streaming output (5.0 Lite / 4.5 only; unsupported on 5.5 / 5.0 Flash / Pro) |
seed | integer | No | - | Random seed for reproducible outputs |
3. Response Structure & Rich-Text OCR
- Standard Generation: Returns image URLs in
data[].url(valid 24 hours) ordata[].b64_json. - Layer Decomposition: Returns array ordered by
z_indexascending (z_index=0is the inpainted base; remaining items are transparent PNG layers withbounding_boxcontainingabsolutepixel coords[left, top, right, bottom]andnormalized[0, 1000]coords). - Rich-Text OCR (Seedream 5.5 Only): When
layer_decomposition: trueandlayer_decomposition_options.text_recognition: true, regular text layers includedata[].text_recognition(omitted for base, non-text, artistic, or handwritten layers):text: Full plain text ordered top-to-bottom, left-to-right (lines separated by\n);lines[]: Per-line entries withbounding_box(absolute/normalized) and styledruns[];runs[].style: 8 approximate visual attributes —similar_font_family(unknownif unrecognized),foreground_color(#RRGGBB),bold,italic,underline,strikethrough,shadow,translucent.
{
"size": "1166x899",
"z_index": 6,
"bounding_box": {
"absolute": [1142, 528, 1474, 784],
"normalized": [643, 529, 830, 786]
},
"text_recognition": {
"text": "Presented By :\nAnna Katrina Marchesi",
"lines": [
{
"bounding_box": {
"absolute": [1196, 629, 1358, 658],
"normalized": [673, 630, 765, 659]
},
"runs": [
{
"text": "Presented By :",
"style": {
"similar_font_family": "Helvetica Neue",
"foreground_color": "#193366",
"bold": true,
"italic": false,
"underline": false,
"strikethrough": false,
"shadow": false,
"translucent": false
}
}
]
}
]
},
"background": "transparent"
}
4. Capability Comparison Matrix
| Feature | Seedream 5.5 (Latest) | Seedream 5.0 Flash (Fast) | Seedream 5.0 Pro | Seedream 5.0 Lite | Seedream 4.5 |
|---|---|---|---|---|---|
| Model ID | doubao-seedream-5-5-261028 | doubao-seedream-5-0-flash-260915 | doubao-seedream-5-0-pro-260628 | doubao-seedream-5-0-260128 | doubao-seedream-4-5-251128 |
| Positioning | Multi-round / Text-to-RGBA / 99 Layers + OCR | Ultra-fast / Cost-effective | Flagship 5.0 Quality | Group Gen / Web Search | Classic Stable |
| Single Image | ✅ Supported | ✅ Supported | ✅ Supported | ✅ Supported | ✅ Supported |
Group Gen (n > 1) | ❌ Unsupported (n=1) | ❌ Unsupported (n=1) | ❌ Unsupported (n=1) | ✅ Up to 15 | ✅ Up to 15 |
| Reference Images | 1–10 images | 1–10 images | 1–10 images | 1–14 images | 1–14 images |
| Native RGBA (Text-to-Image) | ✅ Supported | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported |
| Native RGBA (Image-to-Image) | ✅ ≤10 (any input) | ⚠️ 1 RGBA PNG only | ⚠️ 1 RGBA PNG only | ❌ Unsupported | ❌ Unsupported |
| Layer Decomposition | ✅ 1 base + ≤99 layers | ✅ 1 base + ≤16 layers | ✅ 1 base + ≤16 layers | ❌ Unsupported | ❌ Unsupported |
Max Layer Count (max_images) | ✅ 2–100 (default 30) | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported |
Rich-Text OCR (text_recognition) | ✅ Regular text layers | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported |
Interactive Editing (<bbox>) | ✅ Supported | ✅ Supported | ✅ Supported | ❌ Unsupported | ❌ Unsupported |
Web Search (web_search) | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported | ✅ Supported | ❌ Unsupported |
Streaming (stream) | ❌ Unsupported | ❌ Unsupported | ❌ Unsupported | ✅ Supported | ✅ Supported |
| Resolution | 1K/1.5K/2K (auto layers) or WxH | 1K/1.5K/2K (auto layers) or WxH | 1K/1.5K/2K (auto layers) or WxH | 2K/3K/4K | 2K/4K |
| Default Format / Background | png / auto | jpeg / opaque | jpeg / opaque | jpeg / — | jpeg / — |
5. Common Error Codes & Troubleshooting
HTTP codes, error body format, and troubleshooting are maintained in one dedicated page (not duplicated under each example).
👉 Gateway Error Codes & Troubleshooting
Quick reference:
| Code | Meaning |
|---|---|
| 400 | Invalid parameters / content moderation or copyright block |
| 402 | Insufficient account balance (not 429) |
| 429 | RPS/RPM limits or in-flight task cap (low balance) |
| 403 | Token / IP / model permission (balance → 402; content filter → 400) |
200 + status: failed | Async video/long-task business failure on poll |
HTTP status matches call log status_code for traceability by log_id.
Maintenance: update the
error-codesarticle only; this appendix links to it.