How to Use Qwen Image Edit Image to Image in Gemini CLI
Use Qwen Image Edit Image to Image to revise text, recolor objects, or restyle an existing picture. Unlike Qwen Image Edit Inpaint, it works without a supplied mask and lets transformation strength control how much of the original survives.
Prompts to try with Qwen Image Edit Image to Image in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Qwen Image Edit Image to Image to revise the event poster in this project. Replace 'AUTUM SALE' with 'AUTUMN SALE' while preserving the headline style, illustration, and layout. Save a comparison image and flag any changed lettering.
Remove the background from the photo I attach with Qwen Image Edit Image to Image and give me a transparent PNG. Save the result in ./assets.
Use Qwen Image Edit Image to Image to clean up these product shots so they sit on pure white.
Edit this image with Qwen Image Edit Image to Image: keep the subject, swap the background for a sunlit studio.
Use Qwen Image Edit Image to Image to turn this daytime photo into a dusk scene with warm window light.
How to set up Qwen Image Edit Image to Image in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI 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 Image to Image
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/image-to-image", "input": { "prompt": "Change bag to apple macbook", "image_url": "https://v3.fal.media/files/koala/oei_-iPIYFnhdB8SxojND_qwen-edit-res.png" } }'
Then paste one of the prompts above: Gemini CLI finds Qwen Image Edit Image to Image on Spiral, shows the price and runs it.
Qwen Image Edit Image to Image providers and prices
Spiral runs Qwen Image Edit Image to Image through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Qwen Image Edit Image to Image works from your prompt and image URL. Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Number of inference steps | 2 to 50 | 30 | The number of inference steps to perform. |
| 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. | |
| Guidance scale | 0 to 20 | 4 | 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 images | 1 to 4 | 1 | The number of images to generate. |
| Output format | jpeg or png | png | The format of the generated image. |
| Negative prompt | what to leave out, in words | The negative prompt for the generation | |
| Acceleration | none, regular, or high | regular | Acceleration level for image generation. Options: 'none', 'regular'. Higher acceleration increases speed. 'regular' balances speed and quality. |
| Strength | 0.01 to 1 | 0.94 | Strength of the image-to-image transformation. Lower values preserve more of the original image. |
Every API field of Qwen Image Edit is on its tool page: open its card above.
What can you do with Qwen Image Edit Image to Image in Gemini CLI?
Turn existing project images into revised artwork for pages, documentation, and demos. A coding agent can prepare a specific edit, save the result beside the original, and show both for review.
Correct poster headlines
Replace a misspelled English headline or Chinese phrase in an existing poster. Specify the exact replacement and inspect every character before using the result.
Preview product colors
Recolor a product in an existing photograph to compare design choices. Ask to retain its shape, label, camera angle, and surrounding scene.
Remove small distractions
Remove a stray object or unwanted detail from a photograph. Use a mask with Qwen Image Edit Inpaint to identify the repair area.
Revise portrait clothing
Change a jacket’s color or replace an outfit in a supplied portrait. State that the person’s face, pose, and background should remain consistent.
Replace a photo background
Move an existing subject into a different setting by editing the background. For Qwen Image Edit Inpaint, mask the background around the subject.
Restyle mascot artwork
Turn an existing mascot illustration into watercolor, paper collage, or another named visual style. Describe the identifying features that should survive the change.
More on Qwen Image Edit Image to Image and Gemini CLI
Overview
Qwen Image Edit Image to Image in other agents
Questions about Qwen Image Edit Image to Image in Gemini CLI
Can Gemini CLI use Qwen Image Edit Image to Image?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Qwen Image Edit Image to Image like any built-in tool.
How much does Qwen Image Edit Image to Image cost in Gemini CLI?
Up to $0.039 per run at the default inputs. $0.039 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 Gemini CLI plan is separate.
Do I need a fal account to use Qwen Image Edit Image to Image in Gemini CLI?
No. Spiral runs Qwen Image Edit Image to Image 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 Image to Image in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Qwen Image Edit Image to Image runs?
Qwen Image Edit Image to Image runs in the background. Gemini CLI starts the run, checks on it and gives you the image when it's ready.
What is Qwen Image Edit useful for?
Use it to revise an existing image: correct a poster headline, recolor an object, remove a distraction, change clothing, or replace a background. Give the edit a clear target and describe the result you want.
Can Qwen Image Edit change text inside a picture?
Yes. Qwen documents Chinese and English text editing, including replacing words while retaining their font, size, and style. Specify the exact old text and replacement text, then check the result letter by letter.
Will everything outside my requested edit stay identical?
Treat preservation as a goal to check. Qwen distinguishes local appearance edits from broader semantic edits, such as restyling, which can change pixels throughout the image while retaining the subject.
How should I phrase an editing prompt?
Name the target, describe one concrete change, and state what should stay: “Change the jacket to dark green; preserve the face, pose, lighting, and background.” For text, include the exact replacement wording.
Why might a Chinese character still look wrong?
Qwen’s own example shows an obscure character failing to correct in one pass. Mark the incorrect part and repair that smaller detail in a follow-up edit.
Start using Qwen Image Edit Image to Image in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


