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

# How to Use Qwen Image Image to Image in opencode

Use Qwen Image Image to Image to restyle or rework an existing picture. Unlike Qwen Image, it uses a reference image to guide the result.

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

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

- Use Qwen Image Image to Image to restyle the project's existing landscape asset as an impressionist oil painting. Describe the visible scene and keep the mountain as the central subject.
- Generate a product photo with Qwen Image Image to Image: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
- Make four logo concepts for a coffee brand called "Northline" with Qwen Image Image to Image.
- Create a 16:9 hero image of a quiet mountain cabin at dusk with Qwen Image Image to Image.
- Generate a 9:16 poster with Qwen Image Image to Image for a jazz night called "Blue Hour", deep navy and brass tones.

## How to set up Qwen Image Image to Image 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 Image to Image**: 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/image-to-image",
    "input": {
      "prompt": "Mount Fuji with purple japanese wisteria in the foreground, clear sky, peaceful spring day, soft natural light, landscape, painted with oil brush on a wood…",
      "image_url": "https://v3.fal.media/files/rabbit/KoIbq6nhDBDPxDQrivW-m.png"
    }
  }'
```

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

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

## Qwen Image Image to Image tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | — | The size of the generated image. By default, we will use the provided image for determining the image_size. |
| num_inference_steps | 2 to 250 | 30 | The number of inference steps to perform. |
| seed |  | — | 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 | 2.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. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png | png | The format of the generated image. |

## What can you do with Qwen Image Image to Image in opencode?

Create visual assets that match a project's content and art direction. Turn repository briefs into image prompts with explicit composition, style, and lettering.

### Event poster concepts

Develop a poster with an exact headline, a short date line, and a clear visual theme. For Qwen Image Image to Image, supply an existing poster composition to rework.

### English and Chinese storefront artwork

Explore shop signs and window displays with specified English or Chinese wording. For Qwen Image Image to Image, start with a storefront picture.

### Illustrated cover studies

Explore an illustrated cover with a short title and a defined painting or anime style. For Qwen Image Image to Image, provide a starting cover or illustration.

### Campaign art direction

Explore photographic, painted, or minimalist treatments for a campaign concept. For Qwen Image Image to Image, provide an existing campaign image to restyle.

### Photo-to-painting studies

Use a supplied photograph as the starting point for an oil-painted or illustrated interpretation.

### Existing artwork revisions

Rework a supplied picture with a different visual treatment or a revised creative brief.

## Overview

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

## Qwen Image Image to Image in other agents

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

## More opencode guides

- [Qwen Image Edit Shirt Design](https://spiral.ai/integrations/opencode/qwen-image-edit-shirt-design)
- [Qwen Image Layered](https://spiral.ai/integrations/opencode/qwen-image-layered)
- [Qwen Image Edit Remove Lighting](https://spiral.ai/integrations/opencode/qwen-image-edit-remove-lighting)
- [Qwen Image Layered LoRA](https://spiral.ai/integrations/opencode/qwen-image-layered-lora)
- [Qwen Image Edit Plus Remove Element](https://spiral.ai/integrations/opencode/qwen-image-edit-plus-remove-element)
- [Recraft 20B](https://spiral.ai/integrations/opencode/recraft-20b)

## Questions about Qwen Image Image to Image in opencode

**Can opencode use Qwen Image Image to Image?**

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

**How much does Qwen Image Image to Image cost in opencode?**

Up to $0.026 per run at the default inputs. $0.026 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 Image to Image in opencode?**

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

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

**Does opencode wait while Qwen Image Image to Image runs?**

Qwen Image Image to Image runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Qwen Image especially useful for?**

Artwork that combines a scene with readable lettering, such as event posters, storefront concepts, and illustrated covers. English and Chinese text are documented strengths.

**How should I prompt lettering?**

Put the exact wording in double quotation marks. Specify where it belongs, its font style and color, and whether it appears on paper, a sign, clothing, or another surface.

**Which languages should I start with?**

English and Chinese are the best-documented starting points for visible text. Keep names and slogans in their original wording when writing your prompt.

**Can Qwen Image make illustrations as well as photographs?**

Yes. Qwen documents photographic scenes, impressionist painting, anime, and minimalist design, so name the intended medium explicitly.

**What makes a useful visual prompt?**

Describe the subject, its position, the artistic style, and the composition. For text-heavy artwork, assign each phrase a clear location instead of asking for a poster with unspecified writing.

