[Integrations](https://spiral.ai/integrations) › [Hermes](https://spiral.ai/integrations/hermes) › [Bria Expand](https://spiral.ai/integrations/hermes/bria-expand)

# How to Use Bria Expand in Hermes

Bria Expand adds generated content around an existing image for banners, product listings, and social posts. It extends the scene to fit a new layout, giving you room around the subject without cropping away important details.

|  |  |
| --- | --- |
| Model | Bria Expand |
| Available through | fal |
| Category | Image |
| Price | $0.052 per generation. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria Expand in Hermes

- Every Monday, use Bria Expand on newly approved campaign photos to create 1:1 and 4:5 compositions. Match each photo's existing surroundings and collect the results for review.
- Each morning, use Bria Expand to prepare square compositions from new product photos. Keep the main subject above 15% of the final image area.
- Each Friday, use Bria Expand to make 16:9 banners from this week's approved lifestyle photos. Continue the existing scene and match its light and texture.
- When a new campaign photo is approved, use Bria Expand to prepare a composition with open space on the left for text. Use manual placement and collect the result for review.
- Every Tuesday, use Bria Expand to create 9:16 compositions from newly approved landscape photos. Leave the expansion description empty and collect the results for review.

## How to set up Bria Expand in Hermes

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

### Use the Spiral skill

1. **Send Hermes 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 Spiral's MCP server

1. **Add the server and sign in**: Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.

```bash
hermes mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --auth oauth \
  --connect-timeout 300
```

2. **Check it**: In a chat that was already open, run `/reload-mcp`.

```bash
hermes mcp list
hermes mcp test spiral
```

### 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 Expand**: 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": "fal-ai/bria/expand",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/model_tests/orange.png",
      "canvas_size": [
        1
      ]
    }
  }'
```

Then paste one of the prompts above: Hermes finds Bria Expand on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/hermes

## Bria Expand tools and prices

- [Bria Expand Image](https://spiral.ai/tools/fal/fal-ai/bria/expand) (fal): $0.052 per generation.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| aspect_ratio | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 | — | The desired aspect ratio of the final image. Will be used over original_image_size and original_image_location if provided. |
| original_image_size |  | — | The desired size of the original image, inside the full canvas. Ensure that the ratio of input image foreground or main subject to the canvas area is greater than 15% to achieve optimal results. Will be ignored if aspect_ratio is provided. |
| original_image_location |  | — | The desired location of the original image, inside the full canvas. Provide the location of the upper left corner of the original image. The location can also be outside the canvas (the original image will be cropped). Will be ignored if aspect_ratio is provided. |
| prompt |  |  | Text on which you wish to base the image expansion. This parameter is optional. Bria currently supports prompts in English only, excluding special characters. |
| seed | 0 to 2147483647 | — | You can choose whether you want your generated expension to be random or predictable. You can recreate the same result in the future by using the seed value of a result from the response. You can exclude this parameter if you are not interested in recreating your results. This parameter is optional. |
| negative_prompt |  |  | The negative prompt you would like to use to generate images. |

## What can you do with Bria Expand in Hermes?

Prepare recurring sets of image compositions from newly approved photos. A scheduled agent can apply a consistent visual brief and collect the expanded images for review.

### Website hero images

Expand an existing campaign photo into a wide composition with room beside the subject for a headline.

### Vertical social posts

Extend a landscape photo above and below for a vertical post, keeping the main subject prominent.

### Product listing images

Add surrounding space to a tightly framed product photo so it fits a square listing layout.

### Display ad layouts

Adapt an existing advertising image to wide and portrait placements by generating more of the surrounding scene.

### Text space for promotions

Position the source photo to one side and extend a quiet background where promotional copy can be added.

### Campaign image sets

Turn one approved source photo into square, portrait, and landscape compositions for different campaign placements.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Hermes guides](https://spiral.ai/integrations/hermes)

## Bria Expand in other agents

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

## More Hermes guides

- [Bria Eraser](https://spiral.ai/integrations/hermes/bria-eraser)
- [Bria Extract Object](https://spiral.ai/integrations/hermes/bria-extract-object)
- [Bria Embed Product](https://spiral.ai/integrations/hermes/bria-embed-product)
- [Bria FIBO Edit 1.5 Expand](https://spiral.ai/integrations/hermes/bria-fibo-edit-1-5-expand)
- [Bria Creative Upscale](https://spiral.ai/integrations/hermes/bria-creative-upscale)
- [Bria Fast](https://spiral.ai/integrations/hermes/bria-fast)

## Questions about Bria Expand in Hermes

**Can Hermes use Bria Expand?**

Yes. Add Spiral to Hermes as an MCP server, and Hermes can find and run Bria Expand like any built-in tool.

**How much does Bria Expand cost in Hermes?**

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

**Do I need a fal account to use Bria Expand in Hermes?**

No. Spiral runs Bria Expand 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 Expand in Hermes?**

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

**Does Hermes wait while Bria Expand runs?**

Bria Expand runs in the background. Hermes starts the run, checks on it and gives you the image when it's ready.

**What does Bria Expand do?**

It generates content beyond the borders of an existing image. Use it to adapt a photo to a wider or taller layout while retaining important content in the original frame.

**How large can the output be?**

Bria documents a maximum canvas area of 25 million pixels. Check width multiplied by height when planning an expansion.

**What makes an expansion harder?**

A very small subject on a large canvas falls outside Bria's recommended composition. For best results, keep the foreground or main subject above 15% of the total canvas area.

**Which prompt languages does Bria Expand support?**

Use English without special characters. Bria documents English as the only supported prompt language.

**Do I need to write a prompt?**

No. If you leave it blank, Bria Expand generates a prompt from the source image.

