Seedream 5 Flash Layers API for Layer Splitting

Turn one flat png or jpeg into a layered file with POST /api/v1/images/generations and model: seedream-5-flash-layers. ByteDance's Flash tier returns a base image and up to 16 transparent PNG layers, each with a z_index, pixel and normalized bounding boxes, a name and a description, at one price for every output tier.
Get API Key
Product advertisement separated into stacked translucent cards on a studio table

A Layered File from a Single Image

Name what to separate

Optional prompt such as Split out the title text and the product tells the model which elements to isolate, in plain language or with <bbox> coordinates. Without it, the main elements are found automatically.
Magnifying loupe over a printed flyer with the product cut out and lifted

Input requirements

image_list holds exactly one png or jpeg, up to 30MB and at least 512x512 pixels in total. image_size is auto (follows the input), 1K, 1.5K or 2K; pixel values are rejected.
Single photograph placed in the center of an empty scanner bed

Ready-to-place layers

The base image has z_index 0; layers ascend from 1. bounding_box.absolute gives [left, top, right, bottom] in base pixels and bounding_box.normalized uses a 0-1000 scale. Layers are always transparent PNG; output_format only sets the base.
Theater stage with flat painted scenery panels set at different depths
model and image_list are required; the prompt only guides the split.

Seedream 5 Flash Layers Request Fields and Limits

model

Always seedream-5-flash-layers.

image_list (required)

Exactly one image as [{"url": "https://…"}]: png or jpeg, up to 30MB, at least 512x512 pixels in total.

prompt

Optional, 1 to 2000 characters, naming elements to split in plain language or with <bbox> coordinates.

image_size

auto (default), 1K, 1.5K or 2K. Only tier names are accepted; values such as 2048x2048 are rejected.

output_format

jpeg (default) or png for the base image. Every layer is a transparent PNG.

custom_callback_url

Optional public HTTPS URL that receives the job-detail body on each status change, retried up to 3 times.
A single per-request price, whatever the tier and however many layers come back.

Seedream 5 Flash Layers API Pricing

18.87 tokens ($0.3774) per request

The same at 1K, 1.5K, 2K and auto.

Base plus 16 layers

The model decides how many layers to produce, so every request is billed as one base image plus 16 layers, whatever number is returned.

1.11 tokens ($0.0222) per image

The base image and every layer are priced the same; 17 images at that rate make up the request price.

Refunded on failure

Tokens are deducted on acceptance and refunded automatically if the split fails.

Integrate the Seedream 5 Flash Layers API

1

1. Create an API key

Generate a key at /keys and send it as Authorization: Bearer <key>.
2

2. Check the source image

Make sure it is a png or jpeg under 30MB with at least 512x512 pixels in total, served from a public URL.
3

3. Submit the split

POST {"model": "seedream-5-flash-layers", "image_list": [{"url": "https://…"}], "image_size": "auto"} to /api/v1/images/generations and store the img_uuid.
4

4. Rebuild the stack

When the job succeeds, sort items by z_index and position each layer with its bounding box. Save the files before links expire 24 hours after completion.
Create an API Key
Layer splitting as a step in design and content tools.

What Developers Build with Seedream 5 Flash Layers

Ad and banner localization

Separate headline text from product and background so each market can replace only the copy layer.

Layered exports for editors

Offer a "make editable" button that turns an uploaded flat image into positioned layers in your canvas editor.

Object libraries

Harvest named, described transparent objects from illustrations to build searchable asset collections.

Depth-based animation

Use z_index order to move foreground and background layers independently for parallax effects.
Input rules, output structure and pricing.

Seedream 5 Flash Layers API FAQ

What is the endpoint?

POST https://api.goenhance.ai/api/v1/images/generations with model: seedream-5-flash-layers.

What input images are accepted?

Exactly one png or jpeg, up to 30MB and at least 512x512 pixels in total.

Does a higher tier cost more?

No. 1K, 1.5K, 2K and auto all cost 18.87 tokens ($0.3774) per request.

What does each result item contain?

z_index, bounding_box.absolute, bounding_box.normalized, name and description, plus the image link.

Can I choose the number of layers?

No. The model returns up to 16 layers based on the image; the price always assumes 16.

Flash Layers or Pro Layers?

Both return the same structure. Flash Layers has one flat price; seedream-5-pro-layers costs 14.66 tokens ($0.2932) at 1K, 1.5K or auto and 15.53 tokens ($0.3106) at 2K.

Start Building with the Seedream 5 Flash Layers API