[Integrations](https://spiral.ai/integrations) › [Factory Droid](https://spiral.ai/integrations/factory-droid) › [Qwen3 Coder Flash](https://spiral.ai/integrations/factory-droid/qwen3-coder-flash)

# How to Use Qwen3 Coder Flash in Factory Droid

Qwen3 Coder Flash is built for code generation, repository understanding, and repeated tool use. It suits tasks where an agent needs to inspect code, make a change, and work from tool feedback.

|  |  |
| --- | --- |
| Model | Qwen3 Coder Flash |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.005202 per run at the default inputs. $0.2535 per 1M input tokens, $1.2675 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen3 Coder Flash in Factory Droid

- Use Qwen3 Coder Flash to investigate the failing tests in this project. Reproduce one failure, trace its cause through the relevant files, make the smallest patch, and report the test result.
- Use Qwen3 Coder Flash to trace this project's authentication flow from the request handler to session storage. Cite file paths and symbols, then identify missing tests for expired sessions.
- Use Qwen3 Coder Flash to review the current diff for behavior changes and concrete bugs. Inspect the surrounding implementation and return each finding with a reproduction and file reference.
- Use Qwen3 Coder Flash to find duplicated validation logic in this repository. Propose one shared implementation, preserve the existing public interfaces, and run the relevant tests after refactoring.
- Use Qwen3 Coder Flash with a lower temperature to add boundary tests for this project's CSV parser. Cover empty input, quoted delimiters, missing columns, and duplicate headers, then report which tests ran.

## How to set up Qwen3 Coder Flash in Factory Droid

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

### Use Spiral's MCP server

1. **Add the server**: Droid saves it to your user config, `~/.factory/mcp.json`, so it works in every project.

```bash
droid mcp add spiral https://api.spiral.ai/mcp --type http
```

2. **Sign in**: Start `droid`, type `/mcp`, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

3. **Check it**: Spiral shows as connected. needs authentication means the sign-in did not finish: run `/mcp` again.

```bash
droid mcp list
```

### Use the Spiral skill

1. **Send Factory Droid 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 Qwen3 Coder Flash**: 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": "openrouter",
    "model": "qwen/qwen3-coder-flash",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Factory Droid finds Qwen3 Coder Flash on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/factory-droid

## Qwen3 Coder Flash tools and prices

- [Qwen: Qwen3 Coder Flash](https://spiral.ai/tools/openrouter/qwen/qwen3-coder-flash) (OpenRouter): Up to $0.005202 per run at the default inputs. $0.2535 per 1M input tokens, $1.2675 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |

## What can you do with Qwen3 Coder Flash in Factory Droid?

Turn repository context and execution feedback into targeted code changes with Qwen3 Coder Flash. Ask the agent to inspect related code, make a bounded patch, and report the checks it actually ran.

### Fix a reproducible bug

Give Qwen3 Coder Flash the failing behavior, relevant code, and expected result. Ask for a small patch and a regression test.

### Trace behavior across a repository

Ask Qwen3 Coder Flash to follow a request from its entry point through validation, business logic, and storage. Request references to the code behind each step.

### Review a proposed change

Supply a diff and the surrounding code to Qwen3 Coder Flash. Request concrete failure cases, affected behavior, and suggested checks.

### Write boundary tests

Have Qwen3 Coder Flash turn a function's requirements into tests for empty input, invalid values, duplicates, and boundary conditions.

### Refactor duplicated logic

Ask Qwen3 Coder Flash to consolidate repeated code while preserving public interfaces. Include examples of behavior that must stay the same.

### Build a small data utility

Use Qwen3 Coder Flash to draft a script that validates records, transforms fields, and reports rejected rows. Supply representative input and expected output.

### Revise code from execution feedback

Return compiler errors or test output to Qwen3 Coder Flash and ask it to revise the implementation. Keep the original acceptance criteria in the conversation.

### Turn an API contract into code

Give Qwen3 Coder Flash an endpoint contract and example responses. Request a client function with validation, error handling, and tests against those examples.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Factory Droid guides](https://spiral.ai/integrations/factory-droid)

## Qwen3 Coder Flash in other agents

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

## More Factory Droid guides

- [Qwen3 Coder 480B A35B](https://spiral.ai/integrations/factory-droid/qwen3-coder-480b-a35b)
- [Qwen3 Coder Next](https://spiral.ai/integrations/factory-droid/qwen3-coder-next)
- [Qwen3 Coder 30B A3B Instruct](https://spiral.ai/integrations/factory-droid/qwen3-coder-30b-a3b-instruct)
- [Qwen3 Next 80B A3B Instruct](https://spiral.ai/integrations/factory-droid/qwen3-next-80b-a3b-instruct)
- [Qwen3 32B](https://spiral.ai/integrations/factory-droid/qwen3-32b)
- [Qwen3 VL 235B A22B Instruct](https://spiral.ai/integrations/factory-droid/qwen3-vl-235b-a22b-instruct)

## Questions about Qwen3 Coder Flash in Factory Droid

**Can Factory Droid use Qwen3 Coder Flash?**

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Qwen3 Coder Flash like any built-in tool.

**How much does Qwen3 Coder Flash cost in Factory Droid?**

Up to $0.005202 per run at the default inputs. $0.2535 per 1M input tokens, $1.2675 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Factory Droid plan is separate.

**Do I need an OpenRouter account to use Qwen3 Coder Flash in Factory Droid?**

No. Spiral runs Qwen3 Coder Flash on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Qwen3 Coder Flash in Factory Droid?**

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

**Does Factory Droid wait while Qwen3 Coder Flash runs?**

Qwen3 Coder Flash runs in the background. Factory Droid starts the run, checks on it and gives you the text, json when it's ready.

**What is Qwen3 Coder Flash best suited to?**

Its documented focus is generating code, understanding repositories, and working through repeated tool interactions. Use it for tasks such as a bug fix that requires inspecting related code and responding to test results.

**How much context can Qwen3 Coder Flash handle?**

The maker documents a 1,000,000-token context window and a maximum input length of 997,952 tokens. Treat these as model specifications when planning a task.

**How long can a Qwen3 Coder Flash response be?**

The documented maximum is 65,536 output tokens. For a large coding task, request one bounded change at a time so each result is easier to review.

**What should I include in a coding prompt?**

Include the relevant code, expected behavior, constraints, and a concrete example of the result you want. For a bug report, add the observed error and a small reproduction.

**Which setting matters for consistent code generation?**

Alibaba recommends lowering temperature to reduce randomness in generated code. Try that adjustment on a fixed set of coding tasks and compare the results.

