[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Fibo Edit Replace Object by Text](https://spiral.ai/integrations/vscode/fibo-edit-replace-object-by-text)

# How to Use Fibo Edit Replace Object by Text in VS Code

Fibo Edit Replace Object by Text swaps a named object in an existing image using a written instruction. Use it for focused substitutions, such as replacing a red apple with a green pear, and identify the target clearly when the scene is crowded.

|  |  |
| --- | --- |
| Model | Fibo Edit Replace Object by Text |
| 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 Replace Object by Text in VS Code

- Use Fibo Edit Replace Object by Text on public/images/office.jpg to replace the red desk lamp on the right with a small white ceramic lamp. Ask to preserve the desk, monitor, and camera angle, and save a separate copy for review.
- Use Fibo Edit Replace Object by Text on assets/kitchen.jpg to replace the blue mug beside the sink with a clear drinking glass. Request matching lighting and shadows, and show the original beside the result.
- Use Fibo Edit Replace Object by Text on public/images/lounge.jpg to replace the single armchair at the front left with a brown leather armchair. Ask to retain the room and other furniture, and save the edit as a new asset.
- Use Fibo Edit Replace Object by Text on assets/fruit-bowl.png to replace the red apple at the front of the bowl with a green pear. Ask to preserve the bowl and other fruit, and prepare a before-and-after preview.
- Use Fibo Edit Replace Object by Text on public/images/still-life.jpg to replace the tall blue vase in the center with a short terracotta vase. Request matching light and shadows, and keep the original asset for comparison.

## How to set up Fibo Edit Replace Object by Text in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 Replace Object by Text**: 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/replace_object_by_text",
    "input": {
      "image_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/Liza/a_bowl_of_fruits__should_have_a_red_apple.png",
      "instruction": "Replace the red apple with a green pear"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Fibo Edit Replace Object by Text on Spiral, shows the price and runs it.

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

## Fibo Edit Replace Object by Text tools and prices

- [Fibo Edit · Replace Object by Text](https://spiral.ai/tools/fal/bria/fibo-edit/replace_object_by_text) (fal): $0.052 per image.

## What can you do with Fibo Edit Replace Object by Text in VS Code?

Revise existing website and app imagery with targeted object substitutions. A coding agent can use project assets as the starting point and prepare edited copies for visual review.

### Test furniture choices

Replace a clearly identified chair in a room photo to preview a different design. Ask to retain the room, camera angle, and other furniture.

### Compare food styling

Swap a red apple for a green pear in a bowl photo to compare ingredient and color choices.

### Explore tabletop props

Replace a vase, mug, or lamp in an existing still life to test a new visual direction.

### Prepare ad concepts

Replace one prominent prop in an existing ad image to explore alternative concepts. Review the surrounding artwork after each edit.

### Revise presentation visuals

Swap a distracting object in a slide's illustration or photo for something that better supports the topic.

### Update website imagery

Replace a dated desk accessory or decorative object in an existing website photo. Request that the composition and surrounding scene stay unchanged.

## Overview

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

## Fibo Edit Replace Object by Text in other agents

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

## More VS Code guides

- [Fibo Edit Relight](https://spiral.ai/integrations/vscode/fibo-edit-relight)
- [Fibo Edit Reseason](https://spiral.ai/integrations/vscode/fibo-edit-reseason)
- [Fibo Edit Erase by Text](https://spiral.ai/integrations/vscode/fibo-edit-erase-by-text)
- [Fibo Edit Restore](https://spiral.ai/integrations/vscode/fibo-edit-restore)
- [Fibo Edit Colorize](https://spiral.ai/integrations/vscode/fibo-edit-colorize)
- [Fibo Edit Rewrite Text](https://spiral.ai/integrations/vscode/fibo-edit-rewrite-text)

## Questions about Fibo Edit Replace Object by Text in VS Code

**Can VS Code use Fibo Edit Replace Object by Text?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Fibo Edit Replace Object by Text like any built-in tool.

**How much does Fibo Edit Replace Object by Text cost in VS Code?**

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

**Do I need a fal account to use Fibo Edit Replace Object by Text in VS Code?**

No. Spiral runs Fibo Edit Replace Object by Text 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 Replace Object by Text in VS Code?**

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

**Does VS Code wait while Fibo Edit Replace Object by Text runs?**

Fibo Edit Replace Object by Text runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

**What is Fibo Edit Replace Object by Text good for?**

It handles focused object substitutions in existing images. Try replacing a tabletop prop, a piece of furniture, or an ingredient in a food photo.

**How should I describe the object I want to replace?**

Name the object and add details that distinguish it, such as its color, size, or position. Then describe the replacement and state which surrounding details should stay unchanged.

**What if the image contains several similar objects?**

Use a precise description such as the small red cup at the front left. If that still leaves the target ambiguous, Bria recommends a mask-based editing tool.

**How can I keep the surrounding scene consistent?**

Explicitly ask to preserve the camera angle and surrounding objects. Compare the result with the original before accepting the edit.

**How can I help the replacement look natural?**

Describe the replacement's appearance and ask for lighting and shadows that match the scene. Review those details alongside the object itself.

