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

opencode · ImageReleased 2026-08-06

How to Use Seedream 5.0 Pro Layerize in opencode

Seedream 5.0 Pro Layerize separates finished artwork into transparent PNG elements for recomposition. It favors image quality over Flash's speed, with the same limit of one base image plus 16 layers.

Prompts to try with Seedream 5.0 Pro Layerize in opencode

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

Use Seedream 5.0 Pro Layerize on the campaign poster in our assets folder at the 2K tier. Separate the headline, person, and decorative icons, then create a browser preview where I can reposition them.

Seedream 5.0 Pro Layerizeopencode
Try asking
  • Use Seedream 5.0 Pro Layerize on the product composition in this repository. Extract the bottle and surrounding props as separate layers, then add drag controls to the existing canvas editor.

  • Use Seedream 5.0 Pro Layerize on the homepage illustration in this project. Separate the foreground character and plants, then build a canvas preview with controls to show or hide each returned layer.

  • Use Seedream 5.0 Pro Layerize to separate the main elements of our onboarding illustration. Save the returned images and build a preview using their bounding boxes and stacking order.

  • Use Seedream 5.0 Pro Layerize on our game scene artwork at the 1K tier. Request separate layers for the character, tree, and foreground rock, then add individual visibility controls to the scene preview.

How to set up Seedream 5.0 Pro 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.0 Pro 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/pro/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.0 Pro Layerize on Spiral, shows the price and runs it.

Seedream 5.0 Pro Layerize providers and prices

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

falImage
Seedream 5.0 Pro Layerize · Image to Layers
bytedance/seedream/v5/pro/layerize

Settings you can ask for

Seedream 5.0 Pro 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.

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.

Image passthroughon or offoff

Preserve original input and output image bytes without resizing or re-encoding.

Enhance prompt modestandard or faststandard

Prompt optimization mode. standard prioritizes image quality; fast reduces generation time.

Every API field of Seedream 5.0 Pro Layerize · Image to Layers is on its tool page: open its card above.

What can you do with Seedream 5.0 Pro Layerize in opencode?

Turn flattened project artwork into separate assets for a web interface or canvas. The coding agent can use the returned positions and stacking order to assemble an editable composition.

Rework a finished poster

Separate the headline, subject, and decorative elements so you can adjust their positions in a design tool.

Extract product artwork

Request separate layers for a product and its surrounding props, then use the cutouts in another composition.

Prepare a layered web illustration

Separate foreground objects from the rest of an illustration, then use their positions and stacking order to build a browser composition.

Build an asset review queue

Run an initial separation pass with Flash, inspect the extracted elements, and use Pro when image quality takes priority.

Rearrange a scene

Extract selected objects as transparent layers, then move or resize them in a design tool while keeping their original proportions.

Target a small region

Use a normalized bounding box to identify the specific element you want separated when a verbal description leaves room for confusion.

Questions about Seedream 5.0 Pro Layerize in opencode

Can opencode use Seedream 5.0 Pro Layerize?

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

How much does Seedream 5.0 Pro Layerize cost in opencode?

$0.0439 per layer when the total area is 1536×1536 or less ($0.0878 when larger). The model makes 2 to 17 layers per run. 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.0 Pro Layerize in opencode?

No. Spiral runs Seedream 5.0 Pro 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.0 Pro Layerize in opencode?

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

Does opencode wait while Seedream 5.0 Pro Layerize runs?

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

What does Seedream Layerize produce?

It separates a finished image into one base image and up to 16 editable layers. The separated elements are transparent PNGs you can reuse in a composition.

How do Flash and Pro differ?

Flash emphasizes speed, while Pro prioritizes image quality. Both have the same maximum of one base image plus 16 separated layers.

Can I choose which objects become layers?

Describe the elements you want separated, such as the person, headline, and lower-right icon. For precise region targeting, use normalized bounding-box tags; without instructions, the model selects the major elements.

Are all the output layers the same size?

Each layer keeps the aspect ratio of its corresponding region. Outputs use automatic sizing or a 1K, 1.5K, or 2K tier, so do not assume every layer has the base image's dimensions.

Can it separate every small object in a crowded image?

The ceiling is 16 separated layers plus the base image. Requests exceeding that ceiling can lose layer information, so prioritize the elements you need to edit.

Get started

Start using Seedream 5.0 Pro 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