Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · Image

How to Use Qwen Image Edit Add Background in Muse Code

Qwen Image Edit Add Background turns product photos on white backgrounds into realistic scenes. Its specialty is placing the object in context while adjusting lighting, perspective, and shadows.

Prompts to try with Qwen Image Edit Add Background in Muse Code

Copy an example into Muse Code, or ask in your own words.

Use Qwen Image Edit Add Background on public/images/coffee-maker-white.png. Place the coffee maker on an oak kitchen counter beside a window, with soft morning light and a natural contact shadow.

Qwen Image Edit Add BackgroundMuse Code
Try asking
  • Use Qwen Image Edit Add Background on assets/chair-white.png. Place the chair in a reading nook beside a low bookshelf, with afternoon light from the left.

  • Use Qwen Image Edit Add Background on public/products/backpack-white.png. Place the backpack on a flat rock beside a campsite, with distant pine trees and overcast daylight.

  • Use Qwen Image Edit Add Background on assets/car-white.png. Place the car on a paved mountain road with distant hills and late afternoon light. Save the result for design review.

  • Use Qwen Image Edit Add Background on public/products/lamp-white.png. Place the lamp on a bedside table in a quiet bedroom. Compare the default LoRA strength with a lower strength, keeping the photo and description unchanged.

How to set up Qwen Image Edit Add Background in Muse Code

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

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    muse mcp login spiral

Use the Spiral skill

  1. Send Muse 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Qwen Image Edit Add Background

    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/qwen-image-edit-plus-lora-gallery/add-background",
        "input": {
          "image_urls": [
            "<image_urls>"
          ]
        }
      }'

Then paste one of the prompts above: Muse Code finds Qwen Image Edit Add Background on Spiral, shows the price and runs it.

Qwen Image Edit Add Background providers and prices

Spiral runs Qwen Image Edit Add Background through fal. Open a card for today's price, with every fee included.

falImage
Qwen Image Edit Plus Lora Gallery · Add Background
fal-ai/qwen-image-edit-plus-lora-gallery/add-background

Settings you can ask for

Qwen Image Edit Add Background works from your image URLs and prompt. Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Guidance scale0 to 201

The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt.

Number of inference steps2 to 506

The number of inference steps to perform.

Accelerationnone or regularregular

Acceleration level for image generation. 'regular' balances speed and quality.

Negative promptwhat to leave out, in words

The negative prompt for the generation

Seeda whole number

Random seed for reproducibility. Same seed with same prompt will produce same result.

Output formatpng, jpeg, or webppng

The format of the output image

Number of images1 to 41

Number of images to generate

LoRA scale0 to 41

The scale factor for the LoRA model. Controls the strength of the LoRA effect.

Every API field of Qwen Image Edit Plus Lora Gallery · Add Background is on its tool page: open its card above.

What can you do with Qwen Image Edit Add Background in Muse Code?

Create contextual product images from white-background assets in your project. A coding agent can pair each asset with a concrete scene brief and prepare the results for review.

Product page lifestyle photos

Place a white-background coffee maker photo on a kitchen counter to show a proposed everyday setting.

Furniture in room scenes

Use a chair photographed against white as the starting point for a reading nook scene.

Outdoor gear campaign concepts

Place a white-background backpack photo beside a campsite to explore campaign imagery.

Vehicle presentation images

Move a car photographed against white into a described road or outdoor setting.

Seasonal merchandising concepts

Give a white-background candle photo an autumn dining table setting for a seasonal creative review.

Background concept comparisons

Try a photographed product in several described environments, then compare which setting best communicates its intended use.

Questions about Qwen Image Edit Add Background in Muse Code

Can Muse Code use Qwen Image Edit Add Background?

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Qwen Image Edit Add Background like any built-in tool.

How much does Qwen Image Edit Add Background cost in Muse Code?

Up to $0.0455 per run at the default inputs. $0.0455 per unit of `num_images`. 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 Qwen Image Edit Add Background in Muse Code?

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

How long does it take to set up Qwen Image Edit Add Background in Muse Code?

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

Does Muse Code wait while Qwen Image Edit Add Background runs?

Qwen Image Edit Add Background runs in the background. Muse Code starts the run, checks on it and gives you the image when it's ready.

What photos work best with Qwen Image Edit Add Background?

Start with an object or product photographed against clean white. That is the documented best case, so prioritize those photos when choosing source material.

How should I describe the edit?

Name the subject and the setting you want. For example, ask to place the photographed car on a mountain road rather than asking for a better background.

Does it adjust the lighting as well as the background?

Yes. The documented transformation includes matching lighting, perspective, and shadows to the new scene.

Which setting controls the strength of the transformation?

LoRA strength controls the effect's intensity. When comparing strengths, keep the source photo and scene description unchanged so you can judge that adjustment.

Can I ask for an outdoor scene?

Yes. The creator's example places a car outdoors; specify the environment you want around the photographed object.

Get started

Start using Qwen Image Edit Add Background 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 Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options