Seedream 5.5
Image generation, transparent output, layers, and text recognition.
Seedream 5.5 is initially available to accounts with private-model access. Use
Seedream-5.5 for both T2I and I2I. Editing accepts up to ten reference images.
Choose PNG for transparent output and JPEG or PNG for ordinary images.
Extract layers
Submit one source image with image_output.layers. The example below allows up
to four outputs, including the base image, and requests text recognition:
{
"model": "Seedream-5.5",
"task_type": "I2I",
"prompt": "Separate the poster into its background, illustration, and text.",
"src_image_urls": ["@input/your-uploaded-image.png"],
"image_config": { "size_mode": "auto" },
"image_output": {
"output_format": "png",
"layers": { "max_images": 4, "text_recognition": true }
}
}Send this request to /api/v0/generate, then poll the returned task ID. A
completed task's output_images contains the base image followed by its layers.
Each entry has an authenticated image URL, dimensions, and available layer/text
information. The existing task_output.image remains the base image.
Layer extraction accepts automatic sizing or square presets of 1024, 1536 and
2048 pixels. These select a resolution tier; each result keeps its own aspect
ratio. Omit background when extracting layers. Layers are PNG even if the base
is JPEG. Layer bounds use the base image's coordinates; resize a layer to its
bounds when compositing it. Recognized text can require correction.
For a transparent single image, use "background": "transparent" with
"output_format": "png" and omit layers. Ordinary generation accepts custom
sizes from 921,600 to 4,624,220 pixels and aspect ratios from 1:16 to 16:1.
Automatic sizing is also available for ordinary generation. Use
"image_config": {"size_mode": "auto", "resolution": "1K"} to choose a tier
while allowing the model to select the aspect ratio. The other tiers are 1.5K
and 2K. Omit the prompt for automatic layer extraction.
Watermarks and standard prompt optimization are enabled by default. Set
image_output.watermark or enhance_prompt to false to disable either.
The /openai/v1/images/generations and /openai/v1/images/edits endpoints accept
size values 1K, 1.5K, 2K, or explicit dimensions. On edits, pass layers
at the top level. response_format: "b64_json" returns every image inline;
response_format: "url" returns temporary access links. Layer entries retain
their stacking order, bounds and recognized text.
Results include actual background transparency and calculated usage.
safety_identifier accepts up to 64 ASCII characters and is returned unchanged;
it is recorded by MachGen, with no guarantee of attribution by the image provider.
Pricing
Before account discounts, each input image costs $0.008. Each output, including the base and every layer, costs $0.020 through 2,601,123 pixels, or $0.035 up to 4,624,220 pixels. The estimate covers your maximum output count; unused output is refunded after completion. A failed task is refunded.
The result URLs can also be reused in src_image_urls, including the
image_index query when selecting a particular layer. Access remains restricted
to the task's owner.