How to Use Background Change in Muse Code
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.
Prompts to try with Background Change in Muse Code
Copy an example into Muse Code, or ask in your own words.
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 Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Background Change
One request; the result comes back by polling or a webhook.
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: Muse Code finds Background Change on Spiral, shows the price and runs it.
Background Change providers and prices
Spiral runs Background Change through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Background Change works from your image URL and background prompt. Ask Muse Code for any of these in your prompt.
| 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. |
| Number of inference steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| Safety tolerance | 1 to 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| Output format | jpeg or 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 and 1 more | The aspect ratio of the generated image. | |
| Seed | a whole number | The same seed and the same prompt given to the same version of the model will output the same image every time. |
Every API field of Image Editing Background Change is on its tool page: open its card above.
What can you do with Background Change in Muse Code?
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.
More on Background Change and Muse Code
Overview
Background Change in other agents
Questions about Background Change in Muse Code
Can Muse Code use Background Change?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Background Change like any built-in tool.
How much does Background Change cost in Muse 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 Muse Code plan is separate.
Do I need a fal account to use Background Change in Muse Code?
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 Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while Background Change runs?
Background Change runs in the background. Muse Code 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.
Start using Background Change in Muse Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Muse Code:
set up https://spiral.ai/SKILL.md


