[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [fal Object Removal](https://spiral.ai/integrations/codex/fal-object-removal)

# How to Use fal Object Removal in Codex

fal Object Removal edits unwanted objects or people out of existing photos. It blends the background where the removed subject appeared, making it useful for cleaning up distracting elements.

|  |  |
| --- | --- |
| Model | fal Object Removal |
| 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 fal Object Removal in Codex

- Use fal Object Removal on public/images/hero.jpg to remove the trash can at the right edge. Save a separate edited copy.
- Use fal Object Removal on assets/product.jpg to remove the loose cable beside the speaker. Show the original and edited photo together.
- Use fal Object Removal on public/photos/team.jpg to remove the empty chair in the background. Save the result for review.
- Use fal Object Removal on assets/cafe.jpg to remove the used napkin beside the plate. Preview the edit in the menu page.
- Use fal Object Removal on public/images/banner.jpg with the target 'background people.' Compare two guidance settings while keeping the removal description unchanged.

## How to set up fal Object Removal in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 fal Object Removal**: 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": "fal-ai/image-editing/object-removal",
    "input": {
      "image_url": "https://v3.fal.media/files/zebra/hAjCkcyly4gsS9-cptD3Y_image%20(20).png"
    }
  }'
```

Then paste one of the prompts above: Codex finds fal Object Removal on Spiral, shows the price and runs it.

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

## fal Object Removal tools and prices

- [Image Editing Object Removal](https://spiral.ai/tools/fal/fal-ai/image-editing/object-removal) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| guidance_scale | 0 to 20 | 3.5 | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| num_inference_steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| safety_tolerance | 1, 2, 3, 4, 5, 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| output_format | jpeg, png | jpeg | The format of the generated image. |
| aspect_ratio | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 | — | The aspect ratio of the generated image. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |

## What can you do with fal Object Removal in Codex?

Prepare existing project photos by removing distracting people or objects. Ask the agent to save edited copies beside the originals for review in the page layout.

### Travel photo cleanup

Remove background bystanders from a vacation photo, then compare the edited scene with the original.

### Product photo cleanup

Remove a stray cup, cable, or packing material beside a photographed product.

### Portrait background cleanup

Remove a distracting object behind a portrait subject, such as a trash can or spare chair.

### Food photography

Edit a used napkin or empty glass out of a table scene before selecting a menu photo.

### Website photo preparation

Remove an unwanted prop from an existing banner photo before placing it in a page layout.

### Interior photo cleanup

Remove temporary clutter, such as a bag on the floor, from an interior photograph.

## Overview

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

## fal Object Removal in other agents

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

## More Codex guides

- [fal Hair Change](https://spiral.ai/integrations/codex/fal-hair-change)
- [fal Retouch](https://spiral.ai/integrations/codex/fal-retouch)
- [fal Grain](https://spiral.ai/integrations/codex/fal-grain)
- [fal Scene Composition](https://spiral.ai/integrations/codex/fal-scene-composition)
- [fal Expression Change](https://spiral.ai/integrations/codex/fal-expression-change)
- [fal Sharpen](https://spiral.ai/integrations/codex/fal-sharpen)

## Questions about fal Object Removal in Codex

**Can Codex use fal Object Removal?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run fal Object Removal like any built-in tool.

**How much does fal Object Removal cost in Codex?**

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

**Do I need a fal account to use fal Object Removal in Codex?**

No. Spiral runs fal Object Removal on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up fal Object Removal in Codex?**

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

**Does Codex wait while fal Object Removal runs?**

fal Object Removal runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

**What is fal Object Removal useful for?**

Removing distracting objects or people from an existing photo. Suggested uses include background bystanders, stray props, and clutter around a product.

**What should I write in the removal prompt?**

Name what should disappear. As a practical starting point, try a specific description such as 'the red cup beside the plate' instead of 'clean up this photo.'

**Can fal Object Removal remove people?**

Yes. The official description explicitly includes people, and the example removal target is 'background people.'

**What happens to the background after removal?**

fal Object Removal is designed to blend the background where the unwanted object or person appeared. Compare the edited area with the original before choosing the result.

**Which setting affects prompt adherence?**

Guidance controls how closely the model follows your prompt. To assess its effect, compare edits of the same photo while changing only guidance.

