[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Bria editable ad layers](https://spiral.ai/integrations/gemini-cli/bria-editable-ad-layers)

# How to Use Bria editable ad layers in Gemini CLI

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.

|  |  |
| --- | --- |
| Model | Bria editable ad layers |
| Available through | fal |
| Category | Data |
| Price | $0.39 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria editable ad layers in Gemini CLI

- 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 Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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.

```bash
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.

```bash
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: Gemini CLI finds Bria editable ad layers on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Bria editable ad layers tools and prices

- [Bria Ad Delayer: Convert Flat Ads into Editable Layers | fal](https://spiral.ai/tools/fal/bria/ad-delayer) (fal): $0.39 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_url |  | https://bria-datasets.s3.amazonaws.com/ad-delayer/aurora_ad.png | Reference ad image to split into layers, as a public URL. |

## What can you do with Bria editable ad layers in Gemini CLI?

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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Bria editable ad layers in other agents

- [Amp](https://spiral.ai/integrations/amp/bria-editable-ad-layers)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/bria-editable-ad-layers)
- [Claude](https://spiral.ai/integrations/claude-desktop/bria-editable-ad-layers)
- [Claude Code](https://spiral.ai/integrations/claude-code/bria-editable-ad-layers)
- [Cline](https://spiral.ai/integrations/cline/bria-editable-ad-layers)
- [Codex](https://spiral.ai/integrations/codex/bria-editable-ad-layers)
- [Cursor](https://spiral.ai/integrations/cursor/bria-editable-ad-layers)
- [Devin](https://spiral.ai/integrations/devin/bria-editable-ad-layers)
- [dots](https://spiral.ai/integrations/dots/bria-editable-ad-layers)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/bria-editable-ad-layers)
- [Gemini](https://spiral.ai/integrations/gemini/bria-editable-ad-layers)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/bria-editable-ad-layers)
- [goose](https://spiral.ai/integrations/goose/bria-editable-ad-layers)
- [Grok](https://spiral.ai/integrations/grok/bria-editable-ad-layers)
- [Grok Build](https://spiral.ai/integrations/grok-build/bria-editable-ad-layers)
- [Hermes](https://spiral.ai/integrations/hermes/bria-editable-ad-layers)
- [Instinct](https://spiral.ai/integrations/instinct/bria-editable-ad-layers)
- [Manus](https://spiral.ai/integrations/manus/bria-editable-ad-layers)
- [Muse](https://spiral.ai/integrations/muse/bria-editable-ad-layers)
- [Muse Code](https://spiral.ai/integrations/muse-code/bria-editable-ad-layers)
- [n8n](https://spiral.ai/integrations/n8n/bria-editable-ad-layers)
- [Notion](https://spiral.ai/integrations/notion/bria-editable-ad-layers)
- [OpenClaw](https://spiral.ai/integrations/openclaw/bria-editable-ad-layers)
- [opencode](https://spiral.ai/integrations/opencode/bria-editable-ad-layers)
- [Perplexity](https://spiral.ai/integrations/perplexity/bria-editable-ad-layers)
- [Raycast](https://spiral.ai/integrations/raycast/bria-editable-ad-layers)
- [VS Code](https://spiral.ai/integrations/vscode/bria-editable-ad-layers)
- [Windsurf](https://spiral.ai/integrations/windsurf/bria-editable-ad-layers)
- [Zapier](https://spiral.ai/integrations/zapier/bria-editable-ad-layers)

## More Gemini CLI guides

- [Bria Fibo structured image prompt](https://spiral.ai/integrations/gemini-cli/bria-fibo-structured-image-prompt)
- [Firecrawl government documents](https://spiral.ai/integrations/gemini-cli/firecrawl-government-documents)
- [Bria Fibo structured edit instructions](https://spiral.ai/integrations/gemini-cli/bria-fibo-structured-edit-instructions)
- [Firecrawl paper search](https://spiral.ai/integrations/gemini-cli/firecrawl-paper-search)
- [Bria Fibo Lite structured prompt](https://spiral.ai/integrations/gemini-cli/bria-fibo-lite-structured-prompt)
- [Firecrawl related research papers](https://spiral.ai/integrations/gemini-cli/firecrawl-related-research-papers)

## Questions about Bria editable ad layers in Gemini CLI

**Can Gemini CLI use Bria editable ad layers?**

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

**How much does Bria editable ad layers cost in Gemini CLI?**

$0.39 per request. 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 Bria editable ad layers in Gemini CLI?**

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 Gemini CLI?**

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

**Does Gemini CLI wait while Bria editable ad layers runs?**

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

