Skip to content
此頁面尚未提供您使用的語言,因此目前以英文顯示。
ByteDance · Seedream

seedream-5-5 API

Generate images, create transparent assets, and separate images into layers with seedream-5-5 on APISea.

圖片生成圖片非同步任務
模型 ID
seedream-5-5

seedream-5-5 API 定價

所有價格皆以 USD 計價。比較 APISea 費率與相同計費單位的官方牌價。

選項APISea官方節省
預設預設$0.0308$0.032−4%
1K$0.0176$0.018−2%
1K-layer$0.0176$0.02−12%
2K$0.0308$0.032−4%
2K-layer$0.0308$0.035−12%

價格單位為 每張圖片。

什麼是 seedream-5-5?

seedream-5-5 is ByteDance’s Seedream image model for generating images from text or reference images and separating existing images into layers. Generation accepts up to 10 references, supplied as public URLs or Base64 Data URIs, and produces one image per request. Controls include size, resolution, transparent or opaque backgrounds, and PNG or JPEG output. Layer decomposition takes exactly one image and returns a base image plus transparent layers, with optional rich-text OCR for recognizable text.

On APISea, submit requests through the image generation endpoint and poll the returned task ID for results. Use your APISea API key with the base URL https://api.apisea.ai/v1. Pricing is pay-as-you-go, with billing only for successful requests: Default and 2K cost $0.0308 per image, while 1K costs $0.0176 per image. The Default configuration is about 4% below the provider list price; layer pricing is listed separately.

seedream-5-5 的特色

Text and Reference Inputs

Generate from a text prompt alone or supply up to 10 reference images. References can be publicly accessible image URLs or Base64 Data URIs.

Transparent Image Output

Both text-to-image and image-to-image support transparent backgrounds. Choose PNG output when requesting transparency.

Configurable Layer Decomposition

Separate one input image into a base image and transparent layers. Set a maximum total output count from 2–100 images, including the base image.

Optional Text OCR

Request rich-text OCR for text layers during decomposition. Text recognition results may appear only for recognizable regular text.

4 個步驟呼叫 seedream-5-5 API

  1. 01

    取得 API key

    登入 APISea,儲值 $50 起,並在控制台建立 sk-sea 金鑰。

  2. 02

    設定 base URL

    在 SDK 或 HTTP 用戶端中,將 https://api.apisea.ai/v1 設為 base URL。

  3. 03

    傳送請求

    呼叫 POST /v1/images/generations,並使用下方的參數及 "model": "seedream-5-5"。

  4. 04

    處理回應

    回應中包含 task_id。持續輪詢 GET /v1/tasks/{task_id},直到狀態為 completed,然後下載結果 URL。

curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "seedream-5-5",
  "prompt": "An orange cat sticker with clean edges",
  "size": "2K",
  "background": "transparent",
  "output_format": "png",
  "nsfw_check": true
}'

參數

參數類型必填預設說明
modelstring必填—Set to `seedream-5-5`.
nsfw_checkboolean選填falseWhether to run content moderation before submitting the image task.
promptstring選填—Required for text-to-image and image-to-image. Optional for layer decomposition: the model identifies subjects, text, and backgrounds automatically, or you can describe which elements to separate.
image_urlsstring[]選填—Up to 10 references for image generation; exactly 1 input for layer decomposition. Accepts public image URLs or image Base64 Data URIs. For local files, use the [image upload endpoint](/docs/uploads/images) and pass the returned `url`.
sizestring選填—Image generation defaults to `2K` and accepts a tier, aspect ratio, or exact pixels as described below. Layer decomposition defaults to `auto` and accepts only `1K` / `1.5K` / `2K` / `auto`, not aspect ratios or exact pixels.
resolutionstring選填—For image generation, use `1K` / `1.5K` / `2K` with an aspect-ratio `size`. For decomposition, this is a platform alias for `size`: `size` takes precedence, `resolution` is used only when `size` is omitted, and omitting both defaults to `auto`. Decomposition accepts `1K` / `1.5K` / `2K` / `auto`; aspect ratios or pixel dimensions are rejected synchronously with HTTP 400. `3K` / `4K` are unsupported.
backgroundstring選填—Image generation supports `auto` (default), `transparent`, or `opaque`. Both text-to-image and image-to-image can produce transparency. Transparent output requires PNG and cannot use `output_format: "jpeg"`. Omit this field entirely for layer decomposition, including `auto`.
output_formatstring選填png
ninteger選填—Must be `1`. Image generation produces one image per request; use `layer_decomposition_options.max_images` to control decomposition output count.
watermarkboolean選填falseOptional flag to add a watermark.
optimize_prompt_optionsobject選填—Only `{"mode":"standard"}` is supported. Omitting this parameter still enables the upstream default `standard`; prompt optimization cannot be disabled in Seedream 5.5. The upstream rejects `disabled` / `none` / `off` with HTTP 400 and `must be one of: standard`. The platform rejects `fast` immediately with HTTP 400.
layer_decompositionboolean選填—Set to `true` to separate the input into a base image and transparent layers. Requires exactly one input image and no `background` field. `output_format` controls only the base image.
layer_decomposition_optionsobject選填—Only valid with `layer_decomposition: true`; otherwise returns HTTP 400.
max_imagesinteger選填30Integer `2`–`100`, default `30`. The maximum total number of output images, including the base image, not a guaranteed output count.
text_recognitionboolean選填falseOptional boolean. Set to `true` to request rich-text OCR for text layers. `text_recognition` may appear only for recognizable regular text; do not assume every layer contains it.

使用 seedream-5-5 可以打造什麼

Creative Drafting Tools

Build a prompt-driven interface for generating visual drafts, with reference images available to guide each request.

Transparent Asset Workflows

Generate transparent PNG assets for placement in design compositions, product interfaces, or marketing layouts.

Layer Extraction Tools

Let users upload an image and separate its subjects, text, and background into a base image and transparent layers.

Text-Aware Design Review

Combine layer decomposition with optional OCR to inspect recognizable text alongside extracted visual elements.

提升結果品質的技巧

  • 01

    Poll for Results

    Submit to POST /v1/images/generations, read the task ID from data[0].task_id, then query GET /v1/tasks/{task_id} for results.

  • 02

    Choose Size Explicitly

    Generation defaults to 2K. For aspect-ratio sizing, pair size with resolution set to 1K, 1.5K, or 2K; omit resolution when specifying exact pixel dimensions.

  • 03

    Configure Transparency Correctly

    For transparent generation, set background to transparent and output_format to png. For layer decomposition, omit background entirely, even if its value would be auto.

  • 04

    Budget by Pricing Tier

    APISea 1K and 1K-layer each cost $0.0176 per image. Default, 2K, and 2K-layer each cost $0.0308 per image; max_images is a decomposition output cap, not a guaranteed count.

限制與須知

  • Generation accepts up to 10 references and requires n to be 1; decomposition requires exactly one input image.

  • Each reference image must be at most 30 MiB and 36 million total pixels; AVIF and JP2 are unsupported.

  • Prompt optimization cannot be disabled, and only standard mode is supported.

seedream-5-5 API 常見問題

How much does seedream-5-5 cost on APISea?

Default, 2K, and 2K-layer cost $0.0308 per image; 1K and 1K-layer cost $0.0176 per image. Default is about 4% below the provider list price, and APISea bills only successful requests.

How do I call seedream-5-5 through the API?

Send an authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to seedream-5-5. Read data[0].task_id from the response and poll GET /v1/tasks/{task_id} for results.

Can seedream-5-5 use reference images?

Yes, image generation supports up to 10 references through image_urls and requires a prompt. Supply public image URLs or Base64 Data URIs; layer decomposition instead requires exactly one reference.

Does seedream-5-5 support transparent backgrounds?

Yes, both text-to-image and image-to-image support background set to transparent, with PNG output required. Extracted decomposition layers are always transparent PNGs, and the background field must be omitted for decomposition.

How do I extract layers and recognize text?

Set layer_decomposition to true with exactly one input image; a prompt is optional. Use layer_decomposition_options to set max_images from 2–100 and enable text_recognition for optional rich-text OCR on recognizable text layers.

Can I use seedream-5-5 outputs commercially?

Commercial use is subject to the provider's terms. Review the applicable ByteDance terms and any rights associated with your input images before using outputs commercially.

相關模型

涵蓋:250+ 個模型 · 最低儲值 $50

開始使用 seedream-5-5 開發

一把金鑰,$50 起按量付費,僅對成功的請求收費。