Seedream 5.5
Generate images from text or edit images using references.
/api/v1/generationsExample request
Set your FLUX_API_KEY before running. See the parameters below for supported settings.
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.
| Parameter | Description |
|---|---|
modestring · Optional | Choose a supported generation mode.text-to-imageimage-to-imagelayer-decomposition |
promptstring · Optional | Describe the desired output. Maximum 5,000 characters. Default: |
image_urlsstring[] · Optional | Public HTTPS reference images. Video image order and count depend on mode. Up to 10 items. |
resolutionstring · Optional | Output resolution tier. Values are case-sensitive.1K1.5K2K |
aspect_ratiostring · Optional | Output proportions; see mode constraints below.auto1:12:33:24:33:49:1616:921:91:22:11:33:14:55:49:21 |
sizestring · Optional | Custom WIDTHxHEIGHT; 921,600–4,624,220 pixels; ratio 1:16–16:1. No multiple-of-16 requirement. Maximum 64 characters. |
output_formatstring · Optional | Output file format.pngjpegDefault: png |
backgroundstring · Optional | autotransparentopaqueDefault: auto |
max_imagesinteger · Optional | Layer output limit including base image; unused precharge is refunded. Range: 2–100. Default: 10 |
auto_resolutionboolean · Optional | Layer-only automatic sizing; defaults to true when resolution is omitted. |
text_recognitionboolean · Optional | Recognize text during layer decomposition. Default: false |
watermarkboolean · 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 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 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 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
| Item | Credits |
|---|---|
| Each reference image | 4 |
| Output up to 2,601,123 pixels | 8 |
| Larger output up to 4,624,220 pixels | 10 |
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:
{
"id": "REQUEST_ID",
"model": "seedream-5-5",
"status": "processing"
}