How to Use Bria editable ad layers in opencode
Bria turns a flat ad into JSON with background, product and logo cutouts, editable text, and vector shapes. Use it to recover an editable creative when you have the finished image and need to change the copy or artwork.
Prompts to try with Bria editable ad layers in opencode
Copy an example into opencode, or ask in your own words.
Use Bria editable ad layers on https://bria-datasets.s3.amazonaws.com/ad-delayer/aurora_ad.png and save the returned layer document as a fixture in this project.
Use Bria editable ad layers on Bria's public Aurora jewelry sample and build a preview component from the returned canvas and layers.
Use Bria editable ad layers on Bria's public Aurora jewelry sample and add a panel that lists the extracted text beside its typography.
Use Bria editable ad layers on Bria's public Aurora jewelry sample and add a layer selector that omits hidden layers and respects paint order.
Use Bria editable ad layers on Bria's public Aurora jewelry sample and build an export action that saves the returned document and linked artwork.
How to set up Bria editable ad layers in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Bria editable ad layers
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": "bria/ad-delayer", "input": { "image_url": "https://bria-datasets.s3.amazonaws.com/ad-delayer/aurora_ad.png" } }'
Then paste one of the prompts above: opencode finds Bria editable ad layers on Spiral, shows the price and runs it.
Bria editable ad layers providers and prices
Spiral runs Bria editable ad layers through fal. Open a card for today's price, with every fee included.
What can you do with Bria editable ad layers in opencode?
Rebuild a finished ad as an editable canvas in your project using Bria's JSON layers. A coding agent can turn the extracted text and artwork into selectable elements for a campaign editor.
Recover an editable campaign creative
Separate a finished ad into text and artwork so a designer can revise it when the original design file is unavailable.
Prepare copy for translation
Extract editable ad text and its typography, then prepare translated copy for a designer to fit into the layout.
Refresh campaign messaging
Recover the headline and supporting copy from an existing ad before drafting replacement messaging.
Reuse product artwork
Separate product and logo cutouts from an authorized campaign image for the next creative brief.
Build an ad editor
Use the JSON canvas and layers as the starting document for an editor that lets designers select and revise individual elements.
Compare campaign revisions
Decompose two authorized ad revisions and compare their extracted text and artwork to prepare a change report.
More on Bria editable ad layers and opencode
Overview
Bria editable ad layers in other agents
Questions about Bria editable ad layers in opencode
Can opencode use Bria editable ad layers?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Bria editable ad layers like any built-in tool.
How much does Bria editable ad layers cost in opencode?
$0.39 per request. 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 Bria editable ad layers in opencode?
No. Spiral runs Bria editable ad layers on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Bria editable ad layers in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Bria editable ad layers runs?
Bria editable ad layers runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What does Bria extract from a finished ad?
Bria returns a JSON layer document containing the background, product and logo cutouts, editable text, and vector shapes. The document also describes the canvas dimensions, font stylesheets, and layer paint order.
Does Bria work on ordinary product photographs?
Bria designs Ad Delayer for finished, flat ads. Results for ordinary photographs are not guaranteed.
Will the editable text use the exact original font?
Bria describes editable text as using the nearest matching font. That makes the copy editable, but does not guarantee the original typeface.
How long can I download Bria's results?
Bria lists 30 days for Ad Delayer results, regardless of its default image and video retention policies. Save the document and assets if you need them beyond that period.
What image dimensions does Bria document?
Bria documents a standard maximum of 2048 pixels per side. Its documentation places larger sources under its Enterprise offering.
Start using Bria editable ad layers in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


