[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Qwen Image Edit 2511](https://spiral.ai/integrations/opencode/qwen-image-edit-2511)

# How to Use Qwen Image Edit 2511 in opencode

Use Qwen Image Edit 2511 for portrait edits, product redesigns, and compositions involving several people. Compared with Qwen Image Edit 2509, it reduces image drift and improves character consistency and geometric reasoning.

|  |  |
| --- | --- |
| Model | Qwen Image Edit 2511 |
| Available through | fal |
| Category | Image |
| Price | Up to $0.039 per run at the default inputs. $0.039 per unit of `num_images`. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen Image Edit 2511 in opencode

- Use Qwen Image Edit 2511 to revise the product concept image in this project. Replace the glossy plastic housing with brushed aluminum while retaining its silhouette, controls, camera angle, and background. Save the result as a design proposal.
- Remove the background from the photo I attach with Qwen Image Edit 2511 and give me a transparent PNG. Save the result in ./assets.
- Use Qwen Image Edit 2511 to clean up these product shots so they sit on pure white.
- Edit this image with Qwen Image Edit 2511: keep the subject, swap the background for a sunlit studio.
- Use Qwen Image Edit 2511 to turn this daytime photo into a dusk scene with warm window light.

## How to set up Qwen Image Edit 2511 in opencode

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

### Use Spiral's MCP server

1. **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.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Qwen Image Edit 2511**: 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/qwen-image-edit-2511",
    "input": {
      "prompt": "Change angle to front view",
      "image_urls": [
        "<image_urls>"
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Qwen Image Edit 2511 on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Qwen Image Edit 2511 tools and prices

- [Qwen Image Edit 2511](https://spiral.ai/tools/fal/fal-ai/qwen-image-edit-2511) (fal): Up to $0.039 per run at the default inputs. $0.039 per unit of `num_images`.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | The negative prompt to generate an image from. |
| image_size |  | — | The size of the generated image. If None, uses the input image dimensions. |
| num_inference_steps | 1 to 50 | 28 | The number of inference steps to perform. |
| guidance_scale | 1 to 20 | 4.5 | The guidance scale to use for the image generation. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| num_images | 1 to 4 | 1 | The number of images to generate. |

## What can you do with Qwen Image Edit 2511 in opencode?

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.

### Combine separate portraits

Use two reference portraits to create a shared scene, specifying where each person belongs. Qwen Image Edit 2511 places particular emphasis on consistency when several people appear together.

### Explore industrial materials

Edit an existing product concept to compare surface materials and design treatments. Use the results as visual concepts for review.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Qwen Image Edit 2511 in other agents

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

## More opencode guides

- [Qwen Image Edit 2509 Shirt Design](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-shirt-design)
- [Qwen Image Edit 2511 LoRA](https://spiral.ai/integrations/opencode/qwen-image-edit-2511-lora)
- [Qwen Image Edit 2509 Remove Lighting](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-remove-lighting)
- [Qwen Image Edit 2511 Multiple Angles](https://spiral.ai/integrations/opencode/qwen-image-edit-2511-multiple-angles)
- [Qwen Image Edit 2509 Remove Element](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-remove-element)
- [Qwen Image Edit Add Background](https://spiral.ai/integrations/opencode/qwen-image-edit-add-background)

## Questions about Qwen Image Edit 2511 in opencode

**Can opencode use Qwen Image Edit 2511?**

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

**How much does Qwen Image Edit 2511 cost in opencode?**

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 opencode plan is separate.

**Do I need a fal account to use Qwen Image Edit 2511 in opencode?**

No. Spiral runs Qwen Image Edit 2511 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 2511 in opencode?**

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

**Does opencode wait while Qwen Image Edit 2511 runs?**

Qwen Image Edit 2511 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 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.

