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 with layer_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

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_format must be png (jpeg returns 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 via layer_decomposition_options.max_images (2–100, default 30) and set text_recognition: true to 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_options and OCR are unsupported.
  • Note: Do not pass background during layer decomposition (causes an error). output_format applies only to the base image; layers are always transparent PNG. Default size is auto.
{
  "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

ParameterTypeRequiredDefaultDescription & Constraints
modelstringYes-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)
promptstringConditional-Text prompt or edit instruction (multi-language; optional for auto layer decomposition)
image / image_urlsstring / arrayNo-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 / resolutionstringNo"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]
nintegerNo1Number 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_generationstringNo"disabled"Official group switch: "auto" / "disabled" (equivalent to n; Lite / 4.5 only; prohibited on 5.5 / 5.0 Flash / Pro)
sequential_image_generation_optionsobjectNo-Official group options, e.g. {"max_images": 4} (Lite / 4.5 only; prohibited on 5.5 / 5.0 Flash / Pro)
layer_decompositionbooleanNofalseEnable layer decomposition (5.5: 1 base + ≤99 layers; 5.0 Flash / Pro: 1 base + ≤16 layers)
layer_decomposition_optionsobjectNo-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)
backgroundstringNo5.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_formatstringNo5.5:"png"
5.0:"jpeg"
Output format: png / jpeg. In layer decomposition, applies only to the base image (layers are always transparent PNG)
response_formatstringNo"url"Response delivery: url (valid for 24h) or b64_json
watermarkbooleanNotrueAdd "AI Generated" watermark at bottom-right (set false to disable)
web_searchbooleanNofalseWeb search (5.0 Lite only; unsupported on 5.5 / 5.0 Flash / Pro)
streambooleanNofalseStreaming output (5.0 Lite / 4.5 only; unsupported on 5.5 / 5.0 Flash / Pro)
seedintegerNo-Random seed for reproducible outputs

3. Response Structure & Rich-Text OCR

  • Standard Generation: Returns image URLs in data[].url (valid 24 hours) or data[].b64_json.
  • Layer Decomposition: Returns array ordered by z_index ascending (z_index=0 is the inpainted base; remaining items are transparent PNG layers with bounding_box containing absolute pixel coords [left, top, right, bottom] and normalized [0, 1000] coords).
  • Rich-Text OCR (Seedream 5.5 Only): When layer_decomposition: true and layer_decomposition_options.text_recognition: true, regular text layers include data[].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 with bounding_box (absolute / normalized) and styled runs[];
    • runs[].style: 8 approximate visual attributes — similar_font_family (unknown if 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

FeatureSeedream 5.5 (Latest)Seedream 5.0 Flash (Fast)Seedream 5.0 ProSeedream 5.0 LiteSeedream 4.5
Model IDdoubao-seedream-5-5-261028doubao-seedream-5-0-flash-260915doubao-seedream-5-0-pro-260628doubao-seedream-5-0-260128doubao-seedream-4-5-251128
PositioningMulti-round / Text-to-RGBA / 99 Layers + OCRUltra-fast / Cost-effectiveFlagship 5.0 QualityGroup Gen / Web SearchClassic 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 Images1–10 images1–10 images1–10 images1–14 images1–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
Resolution1K/1.5K/2K (auto layers) or WxH1K/1.5K/2K (auto layers) or WxH1K/1.5K/2K (auto layers) or WxH2K/3K/4K2K/4K
Default Format / Backgroundpng / autojpeg / opaquejpeg / opaquejpeg / —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:

CodeMeaning
400Invalid parameters / content moderation or copyright block
402Insufficient account balance (not 429)
429RPS/RPM limits or in-flight task cap (low balance)
403Token / IP / model permission (balance → 402; content filter → 400)
200 + status: failedAsync video/long-task business failure on poll

HTTP status matches call log status_code for traceability by log_id.

Maintenance: update the error-codes article only; this appendix links to it.

Raw Markdown (.md) · llms.txt