How to Use Seedream 5.0 Pro Layerize in Gemini CLI
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 Gemini CLI
Copy an example into Gemini CLI, 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.
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 Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: Gemini CLI 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.
$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.
Settings you can ask for
Seedream 5.0 Pro Layerize works from your prompt and image URL. Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Image size | auto, auto_1K, auto_1.5K, or auto_2K | auto | Resolution tier for the output base image and layers. |
| Output format | jpeg or png | png | Format of the base image. Separated layers always use PNG. |
| Watermark | on or off | off | Whether to add the provider's visible watermark. |
| Image passthrough | on or off | off | Preserve original input and output image bytes without resizing or re-encoding. |
| Enhance prompt mode | standard or fast | standard | Prompt optimization mode. |
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 Gemini CLI?
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.
More on Seedream 5.0 Pro Layerize and Gemini CLI
Overview
Seedream 5.0 Pro Layerize in other agents
Questions about Seedream 5.0 Pro Layerize in Gemini CLI
Can Gemini CLI use Seedream 5.0 Pro Layerize?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Seedream 5.0 Pro Layerize like any built-in tool.
How much does Seedream 5.0 Pro Layerize cost in Gemini CLI?
$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 Gemini CLI plan is separate.
Do I need a fal account to use Seedream 5.0 Pro Layerize in Gemini CLI?
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 Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Seedream 5.0 Pro Layerize runs?
Seedream 5.0 Pro Layerize runs in the background. Gemini CLI 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.
Start using Seedream 5.0 Pro Layerize in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


