[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Qwen3.8 Max (0902) (batch)](https://spiral.ai/integrations/grok/qwen3-8-max-0902-batch)

# How to Use Qwen3.8 Max (0902) (batch) in Grok

Qwen3.8 Max 0902 suits complex coding projects and tasks that require several rounds of work. Compared with the original Qwen3.8 Max, Alibaba reports stronger engineering-scale coding and coordination across tools.

|  |  |
| --- | --- |
| Model | Qwen3.8 Max (0902) (batch) |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.018424 per run at the default inputs. $1.495 per 1M input tokens, $4.485 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Qwen3.8 Max (0902) (batch) in Grok

- Use Qwen3.8 Max 0902 to compare the two specifications pasted below. List contradictions, quote the relevant passages, and identify the decisions needed before implementation.
- Use Qwen3.8 Max 0902 to turn the research excerpts below into a 600-word brief. Separate supported findings, disagreements, and open questions, keeping each source label.
- Use Qwen3.8 Max 0902 to extract action items from the meeting transcript below as JSON. Include the task, owner, deadline, and supporting quotation; use null for missing information.
- Use Qwen3.8 Max 0902 to review this proposed migration. Use deeper reasoning to identify dependencies, failure conditions, and checks that would establish completion.
- Use Qwen3.8 Max 0902 to inspect the workflow history below. Find the first unsupported decision, explain its downstream effect, and recommend the next step using recorded evidence.

## How to set up Qwen3.8 Max (0902) (batch) in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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.8 Max (0902) (batch)**: 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.8-max-0902:batch",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Grok finds Qwen3.8 Max (0902) (batch) on Spiral, shows the price and runs it.

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

## Qwen3.8 Max (0902) (batch) tools and prices

- [Qwen: Qwen3.8 Max (0902) (batch)](https://spiral.ai/tools/openrouter/qwen/qwen3.8-max-0902%3Abatch) (OpenRouter): Up to $0.018424 per run at the default inputs. $1.495 per 1M input tokens, $4.485 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.8 Max (0902) (batch) in Grok?

Turn detailed source material into a decision brief or structured record. Give Qwen3.8 Max 0902 the evidence and the required deliverable so the analysis has a clear target.

### Fix bugs across several modules

Trace a reported failure through related code, reproduce it, and revise the fix using test results.

### Plan a large refactor

Map dependencies, identify behavior that must stay intact, and divide the changes into reviewable steps.

### Implement features from requirements

Turn a detailed specification into code and check the implementation against explicit acceptance criteria.

### Investigate failing tests

Compare failures with the implementation, separate root causes from symptoms, and propose targeted corrections.

### Compare long specifications

Identify conflicting requirements and produce a decision list with supporting passages.

### Prepare research briefs

Organize supplied research into findings, disagreements, and unanswered questions with source references.

### Extract structured records

Turn supplied text into JSON records with explicit rules for missing values and supporting evidence.

### Review multi-step workflows

Inspect an execution history, identify the failed decision, and recommend a next action based on recorded results.

## Overview

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

## Qwen3.8 Max (0902) (batch) in other agents

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

## More Grok guides

- [Qwen3.8 Max (0902)](https://spiral.ai/integrations/grok/qwen3-8-max-0902)
- [Qwen3.8 Max Prime](https://spiral.ai/integrations/grok/qwen3-8-max-prime)
- [Qwen3.8 Flash](https://spiral.ai/integrations/grok/qwen3-8-flash)
- [Qwen3.8 Omni Flash](https://spiral.ai/integrations/grok/qwen3-8-omni-flash)
- [Qwen3.8 27B (batch)](https://spiral.ai/integrations/grok/qwen3-8-27b-batch)
- [Qwen4 Max](https://spiral.ai/integrations/grok/qwen4-max)

## Questions about Qwen3.8 Max (0902) (batch) in Grok

**Can Grok use Qwen3.8 Max (0902) (batch)?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Qwen3.8 Max (0902) (batch) like any built-in tool.

**How much does Qwen3.8 Max (0902) (batch) cost in Grok?**

Up to $0.018424 per run at the default inputs. $1.495 per 1M input tokens, $4.485 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 plan is separate.

**Do I need an OpenRouter account to use Qwen3.8 Max (0902) (batch) in Grok?**

No. Spiral runs Qwen3.8 Max (0902) (batch) 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.8 Max (0902) (batch) in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Qwen3.8 Max (0902) (batch) runs?**

Qwen3.8 Max (0902) (batch) runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.

**How does Qwen3.8 Max 0902 differ from the original Qwen3.8 Max?**

Alibaba describes it as an updated snapshot focused on more complex coding projects, longer autonomous development tasks, and better coordination across tools.

**How much text can Qwen3.8 Max 0902 handle?**

QwenCloud lists a 1 million token context window and a maximum output of 128k tokens. Treat these as separate limits when planning a long analysis or report.

**When is thinking useful with Qwen3.8 Max 0902?**

Use thinking for work that requires choosing tools, interpreting their results, and deciding what to do next. A useful example is investigating a bug, testing a proposed fix, and revising it from the test results.

**Does valid JSON guarantee consistent results?**

No. JSON Object mode can return different key names or value types across requests; QwenCloud recommends JSON Schema mode when the structure must stay fixed.

**How should I prompt Qwen3.8 Max 0902 for a complex task?**

Give it a concrete deliverable, relevant evidence, constraints, and a clear definition of done. For coding, ask it to use test results to revise its work and report what it actually verified.

