API

Manage your API access and requests.

Seedream 5.5 · Documentation
Docs Models

Seedream 5.5

Generate images from text or edit images using references.

POST
/api/v1/generations

Example request

Set your FLUX_API_KEY before running. See the parameters below for supported settings.

cURL
curl https://api.flux-context.org/api/v1/generations \
  -H "Authorization: Bearer $FLUX_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "seedream-5-5",
  "input": {
    "prompt": "Editorial portrait in natural light",
    "resolution": "2K",
    "aspect_ratio": "3:4"
  }
}'

Parameters

Set model to seedream-5-5. These fields belong inside input.

ParameterDescription
mode
string · Optional
Choose a supported generation mode.
text-to-imageimage-to-imagelayer-decomposition
prompt
string · Optional
Describe the desired output. Maximum 5,000 characters.
Default:
image_urls
string[] · Optional
Public HTTPS reference images. Video image order and count depend on mode. Up to 10 items.
resolution
string · Optional
Output resolution tier. Values are case-sensitive.
1K1.5K2K
aspect_ratio
string · Optional
Output proportions; see mode constraints below.
auto1:12:33:24:33:49:1616:921:91:22:11:33:14:55:49:21
size
string · Optional
Custom WIDTHxHEIGHT; 921,600–4,624,220 pixels; ratio 1:16–16:1. No multiple-of-16 requirement. Maximum 64 characters.
output_format
string · Optional
Output file format.
pngjpeg
Default: png
background
string · Optional
autotransparentopaque
Default: auto
max_images
integer · Optional
Layer output limit including base image; unused precharge is refunded. Range: 2–100.
Default: 10
auto_resolution
boolean · Optional
Layer-only automatic sizing; defaults to true when resolution is omitted.
text_recognition
boolean · Optional
Recognize text during layer decomposition.
Default: false
watermark
boolean · Optional
Whether to request a watermark.
Default: false

Reference media

Use your own publicly accessible HTTPS media URLs. Links must remain valid throughout queueing and generation. Base64 and file upload bodies are not supported by this endpoint.

Image-to-image

cURL
curl https://api.flux-context.org/api/v1/generations \
  -H "Authorization: Bearer $FLUX_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "seedream-5-5",
  "input": {
    "prompt": "Editorial portrait in natural light",
    "resolution": "2K",
    "aspect_ratio": "3:4",
    "image_urls": [
      "https://example.com/front.jpg",
      "https://example.com/back.jpg"
    ]
  }
}'

Layer decomposition

cURL
curl https://api.flux-context.org/api/v1/generations \
  -H "Authorization: Bearer $FLUX_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "seedream-5-5",
  "input": {
    "mode": "layer-decomposition",
    "image_urls": [
      "https://example.com/front.jpg"
    ],
    "max_images": 10,
    "text_recognition": true
  }
}'

Transparent PNG

cURL
curl https://api.flux-context.org/api/v1/generations \
  -H "Authorization: Bearer $FLUX_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "seedream-5-5",
  "input": {
    "prompt": "Editorial portrait in natural light",
    "resolution": "2K",
    "aspect_ratio": "3:4",
    "background": "transparent",
    "output_format": "png"
  }
}'

Credits

ItemCredits
Each reference image4
Output up to 2,601,123 pixels8
Larger output up to 4,624,220 pixels10

Precharge uses the requested size and maximum output count. Final billing uses each archived image’s verified dimensions; unused credits are refunded. Final charge never exceeds precharge. Unverifiable output remains processing pending settlement.

Constraints

Omitted mode follows image_urls: no images means text-to-image; otherwise image-to-image. Default preset is 2K with automatic aspect ratio.

Custom size accepts 921,600–4,624,220 pixels, ratio 1:16–16:1; cannot combine with resolution or aspect_ratio.

Transparent output requires PNG. Layer decomposition requires exactly one image, automatic aspect ratio and no custom size; max_images includes the base image, defaults to 10 and accepts 2–100.

Successful decomposition may include layer_decomposition: canvas width/height and layers with result_index (zero-based into results), name, x/y, width/height, is_base and optional recognized text. These fields describe placement, not billing dimensions. Missing provider metadata is omitted.

Layer prompt is optional; an empty prompt uses a default layer separation instruction. Layer sizing is automatic unless resolution is supplied or auto_resolution is false. text_recognition defaults to false.

max_images, auto_resolution and text_recognition are layer-only options. Ordinary generation returns one image.

Use returned dimensions when available.

Response

A successful submission returns HTTP 202 and a request ID. Response excerpt:

JSON
{
  "id": "REQUEST_ID",
  "model": "seedream-5-5",
  "status": "processing"
}
Continue readingPoll & download