[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FIBO Edit Restyle](https://spiral.ai/integrations/opencode/fibo-edit-restyle)

# How to Use FIBO Edit Restyle in opencode

FIBO Edit Restyle turns existing photos into artistic treatments for illustrations, campaign concepts, and storyboards. Its focus is changing the visual style of a composition you already like.

|  |  |
| --- | --- |
| Model | FIBO Edit Restyle |
| 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 Restyle in opencode

- Use FIBO Edit Restyle on the article photo in this project's assets with an oil painting treatment. Add the result to a local comparison page.
- Use FIBO Edit Restyle to make cartoon and anime treatments of the project's portrait photo. Save both beside the original for review.
- Use FIBO Edit Restyle on our campaign photo with a retro advertising treatment. Preview the result in the existing campaign layout.
- Use FIBO Edit Restyle to give the location photos in this project a storyboard treatment. Build a contact sheet in filename order.
- Use FIBO Edit Restyle on the landscape asset with a wood cut treatment. Report the returned dimensions before placing it in the page.

## How to set up FIBO Edit Restyle 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 Restyle**: 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/restyle",
    "input": {
      "image_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/Liza/high_camera_angle_warm_filter.png",
      "style": "3D Render"
    }
  }'
```

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

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

## FIBO Edit Restyle tools and prices

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

## What can you do with FIBO Edit Restyle in opencode?

Turn project photos into illustration concepts for a site or app. A coding agent can organize the outputs beside the originals and build a comparison view for review.

### Editorial illustration concepts

Give an existing article photo an oil painting treatment to explore an illustrated direction before commissioning final artwork.

### Campaign art direction

Compare retro advertising and pop art halftone treatments of the same campaign photo before choosing a visual direction.

### Storyboard preparation

Restyle location or staging photos with a storyboard treatment for a shot-planning discussion.

### Coloring activity drafts

Apply a coloring book treatment to a photo, then review the result for distracting detail before using it in an activity sheet.

### Portrait illustration studies

Explore cartoon or anime treatments of a portrait and compare how each interprets the original face.

### Printmaking concepts

Try wood cut or cross etching treatments on a landscape photo to develop an illustration brief.

## Overview

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

## FIBO Edit Restyle in other agents

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

## More opencode guides

- [FIBO Edit 1.5](https://spiral.ai/integrations/opencode/fibo-edit-1-5)
- [FLUX 1.1 Pro](https://spiral.ai/integrations/opencode/flux-1-1-pro)
- [FASHN Virtual Try-On v1.6](https://spiral.ai/integrations/opencode/fashn-virtual-try-on-v1-6)
- [FLUX 1.1 Pro Ultra](https://spiral.ai/integrations/opencode/flux-1-1-pro-ultra)
- [FASHN Virtual Try-On v1.5](https://spiral.ai/integrations/opencode/fashn-virtual-try-on-v1-5)
- [FLUX 3 Image](https://spiral.ai/integrations/opencode/flux-3-image)

## Questions about FIBO Edit Restyle in opencode

**Can opencode use FIBO Edit Restyle?**

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

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

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

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

**Does opencode wait while FIBO Edit Restyle runs?**

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

**What is FIBO Edit Restyle best for?**

Use it when you like a photo's composition and want a different artistic treatment. It suits illustration concepts, campaign artwork, and storyboard treatments.

**How should I prompt FIBO Edit Restyle?**

Tell your agent which source photo to use and name the intended treatment, such as oil painting. Keep the task focused on restyling; a long request for unrelated edits adds work beyond that purpose.

**Is FIBO Edit Restyle suitable for checking exact product details?**

Use it for artistic concepts. Before approving an image for a product campaign, compare the result with the original for changes to labels, shapes, and other details that matter.

**Does FIBO Edit Restyle always return 1024 by 1024 pixels?**

The published example shows that size, but an example is not a size guarantee. Check the returned image dimensions before planning a print or page layout around it.

**Should I upscale before or after restyling?**

Approve the artistic treatment first, then upscale the selected result. Bria recommends completing creative changes before upscaling.

