[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Bria FIBO Edit 1.5 Expand](https://spiral.ai/integrations/opencode/bria-fibo-edit-1-5-expand)

# How to Use Bria FIBO Edit 1.5 Expand in opencode

Bria FIBO Edit 1.5 Expand adds canvas around an existing image for banners, social posts, and wider compositions. It preserves the original pixels at full resolution by default, while generating the added area near one megapixel and scaling it for larger outputs.

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

## Prompts to try with Bria FIBO Edit 1.5 Expand in opencode

- Use Bria FIBO Edit 1.5 Expand on public/images/home-hero.jpg to make a 1600 by 900 banner. Continue the existing background, preserve original detail, and preview it in the homepage layout.
- Use Bria FIBO Edit 1.5 Expand on the product photos in public/products to prepare square listing images. Start without scene descriptions and show a contact sheet for review.
- Use Bria FIBO Edit 1.5 Expand to extend assets/editorial/room.jpg into a 4:3 composition. Continue the walls and floor, then show enlarged views of the joins.
- Use Bria FIBO Edit 1.5 Expand on assets/cover-illustration.png for a 1200 by 1600 cover. Continue the illustration's shapes and colors around the original artwork.
- Use Bria FIBO Edit 1.5 Expand on public/images/campaign.jpg to prepare square and 4:5 versions. Preserve source detail and check how each composition looks in our campaign components.

## How to set up Bria FIBO Edit 1.5 Expand in opencode

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

### Use Spiral's MCP server

1. **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.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 FIBO Edit 1.5 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": "bria/fibo-edit-1.5/expand",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/model_tests/orange.png"
    }
  }'
```

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

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

## Bria FIBO Edit 1.5 Expand tools and prices

- [Bria Expand (FIBO-Edit-1.5)](https://spiral.ai/tools/fal/bria/fibo-edit-1.5/expand) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| canvas_size |  | — | The desired size of the final image after the expansion, as [width, height]. Area must be under 25 megapixels. Pairs with 'original_image_location'. |
| 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. Used over 'original_image_size' and 'original_image_location' if provided: the original is centred and the canvas grows around it. |
| original_image_size |  | — | The desired size of the original inside the canvas, as [width, height]; it is resized to this before being placed. Ignored if 'aspect_ratio' is provided. |
| original_image_location |  | — | Top-left corner of the original within the canvas, as [x, y]. May sit outside the canvas, in which case the original is cropped. Ignored if 'aspect_ratio' is provided. |
| prompt |  | — | What should appear in the expanded area. Omit it and the model is asked only to extend the image, which is usually what you want for a plain canvas change. |
| seed | 0 to 2147483647 | — | Reuse the seed from a previous response to recreate that result. Omit it for a random one, which is reported in the response either way. |

## What can you do with Bria FIBO Edit 1.5 Expand in opencode?

Adapt project images to new layouts by extending their surroundings with Bria FIBO Edit 1.5 Expand. A coding agent can use the project's layout dimensions to prepare assets and compare the results in context.

### Product listing images

Extend an existing product photo to give the item more surrounding space. Keep original quality retention enabled to preserve existing product detail.

### Social post adaptations

Expand a campaign image for square or portrait layouts when the subject needs more breathing room.

### Website banners

Widen an existing photograph and request a quiet continuation of its background where a designer plans to place headline text.

### Interior photography layouts

Extend room photographs for wider editorial layouts. Review architectural lines where the generated area meets the original.

### Travel and landscape headers

Expand an existing landscape or street scene for a travel article header, then inspect the added surroundings before publication.

### Illustration layout changes

Add space around an existing illustration for a cover, presentation, or editorial layout. Describe the shapes and colors that should continue into the added area.

## Overview

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

## Bria FIBO Edit 1.5 Expand in other agents

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

## More opencode guides

- [Bria Extract Object](https://spiral.ai/integrations/opencode/bria-extract-object)
- [Bria Fast](https://spiral.ai/integrations/opencode/bria-fast)
- [Bria Expand](https://spiral.ai/integrations/opencode/bria-expand)
- [Bria Fibo](https://spiral.ai/integrations/opencode/bria-fibo)
- [Bria Eraser](https://spiral.ai/integrations/opencode/bria-eraser)
- [Bria GenFill](https://spiral.ai/integrations/opencode/bria-genfill)

## Questions about Bria FIBO Edit 1.5 Expand in opencode

**Can opencode use Bria FIBO Edit 1.5 Expand?**

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

**How much does Bria FIBO Edit 1.5 Expand cost in opencode?**

$0.052 per image. 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 FIBO Edit 1.5 Expand in opencode?**

No. Spiral runs Bria FIBO Edit 1.5 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 FIBO Edit 1.5 Expand in opencode?**

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

**Does opencode wait while Bria FIBO Edit 1.5 Expand runs?**

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

**What is Bria FIBO Edit 1.5 Expand useful for?**

Use it to add space around an existing image, such as widening a photograph for a banner or extending an illustration for a new layout. It also supports interiors, landscapes, and street scenes.

**Does expansion preserve the original image's detail?**

Original quality retention keeps the source pixels at full resolution. Leave it enabled when product details or other existing image details need to stay sharp.

**Does a large output contain equally detailed generated content?**

Generation happens near one megapixel, and larger canvases are scaled up afterward. Inspect the added area at its intended display size before choosing a large output.

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

No. Start without a scene description when you simply want more canvas; add a prompt when you have a specific continuation in mind.

**How far should I expand an image?**

Keep custom output canvases below 25 megapixels. For composition, Bria recommends that the foreground or main subject occupy more than 15% of the final canvas, so avoid surrounding a tiny subject with a vast generated area.

