[Integrations](https://spiral.ai/integrations) › [Factory Droid](https://spiral.ai/integrations/factory-droid) › [Background Change](https://spiral.ai/integrations/factory-droid/background-change)

# How to Use Background Change in Factory Droid

Background Change replaces a photo's setting with a scene you describe, such as a beach sunset or city street. Use it to explore new settings for existing product photos or portraits, then check the subject and lighting before publishing.

|  |  |
| --- | --- |
| Model | Background Change |
| 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 Background Change in Factory Droid

- Use Background Change on the product photo in this project's assets. Request a pale stone countertop with a softly lit kitchen in the distance, save the edit separately, and show it beside the original.
- Use Background Change on the homepage portrait. Request a quiet office background with soft window light from the left, then place the result in a local page preview for review.
- Use Background Change to make three separate edits of the project's backpack photo: a forest trail, a city sidewalk, and a plain studio setting. Build a comparison page with the original and all three results.
- Use Background Change on the campaign product image. Request a snowy courtyard with distant trees and overcast daylight, save it as a draft, and list the subject details I should compare with the original.
- Use Background Change on the selected product asset with the same stone-terrace description at two guidance levels. Hold the source photo and wording fixed, and show both results side by side.

## How to set up Background Change in Factory Droid

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

### Use Spiral's MCP server

1. **Add the server**: Droid saves it to your user config, `~/.factory/mcp.json`, so it works in every project.

```bash
droid mcp add spiral https://api.spiral.ai/mcp --type http
```

2. **Sign in**: Start `droid`, type `/mcp`, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

3. **Check it**: Spiral shows as connected. needs authentication means the sign-in did not finish: run `/mcp` again.

```bash
droid mcp list
```

### Use the Spiral skill

1. **Send Factory Droid 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 Background Change**: 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/background-change",
    "input": {
      "image_url": "https://v3.fal.media/files/zebra/hAjCkcyly4gsS9-cptD3Y_image%20(20).png"
    }
  }'
```

Then paste one of the prompts above: Factory Droid finds Background Change on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/factory-droid

## Background Change tools and prices

- [Image Editing Background Change](https://spiral.ai/tools/fal/fal-ai/image-editing/background-change) (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 Background Change in Factory Droid?

Create new background concepts for product and portrait assets already in a project. A coding agent can organize the edited images for comparison and place selected results into a page preview.

### Product setting concepts

Try an existing product photo against a kitchen counter, stone terrace, or studio backdrop. Compare the settings before choosing a direction for a campaign.

### Portrait backdrop drafts

Explore an office, garden, or plain studio setting behind an existing portrait. Review facial details and the subject's outline against the original.

### Seasonal campaign images

Request autumn foliage, a snowy courtyard, or a summer beach behind an existing subject. Keep the setting description specific to the campaign.

### Ad creative comparisons

Use the same source photo to compare a city street, coastal scene, and neutral studio background. Select results based on subject accuracy and the campaign brief.

### Website image concepts

Test a quieter background for an existing website photo. Request an uncluttered setting, then review the edited image in the intended page layout.

### Coordinated catalog backdrops

Apply a shared background description to a set of product photos. Review each result for consistent scene direction, lighting, and product details.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Factory Droid guides](https://spiral.ai/integrations/factory-droid)

## Background Change in other agents

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

## More Factory Droid guides

- [Baby Version](https://spiral.ai/integrations/factory-droid/baby-version)
- [Boogu Image](https://spiral.ai/integrations/factory-droid/boogu-image)
- [BEN v2](https://spiral.ai/integrations/factory-droid/ben-v2)
- [Bria Background Replace](https://spiral.ai/integrations/factory-droid/bria-background-replace)
- [Age Progression](https://spiral.ai/integrations/factory-droid/age-progression)
- [Bria Creative Upscale](https://spiral.ai/integrations/factory-droid/bria-creative-upscale)

## Questions about Background Change in Factory Droid

**Can Factory Droid use Background Change?**

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Background Change like any built-in tool.

**How much does Background Change cost in Factory Droid?**

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

**Do I need a fal account to use Background Change in Factory Droid?**

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

**How long does it take to set up Background Change in Factory Droid?**

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

**Does Factory Droid wait while Background Change runs?**

Background Change runs in the background. Factory Droid starts the run, checks on it and gives you the image when it's ready.

**What is Background Change useful for?**

It replaces the setting in an existing photo with a scene you describe. Try it for product scene concepts, portrait backdrops, or seasonal campaign drafts.

**What should I write in a background prompt?**

Describe the finished setting: location, surface, background details, and light. For example, try 'a pale stone terrace overlooking the sea, distant horizon, soft morning light from the left.'

**How should I handle lighting and shadows?**

Fal highlights lighting and shadows as part of background replacement. Describe light that suits the original photo, then inspect whether the subject and setting look consistent.

**How can I get the result closer to my description?**

Guidance controls prompt adherence. Try increasing it while keeping the photo and description unchanged, then compare the results.

**What should I check before using an edited photo?**

Compare the result with the original, especially faces, product labels, outlines, and small details. Treat exact subject preservation as an acceptance requirement and reject edits that change something important.

