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

# How to Use Qwen Image 3 Text to Image in opencode

Qwen Image 3 Text to Image creates posters, infographics, and interface mockups from written descriptions. Unlike Qwen Image 3 Edit, it starts without a reference image and suits briefs that specify the layout and exact text.

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

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

- Use Qwen Image 3 Text to Image to create a 1536×1024 mockup of our onboarding screen from the project requirements. Include the exact approved headings and button labels, with a clear reading order.
- Use Qwen Image 3 Text to Image to illustrate the workflow described in our documentation as a 1536×1024 infographic. Use four labeled stages and copy only the terminology already used in the project.
- Use Qwen Image 3 Text to Image to create a 1024×1536 release poster from our changelog. Select three approved highlights, keep the wording concise, and separate the headline from the feature illustrations.
- Generate a product photo with Qwen Image 3 Text 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 3 Text to Image.

## How to set up Qwen Image 3 Text 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 3 Text 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": "alibaba/qwen-image-3/text-to-image",
    "input": {
      "prompt": "A cute baby koala holding a card that says \"Qwen Image 3 is now available on fal\" while on a water slide"
    }
  }'
```

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

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

## Qwen Image 3 Text to Image tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | Content to avoid in the generated image. Max 500 characters. |
| image_size |  | square_hd | The size of the generated image. Total number of pixels must be between 512x512 and 2048x2048. |
| enable_prompt_expansion |  | true | Enable automatic LLM prompt rewriting for better results. |
| seed |  | — | Random seed for reproducibility (0-2147483647). |
| num_images | 1 to 6 | 1 | The number of images to generate. |
| output_format | jpeg, png, webp | png | The format of the generated image. |

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

Develop interface mockups, illustrated documentation, and promotional graphics with Qwen Image 3. Have the coding agent turn project requirements into precise visual instructions and compare the results with the intended layout.

### Bilingual event posters

Create a poster from a written brief with exact English and Chinese headlines, a clear information hierarchy, and room for event details.

### Educational infographics

Turn an approved explanation into a labeled visual with diagrams, short captions, and clearly separated sections.

### Interface design mockups

Explore a web page or app screen with specified navigation, headings, and content placement before implementing the design.

### Storyboard planning

Translate a short scene description into a multi-panel storyboard with explicit framing, actions, and panel captions.

## Overview

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

## Qwen Image 3 Text to Image in other agents

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

## More opencode guides

- [Qwen Image 3 Edit](https://spiral.ai/integrations/opencode/qwen-image-3-edit)
- [Qwen Image Edit 2509](https://spiral.ai/integrations/opencode/qwen-image-edit-2509)
- [Qwen Image 2512 LoRA](https://spiral.ai/integrations/opencode/qwen-image-2512-lora)
- [Qwen Image Edit 2509 Add Background](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-add-background)
- [Qwen Image 2512](https://spiral.ai/integrations/opencode/qwen-image-2512)
- [Qwen Image Edit 2509 Face to Full Portrait](https://spiral.ai/integrations/opencode/qwen-image-edit-2509-face-to-full-portrait)

## Questions about Qwen Image 3 Text to Image in opencode

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

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

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

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

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

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

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

Qwen Image 3 Text 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 3 especially useful for?**

Text-heavy visuals such as posters, menus, infographics, storyboards, and interface mockups. Its typography and layout capabilities make it a useful choice when words and illustrations need to share the same image.

**Can Qwen Image 3 put readable text inside an image?**

Yes. Qwen reports rendering text as small as 10 pixels across 12 languages and multiple fonts; check the actual wording and legibility at the intended display size before publishing.

**Should I write prompts in English or Chinese?**

Both English and Chinese are explicitly supported by the served endpoints. State the desired language for text inside the image and supply the exact wording you want.

**Can Qwen Image 3 produce a 4K image?**

The documented maximum is 2048×2048. Plan the composition for that output size, especially when it contains small labels or several panels.

**How long can a Qwen Image 3 prompt be?**

The served endpoints limit prompts to 5,000 characters. Keep the required text, layout, and visual instructions within that limit.

