Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.
ByteDance · Seedream

seedream-5-5 API

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

Penjanaan imejImejTugas tak segerak
ID model
seedream-5-5

Harga API seedream-5-5

Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.

PilihanAPISeaRasmiJimat
LalaiLalai$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%

Harga dinyatakan dalam bagi setiap imej.

Apakah itu 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.

Sorotan 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.

Cara memanggil API seedream-5-5 dalam 4 langkah

  1. 01

    Dapatkan API key

    Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.

  2. 02

    Tetapkan base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.

  3. 03

    Hantar permintaan

    Panggil POST /v1/images/generations dengan "model": "seedream-5-5" dan parameter di bawah.

  4. 04

    Urus respons

    Respons mengandungi task_id. Lakukan tinjauan berkala menggunakan GET /v1/tasks/{task_id} sehingga status menjadi completed, kemudian muat turun URL hasil.

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
}'

Parameter

ParameterJenisWajibLalaiPenerangan
modelstringWajib—Set to `seedream-5-5`.
nsfw_checkbooleanPilihanfalseWhether to run content moderation before submitting the image task.
promptstringPilihan—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[]Pilihan—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`.
sizestringPilihan—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.
resolutionstringPilihan—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.
backgroundstringPilihan—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_formatstringPilihanpng
nintegerPilihan—Must be `1`. Image generation produces one image per request; use `layer_decomposition_options.max_images` to control decomposition output count.
watermarkbooleanPilihanfalseOptional flag to add a watermark.
optimize_prompt_optionsobjectPilihan—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_decompositionbooleanPilihan—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_optionsobjectPilihan—Only valid with `layer_decomposition: true`; otherwise returns HTTP 400.
max_imagesintegerPilihan30Integer `2`–`100`, default `30`. The maximum total number of output images, including the base image, not a guaranteed output count.
text_recognitionbooleanPilihanfalseOptional 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.

Perkara yang boleh anda bina dengan 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.

Petua untuk hasil yang lebih baik

  • 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.

Had dan perkara yang perlu diketahui

  • 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.

Soalan lazim API seedream-5-5

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.

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan seedream-5-5

Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.