[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Bria Fibo](https://spiral.ai/integrations/opencode/bria-fibo)

# How to Use Bria Fibo in opencode

Bria Fibo suits product imagery, campaign concepts, and illustrations that need specific lighting and composition. Its structured JSON prompts make individual visual details easier to inspect and refine.

|  |  |
| --- | --- |
| Model | Bria Fibo |
| Available through | fal |
| Category | Image |
| Price | `resolution`: 1MP (default) $0.052, 4MP $0.052 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bria Fibo in opencode

- Use Bria Fibo to create a 16:9 illustration for the homepage described in this project's README. Place the subject on the right, leave the left third open for the heading, and use the project's documented colors.
- Use Bria Fibo to generate a square product concept image of a matte red desk lamp on a pale blue surface. Use a three-quarter camera angle and soft light from the left; save the image and returned structured prompt in the project's assets directory.
- Use Bria Fibo with the reference image in assets/art-direction.png to explore a new editorial illustration. Follow its palette and mood, replace the central subject with a bicycle, and save the result as a concept for review.
- Use Bria Fibo to make three lighting studies from the saved structured prompt in assets/mug-scene.json. Keep the seed fixed, change only the lighting for each render, and save a contact sheet labeled window light, backlight, and studio light.
- Use Bria Fibo to create a 4:5 editorial illustration for the article draft in this project. Start at 1MP with 35 steps, show me the composition, and save the structured description for revisions.

## How to set up Bria Fibo 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**: 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/generate",
    "input": {
      "prompt": "A hyper-detailed, ultra-fluffy owl sitting in the trees at night, looking directly at the camera with wide, adorable, expressive eyes. Its feathers are soft and…"
    }
  }'
```

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

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

## Bria Fibo tools and prices

- [Fibo](https://spiral.ai/tools/fal/bria/fibo/generate) (fal): `resolution`: 1MP (default) $0.052, 4MP $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| prompt |  | — | Prompt for image generation. |
| structured_prompt |  | — | The structured prompt to generate an image from. |
| image_url |  | — | Reference image (file or URL). |
| seed |  | 5555 | Random seed for reproducibility. |
| steps_num | 20 to 50 | 50 | Number of inference steps. |
| aspect_ratio | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 | 1:1 | Aspect ratio. Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 |

## What can you do with Bria Fibo in opencode?

Turn project briefs into images with deliberate composition, lighting, and color. Save the structured descriptions alongside the assets so later changes can target specific visual details.

### Product photography concepts

Explore a ceramic mug or desk lamp with specified materials, camera angle, background, and light direction before planning a shoot.

### Campaign image exploration

Generate campaign concepts with a defined palette and space reserved for a headline. Compare lighting treatments by changing one detail in the structured description.

### Reference-led art direction

Start from a reference image to explore related compositions or moods. Use the result as a new concept rather than an exact reproduction.

### Editorial illustrations

Turn an article's central idea into an illustration with explicit subject placement, medium, colors, and mood.

### Website imagery

Create wide illustrations or photographic concepts with the subject positioned to leave room for page copy.

### Lighting studies

Compare soft window light, backlighting, and studio lighting using targeted changes to a saved scene description.

### Reusable visual briefs

Save structured descriptions for recurring content, then adjust the subject, palette, or setting for each new image.

## Overview

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

## Bria Fibo in other agents

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

## More opencode guides

- [Bria Fast](https://spiral.ai/integrations/opencode/bria-fast)
- [Bria GenFill](https://spiral.ai/integrations/opencode/bria-genfill)
- [Bria FIBO Edit 1.5 Expand](https://spiral.ai/integrations/opencode/bria-fibo-edit-1-5-expand)
- [Bria GenFill v2](https://spiral.ai/integrations/opencode/bria-genfill-v2)
- [Bria Extract Object](https://spiral.ai/integrations/opencode/bria-extract-object)
- [Bria Guided Remove Background](https://spiral.ai/integrations/opencode/bria-guided-remove-background)

## Questions about Bria Fibo in opencode

**Can opencode use Bria Fibo?**

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

**How much does Bria Fibo cost in opencode?**

`resolution`: 1MP (default) $0.052, 4MP $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 in opencode?**

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

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

**Does opencode wait while Bria Fibo runs?**

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

**What is Bria Fibo best suited for?**

Fibo is useful when an image brief specifies lighting, camera angle, colors, and composition. Product image concepts, campaign artwork, and editorial illustrations are practical applications of those controls.

**Do I need to write JSON to prompt Fibo?**

You can start with a plain-language description that the generation workflow expands into JSON. The underlying image model uses that structured description, which you can inspect and reuse for more deliberate revisions.

**Will Fibo copy a reference image exactly?**

Treat a reference as creative direction. Fibo extracts a structured description and combines it with your instructions to generate related imagery, so exact copying is not a reliable expectation.

**How can I revise an image without rewriting the whole scene?**

Keep the structured description and seed, then change one visual attribute at a time. For example, revise the lighting direction while retaining the composition and materials.

**When should I use 4MP output?**

Use 1MP while choosing a composition, then consider 4MP for the final detail pass. Bria particularly recommends the higher resolution for photorealistic detail.

