How to Use Qwen Image Edit 2509 Add Background in opencode
Qwen Image Edit 2509 Add Background turns white-background product photos into realistic scenes. Unlike Qwen Image Edit 2509, its focus is placing products and objects in new settings.
Prompts to try with Qwen Image Edit 2509 Add Background in opencode
Copy an example into opencode, or ask in your own words.
Use Qwen Image Edit 2509 Add Background on the white-background kettle photo in public/products. Place it on a stone kitchen counter beside a window, then show the source and result together for review.
Use Qwen Image Edit 2509 Add Background on the isolated chair image in our assets. Place it in a reading nook with a bookcase behind it, and prepare a preview in the catalog page.
Use Qwen Image Edit 2509 Add Background with the backpack product photo in this project. Put it beside a tent at a forest campsite and check the straps and outline against the original.
Use Qwen Image Edit 2509 Add Background on our white-background car photo. Add a mountain road setting and save the draft beside the original for comparison.
Use Qwen Image Edit 2509 Add Background with the mug photo in public/images. Try a cafe table setting, retain the source dimensions, and preview it in the existing product card.
How to set up Qwen Image Edit 2509 Add Background in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Qwen Image Edit 2509 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-2509-lora-gallery/add-background", "input": { "image_urls": [ "<image_urls>" ] } }'
Then paste one of the prompts above: opencode finds Qwen Image Edit 2509 Add Background on Spiral, shows the price and runs it.
Qwen Image Edit 2509 Add Background providers and prices
Spiral runs Qwen Image Edit 2509 Add Background through fal. Open a card for today's price, with every fee included.
Up to $0.0455 per run at the default inputs. $0.0455 per unit of num_images.
Settings you can ask for
Qwen Image Edit 2509 Add Background works from your image URLs and prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Guidance scale | 0 to 20 | 1 | The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt. |
| Number of inference steps | 2 to 50 | 6 | The number of inference steps to perform. |
| Acceleration | none or regular | regular | Acceleration level for image generation. 'regular' balances speed and quality. |
| Negative prompt | what to leave out, in words | The negative prompt for the generation | |
| Seed | a whole number | Random seed for reproducibility. Same seed with same prompt will produce same result. | |
| Output format | png, jpeg, or webp | png | The format of the output image |
| Number of images | 1 to 4 | 1 | Number of images to generate |
| LoRA scale | 0 to 4 | 1 | The scale factor for the LoRA model. Controls the strength of the LoRA effect. |
Every API field of Qwen Image Edit 2509 Lora Gallery · Add Background is on its tool page: open its card above.
What can you do with Qwen Image Edit 2509 Add Background in opencode?
Create contextual product images from isolated photos already in your project. Have the agent compare each result with its source before adding it to a page.
Product listing scenes
Place a white-background kettle photo on a kitchen counter for a contextual listing image.
Studio photos into lifestyle concepts
Give an isolated backpack photo a campsite setting to explore an outdoor campaign.
Catalog staging
Place photographed tableware in a dining scene for a catalog layout.
Furniture setting comparisons
Try an isolated chair photo in a reading nook and a home office before choosing a direction.
Vehicle scene concepts
Place a white-background car image on a road with mountains behind it.
Seasonal campaign drafts
Build autumn and winter setting concepts around the same isolated product photo.
More on Qwen Image Edit 2509 Add Background and opencode
Overview
Qwen Image Edit 2509 Add Background in other agents
Questions about Qwen Image Edit 2509 Add Background in opencode
Can opencode use Qwen Image Edit 2509 Add Background?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Qwen Image Edit 2509 Add Background like any built-in tool.
How much does Qwen Image Edit 2509 Add Background cost in opencode?
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 opencode plan is separate.
Do I need a fal account to use Qwen Image Edit 2509 Add Background in opencode?
No. Spiral runs Qwen Image Edit 2509 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 2509 Add Background in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Qwen Image Edit 2509 Add Background runs?
Qwen Image Edit 2509 Add Background runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.
What is Qwen Image Edit 2509 Add Background good for?
Turning isolated product photos into scenes for listings, catalogs, and campaign concepts. Start with the product image and describe its new setting.
What kind of source photo should I use?
Choose a product or object on a clean white background, the documented best starting point. Use that recommendation when selecting photos for a batch.
How should I describe the scene?
Name the subject and its destination, such as a car on a mountain road. For a controlled comparison, keep the subject description fixed and change one scene detail at a time.
Should I include the Chinese trigger phrase?
The LoRA creator documents 白底图转场景 before the subject and scene description. The Add Background documentation also demonstrates an English prompt, so use that as a starting point or test the documented prefix.
What dimensions will the edited image have?
If you leave the output size unspecified, it uses the dimensions of the final input image. Choose your source dimensions with the intended placement in mind.
Start using Qwen Image Edit 2509 Add Background in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


