[Integrations](https://spiral.ai/integrations) › [Grok Build](https://spiral.ai/integrations/grok-build) › [Qwen3.5 397B A17B](https://spiral.ai/integrations/grok-build/qwen3-5-397b-a17b)

# How to Use Qwen3.5 397B A17B in Grok Build

Use Qwen3.5 397B A17B for coding, reasoning, and tasks that involve several tool calls. Its 397B-parameter design activates 17B parameters per forward pass.

|  |  |
| --- | --- |
| Model | Qwen3.5 397B A17B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.019198 per run at the default inputs. $0.78 per 1M input tokens, $4.68 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen3.5 397B A17B in Grok Build

- Use Qwen3.5 397B A17B to investigate the failing tests in this repository. Trace the failure to the relevant code, make a focused repair, and run the affected tests.
- Use Qwen3.5 397B A17B to review the current diff for incorrect assumptions and missed edge cases. Report each finding with its file, line, and a concrete failure example.
- Use Qwen3.5 397B A17B to compare the requirements in this project's documentation with the implementation. List contradictions and missing behavior before proposing changes.
- Use Qwen3.5 397B A17B to plan a refactor of the most duplicated validation logic. Compare two approaches, preserve existing behavior, and identify the tests that would verify the refactor.
- Use Qwen3.5 397B A17B with temperature 0.6, top_p 0.95, top_k 20, and min_p 0 to analyze the repository's retry logic. Find a reproducible edge case and add a regression test before changing the code.

## How to set up Qwen3.5 397B A17B in Grok Build

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

### Use Spiral's MCP server

1. **Add the server**: Add `--scope project` to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

```bash
grok mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `grok` and run `/mcps`. Select Spiral and press `i`. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

3. **Check it**

```bash
grok mcp doctor spiral
```

### Use the Spiral skill

1. **Send Grok Build 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.5 397B A17B**: 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.5-397b-a17b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Grok Build finds Qwen3.5 397B A17B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok-build

## Qwen3.5 397B A17B tools and prices

- [Qwen: Qwen3.5 397B A17B](https://spiral.ai/tools/openrouter/qwen/qwen3.5-397b-a17b) (OpenRouter): Up to $0.015996 per run at the default inputs. $0.585 per 1M input tokens, $3.90 per 1M output tokens.

## Settings you can ask for

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

## What can you do with Qwen3.5 397B A17B in Grok Build?

Turn repository context into proposed repairs, implementation plans, and regression tests with Qwen3.5 397B A17B. Use concrete acceptance criteria and test the resulting changes.

### Repair a failing test

Use Qwen3.5 397B A17B to trace a failure through the relevant code, propose a focused patch, and identify a regression test.

### Compare implementation plans

Ask Qwen3.5 397B A17B to compare two technical approaches against explicit requirements, including edge cases and maintenance work.

### Review long specifications

Give Qwen3.5 397B A17B specification text and request conflicting requirements, unanswered questions, and supporting passages.

### Draft multilingual support replies

Ask Qwen3.5 397B A17B to draft replies in each customer's language using supplied policy text and a terminology guide.

### Check mathematical solutions

Use Qwen3.5 397B A17B to examine a proposed solution, identify unsupported steps, and check the final result against the original conditions.

### Plan tool actions

Give Qwen3.5 397B A17B a goal and available tool descriptions. Request an action sequence with prerequisites and a success check for each action.

### Triage recurring technical reports

Use Qwen3.5 397B A17B to compare incoming error reports, group related symptoms, and propose the next diagnostic question.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Grok Build guides](https://spiral.ai/integrations/grok-build)

## Qwen3.5 397B A17B in other agents

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

## More Grok Build guides

- [Qwen3-VL 8B Instruct](https://spiral.ai/integrations/grok-build/qwen3-vl-8b-instruct)
- [Qwen3.5 Plus](https://spiral.ai/integrations/grok-build/qwen3-5-plus)
- [Qwen3 VL 30B A3B Instruct](https://spiral.ai/integrations/grok-build/qwen3-vl-30b-a3b-instruct)
- [Qwen3.5 Plus 2026-04-20](https://spiral.ai/integrations/grok-build/qwen3-5-plus-2026-04-20)
- [Qwen3 VL 235B A22B Instruct](https://spiral.ai/integrations/grok-build/qwen3-vl-235b-a22b-instruct)
- [Qwen3.5-122B-A10B](https://spiral.ai/integrations/grok-build/qwen3-5-122b-a10b)

## Questions about Qwen3.5 397B A17B in Grok Build

**Can Grok Build use Qwen3.5 397B A17B?**

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Qwen3.5 397B A17B like any built-in tool.

**How much does Qwen3.5 397B A17B cost in Grok Build?**

Up to $0.019198 per run at the default inputs. $0.78 per 1M input tokens, $4.68 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok Build plan is separate.

**Do I need an OpenRouter account to use Qwen3.5 397B A17B in Grok Build?**

No. Spiral runs Qwen3.5 397B A17B 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.5 397B A17B in Grok Build?**

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

**Does Grok Build wait while Qwen3.5 397B A17B runs?**

Qwen3.5 397B A17B runs in the background. Grok Build starts the run, checks on it and gives you the text, json when it's ready.

**What is Qwen3.5 397B A17B good at?**

It is a useful choice for code generation, reasoning, and work that requires several tool calls. Examples include proposing bug fixes, comparing technical approaches, and planning a sequence of actions.

**What does 397B A17B mean?**

The model has 397 billion parameters in total, with 17 billion activated per forward pass.

**How much context does Qwen3.5 397B A17B support?**

Its native context is 262,144 tokens, shared by input and output. Leave room for the response when supplying long material.

**How long should I let it respond?**

Qwen recommends an output budget of 32,768 tokens for most queries. That budget is a starting recommendation, not a requirement to produce a long answer or a stated maximum.

**Which languages does Qwen3.5 support?**

Qwen reports support for 201 languages and dialects. Specify the target language, audience, and terminology in your request.

