Skip to main content
Hand Mesh one flat image and get back a base image plus independently editable PNG layers — background, product shot, headline — each with its own stacking order, bounding box and name. No cutting the result up yourself. Available on bytedance/seedream-5.5.

Split an image

image takes a URL or a data:image/png;base64,… URI.

Request fields

Response

Every entry in data[] is one image and carries its own metadata.
A field appears only when the provider reported it, so an ordinary generation does not grow a wall of nulls.

Streaming

"stream": true works, and the final chunk carries the same per-item metadata as the buffered response — a layer is only placeable with its z_index and bounding_box, so the two shapes are guaranteed to agree.

Where it is accepted

layer_decomposition is accepted on POST /v1/images/generations only.Sending it on /v1/chat/completions or /v1/messages is a 400: a chat content part carries only a URL, so layers would arrive with no z_index or bounding_box and could not be placed. /v1/images/edits does not accept the fields.

Refusals

A request asking for layers either gets layers or is told why not — it never silently falls back to one flat image. All of these are 400. If the capable model fails transiently, a fallback alternate that cannot decompose is dropped from the routing plan rather than served, so your result is never silently downgraded.

Pricing

Every returned image is billed, base image included — a 30-layer split is 30 images, not one. Each is charged at the tier of the size you requested: The input image is $0.008.
Two things to plan for:
  • Cost scales with max_images. Thirty layers at 2K is roughly $1.05 plus input. Set max_images to what you will actually use.
  • The balance hold is sized against the ceiling. With max_images set, the hold covers that many images; omit it and the hold assumes the maximum of 100. Run layer requests on a key with headroom. The hold is released when the request finishes, and you are charged for what was actually returned.
Check GET /v1/models for live pricing on bytedance/seedream-5.5.