Spiral gives your agent every tool with one account. Browse the tools →

opencode · ImageReleased 2026-11-11

How to Use Seedream 5.5 Layerize in opencode

Seedream 5.5 Layerize turns a finished image into a base image and independently editable PNG layers. Use it to separate artwork, products, and text for recomposition, with positions, stacking order, and optional text recognition.

Prompts to try with Seedream 5.5 Layerize in opencode

Copy an example into opencode, or ask in your own words.

Use Seedream 5.5 Layerize on public/artwork/promo.png to separate the product, headline, and decorative shapes. Build a preview in this project with a visibility toggle for each returned layer.

Seedream 5.5 Layerizeopencode
Try asking
  • Use Seedream 5.5 Layerize on assets/scene.png to separate foreground objects. Rebuild the composition on a canvas using the returned bounds and stacking order, with draggable objects.

  • Use Seedream 5.5 Layerize on public/poster.png with text recognition enabled. Add an inspector for recognized text and approximate styles, with a manual correction control.

  • Use Seedream 5.5 Layerize on assets/room.jpg to separate the two chairs and the table. Add a comparison view showing the original composition and a recomposition with the chairs hidden.

  • Use Seedream 5.5 Layerize on assets/illustration.png to extract each animal separately at the 2K output tier. Create a contact sheet and preserve each PNG's transparency.

How to set up Seedream 5.5 Layerize in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Seedream 5.5 Layerize

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "bytedance/seedream/v5.5/layerize",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/example_inputs/kontext_example_input.webp"
        }
      }'

Then paste one of the prompts above: opencode finds Seedream 5.5 Layerize on Spiral, shows the price and runs it.

Seedream 5.5 Layerize providers and prices

Spiral runs Seedream 5.5 Layerize through fal. Open a card for today's price, with every fee included.

falImage
Seedream 5.5 Layerize
bytedance/seedream/v5.5/layerize

Settings you can ask for

Seedream 5.5 Layerize works from your prompt and image URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Image sizeauto, auto_1K, auto_1.5K, or auto_2Kauto

Resolution tier for the output base image and layers. auto adapts to the input image while preserving each element's aspect ratio.

Max images2 to 10030

Maximum number of output images, including the base image. Higher values usually produce a finer decomposition. Above 30, images are always returned as URLs and sync_mode is ignored.

Enable text recognitionon or offoff

If True, formatted text layers include a rich-text OCR result in text_recognition.

Output formatjpeg or pngpng

Format of the base image. Separated layers always use PNG.

Watermarkon or offoff

Whether to add the provider's visible watermark.

Every API field of Seedream 5.5 Layerize is on its tool page: open its card above.

What can you do with Seedream 5.5 Layerize in opencode?

Turn flat project artwork into objects users can select, move, and hide. A coding agent can use Seedream 5.5 Layerize outputs to build a canvas editor that respects each layer's position and stacking order.

Rework a product promotion

Separate the product, headline, and decorative artwork from an existing promotion, then rearrange those assets in a design tool.

Prepare a poster for localization

Separate regular text from poster artwork and request text recognition. Use the results to rebuild translated text in an editor, checking font matches and line breaks.

Build an interactive illustration

Extract objects from a finished illustration and use their positions and stacking order to create selectable elements on a web canvas.

Prepare artwork for animation

Separate foreground objects and decorative elements from a static composition, then animate their movement in a separate animation tool.

Reuse illustrated assets

Extract individual animals, plants, or props from an illustration as transparent PNGs for placement in other layouts.

Remove an object from a composition

Separate the unwanted object and inspect the reconstructed base image. Recompose the remaining layers without the object in an editor.

Rearrange an interior concept

Separate selected furniture from a room image, then test different placements in a canvas editor using the returned layer bounds.

Questions about Seedream 5.5 Layerize in opencode

Can opencode use Seedream 5.5 Layerize?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Seedream 5.5 Layerize like any built-in tool.

How much does Seedream 5.5 Layerize cost in opencode?

$0.0156 per image. `image_size`: auto_1K $0.039, auto_1.5K $0.039, auto_1K $0.039, auto_1.5K $0.039, otherwise $0.05265, otherwise $0.05265 per image. Billed on `max_images`, default 30. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a fal account to use Seedream 5.5 Layerize in opencode?

No. Spiral runs Seedream 5.5 Layerize on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Seedream 5.5 Layerize in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Seedream 5.5 Layerize runs?

Seedream 5.5 Layerize runs in the background. opencode starts the run, checks on it and gives you the image, json when it's ready.

What is Seedream 5.5 Layerize useful for?

Use it when a finished image needs separate, editable elements: product artwork, poster text, illustration objects, or decorative details. It returns a base image and PNG layers with positions and stacking order for recomposition.

Does Seedream 5.5 Layerize return exactly the number of layers requested?

The output count is a maximum. A request can return one base image and up to 99 layers, but the actual decomposition depends on the image and instructions.

What happens behind an object that gets separated?

The base image fills in the area behind the separated object. Inspect that reconstructed area before using the base image on its own.

Can Seedream 5.5 Layerize recover editable text?

It can return recognized text, positions, and approximate styling for regular text layers so an application can rebuild editable text. Artistic text and handwriting do not receive OCR results, and font matches need review.

Will every output layer have the same dimensions?

Each layer keeps its own aspect ratio and is sized according to the selected resolution tier. Use the returned placement information when rebuilding the composition rather than assuming every PNG covers the full canvas.

Get started

Start using Seedream 5.5 Layerize in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options