[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Qwen3.8 27B (batch)](https://spiral.ai/integrations/codex/qwen3-8-27b-batch)

# How to Use Qwen3.8 27B (batch) in Codex

Qwen3.8 27B suits code repair and multi-step office work. Compared with Qwen3.6 27B, it improves coding and office productivity across text and visual tasks.

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

## Prompts to try with Qwen3.8 27B (batch) in Codex

- Use Qwen3.8 27B to inspect the failing tests in this project, trace the cause, and propose the smallest justified patch. Run the relevant tests and report unresolved failures.
- Use Qwen3.8 27B to review the current diff against the project's acceptance criteria. List concrete behavior changes and missing regression checks.
- Use Qwen3.8 27B to turn the requirements in this project's issue notes into an implementation plan. Identify affected files, dependencies, and a verification step for each change.
- Use Qwen3.8 27B to refactor duplicated validation in this project while preserving behavior. Start with temperature 1.0, top_p 0.95, and top_k 20; verify the result with relevant tests.
- Use Qwen3.8 27B to compare the project's public interfaces with its documentation. Draft corrections for confirmed mismatches and identify claims that need further checking.

## How to set up Qwen3.8 27B (batch) in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 27B (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-27b:batch",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Codex finds Qwen3.8 27B (batch) on Spiral, shows the price and runs it.

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

## Qwen3.8 27B (batch) tools and prices

- [Qwen: Qwen3.8 27B (batch)](https://spiral.ai/tools/openrouter/qwen/qwen3.8-27b%3Abatch) (OpenRouter): Up to $0.010658 per run at the default inputs. $0.208 per 1M input tokens, $2.60 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.8 27B (batch) in Codex?

Qwen3.8 27B can help turn project requirements into code changes and verification plans. Give it a bounded task with explicit acceptance criteria.

### Repair a reproducible bug

Use Qwen3.8 27B to trace a failing example, propose a focused patch, and explain how to check the fix.

### Write tests from requirements

Ask Qwen3.8 27B to turn acceptance criteria into tests covering expected behavior, invalid input, and boundary conditions.

### Plan a code migration

Give Qwen3.8 27B the current behavior and target requirements, then request an ordered migration plan with checks at each stage.

### Review a proposed refactor

Have Qwen3.8 27B compare the original and revised code, identify behavior changes, and suggest regression checks.

### Compare document revisions

Ask Qwen3.8 27B to identify changed requirements, conflicting statements, and decisions that need an owner's review.

### Turn meeting notes into actions

Use Qwen3.8 27B to draft an action register, preserving stated owners and deadlines while marking missing details.

### Draft a project status brief

Give Qwen3.8 27B dated updates and request a brief covering completed work, blockers, dependencies, and next decisions.

## Overview

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

## Qwen3.8 27B (batch) in other agents

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

## More Codex guides

- [Qwen3.8 27B](https://spiral.ai/integrations/codex/qwen3-8-27b)
- [Qwen3.8 Flash](https://spiral.ai/integrations/codex/qwen3-8-flash)
- [Qwen3.8 2.4T A95B](https://spiral.ai/integrations/codex/qwen3-8-2-4t-a95b)
- [Qwen3.8 Max (0902)](https://spiral.ai/integrations/codex/qwen3-8-max-0902)
- [Qwen3.7 Plus](https://spiral.ai/integrations/codex/qwen3-7-plus)
- [Qwen3.8 Max (0902) (batch)](https://spiral.ai/integrations/codex/qwen3-8-max-0902-batch)

## Questions about Qwen3.8 27B (batch) in Codex

**Can Codex use Qwen3.8 27B (batch)?**

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

**How much does Qwen3.8 27B (batch) cost in Codex?**

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

**Do I need an OpenRouter account to use Qwen3.8 27B (batch) in Codex?**

No. Spiral runs Qwen3.8 27B (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 27B (batch) in Codex?**

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

**Does Codex wait while Qwen3.8 27B (batch) runs?**

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

**What is Qwen3.8 27B useful for?**

Start with code repair, implementation planning, and office tasks that require several steps. Qwen reports improvements over Qwen3.6 27B in coding and office productivity.

**How much context can Qwen3.8 27B handle?**

Its native context is 262,144 tokens, with extension to 1,000,000 tokens. Treat the larger figure as an extended configuration rather than the native limit.

**How long can a Qwen3.8 27B answer be?**

Qwen recommends allowing up to 131,072 final-response tokens when using an extended 1M context and separate reasoning and answer limits. That recommendation is conditional, rather than a universal output allowance.

**Does Qwen3.8 27B have to reason before answering?**

It supports both adaptive thinking and direct responses without thinking. Try direct responses for straightforward extraction and thinking for tasks that require several decisions.

**Which sampling settings should I start with?**

For thinking tasks, start with the released configuration: temperature 1.0, top_p 0.95, and top_k 20. Compare results on representative tasks before changing those settings.

