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

Codex · Data

How to Use Bria editable ad layers in Codex

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 Codex

Copy an example into Codex, 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.

Bria editable ad layersCodex
Try asking
  • 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 Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 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: Codex 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.

falData

What can you do with Bria editable ad layers in Codex?

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.

Questions about Bria editable ad layers in Codex

Can Codex use Bria editable ad layers?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Bria editable ad layers like any built-in tool.

How much does Bria editable ad layers cost in Codex?

$0.39 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need a fal account to use Bria editable ad layers in Codex?

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 Codex?

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

Does Codex wait while Bria editable ad layers runs?

Bria editable ad layers runs in the background. Codex 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.

Get started

Start using Bria editable ad layers in Codex

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

Paste this into Codex:

Set up Codex

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