[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Fibo Edit Restore](https://spiral.ai/integrations/opencode/fibo-edit-restore)

# How to Use Fibo Edit Restore in opencode

Fibo Edit Restore repairs old or damaged photos, reducing noise, scratches, and blur. Its focus is automatic cleanup that retains the photo's original character.

|  |  |
| --- | --- |
| Model | Fibo Edit Restore |
| 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 Fibo Edit Restore in opencode

- Use Fibo Edit Restore on the scratched photo scans in assets/archive. Save restored copies separately and build a page showing each original beside its result.
- Restore the noisy portraits in public/photos with Fibo Edit Restore. Preserve the originals and create a review list with matching filenames.
- Use Fibo Edit Restore on the blurry historical photos referenced by our gallery manifest. Add a before-and-after comparison without changing the captions.
- Process the damaged album scans in this project with Fibo Edit Restore. Keep the existing album order and place the restored copies in a separate directory.
- Use Fibo Edit Restore on the compressed photo copies in assets/legacy. Create a contact sheet of originals and results for visual review.

## How to set up Fibo Edit Restore 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 Fibo Edit Restore**: 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/restore",
    "input": {
      "image_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/Liza/png+-+2026-01-13T134151.337.png"
    }
  }'
```

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

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

## Fibo Edit Restore tools and prices

- [Fibo Edit Restore · Image to Image](https://spiral.ai/tools/fal/bria/fibo-edit/restore) (fal): $0.052 per image.

## What can you do with Fibo Edit Restore in opencode?

Create restored copies of photo assets already in your project. A coding agent can organize the results and build a comparison view for review.

### Genealogy photo cleanup

Restore damaged ancestor portraits for a genealogy collection, keeping the original scan beside the result.

### Archive digitization

Create restored viewing copies of scanned historical photographs while retaining the untouched scans.

### Scratched print restoration

Reduce visible scratches in scans of old photographic prints before adding them to a digital album.

### Blur and noise cleanup

Try restoration on noisy or blurry photographs, then compare fine details against the source.

### Damaged album recovery

Repair scanned album photos affected by tears, stains, or fading for a restored album edition.

### Compressed photo cleanup

Reduce compression artifacts in degraded digital photo copies before reusing them in a photo collection.

## Overview

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

## Fibo Edit Restore in other agents

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

## More opencode guides

- [Fibo Edit Reseason](https://spiral.ai/integrations/opencode/fibo-edit-reseason)
- [Fibo Edit Rewrite Text](https://spiral.ai/integrations/opencode/fibo-edit-rewrite-text)
- [Fibo Edit Replace Object by Text](https://spiral.ai/integrations/opencode/fibo-edit-replace-object-by-text)
- [Fibo Edit Sketch to Image](https://spiral.ai/integrations/opencode/fibo-edit-sketch-to-image)
- [Fibo Edit Relight](https://spiral.ai/integrations/opencode/fibo-edit-relight)
- [Fibo Generate 1.5](https://spiral.ai/integrations/opencode/fibo-generate-1-5)

## Questions about Fibo Edit Restore in opencode

**Can opencode use Fibo Edit Restore?**

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

**How much does Fibo Edit Restore 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 Fibo Edit Restore in opencode?**

No. Spiral runs Fibo Edit Restore on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Fibo Edit Restore in opencode?**

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

**Does opencode wait while Fibo Edit Restore runs?**

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

**What damage can Fibo Edit Restore repair?**

Bria describes repairs for tears, stains, fading, scratches, noise, blur, and compression artifacts.

**Can Fibo Edit Restore improve blurry photos?**

Yes. Blur reduction is one of the restoration tasks Bria explicitly documents.

**Does Fibo Edit Restore preserve the original look?**

Preserving the photo's original character is a stated goal. Compare the restored copy with the original before accepting it.

**Is Fibo Edit Restore suitable for photo archives?**

Bria specifically names archive digitization, genealogy platforms, and restoration services as intended uses. Keep each restored copy linked to its original for review.

**Should I use Fibo Edit Restore to color a black-and-white photo?**

Choose restoration when the photo is damaged. Bria recommends Colorize when the goal is adding color or changing tonal treatment.

