Learn about the Qwen3.8-Flash model — its next-gen architecture, capabilities, specs, and how to get started
Qwen3.8-Flash features a next-generation architecture (an early preview of Qwen4) with 125B total parameters and only 6B activated per token. Trained at less than 1/9 the cost of Qwen3.7-Plus, it delivers frontier performance surpassing Claude Opus 4.6 in coding and office tasks. Natively supports 1M context, multimodal understanding of text, images, and video, and excels in agentic coding, long-horizon office automation, and multimodal understanding.
Model ID:
Next-gen architecture — Systematic upgrades along attention, residual, embedding, and optimization: GDN + QSA hybrid attention efficiently "remembers" and precisely "retrieves," achieving 7.6x speedup at 1M-token prefill; Gated Residual expands the information stream into 4 parallel branches; N-gram Embedding adds 51B parameters at near-zero extra compute; the Muon optimizer further improves convergence.
Agentic coding — SWE-bench Pro 62.5 (surpassing Claude Opus 4.6's 53.4), DeepSWE 1.1 at 58.7, SWE-bench Multilingual 81.0. Can autonomously build and iterate coding tools, independently completing real multi-day projects.
Office and tool use — CoWorkBench 73.9 (long-horizon office automation), JobBench 55.7 (professional tasks), Toolathlon 73.5 (real-world tool use). Covers hundreds of professional scenarios across legal, finance, and design, continuously planning and iterating through closed feedback loops over thousands of interactions.
Multimodal agent — AndroidWorld 84.5 (mobile use), MathVision 95.7 (visual math), LVBench 76.6 (long video understanding). Native visual understanding runs through the full plan-execute-verify flow, cross-page understanding of long documents and autonomously catching interface issues.
For full evaluation data, see the release blog.
For pricing details, see the Model Marketplace.
Thinking mode is enabled by default. Use
Qwen3.8-Flash understands images, videos, and text jointly, suited to agent scenarios where visual information informs decisions.
When thinking is enabled during function calling, the model first reasons about which tools to call and how to use returned results, then generates the answer; the response includes
Context cache caches the common prefix of overlapping requests, avoiding redundant computation to lower cost and speed up responses without affecting answer quality:
See Context cache for usage and billing details.
To use Qwen3.8-Flash in coding tools such as Claude Code, Codex, and OpenCode, we recommend subscribing to Token Plan — a single Credits-based subscription that supports Qwen3.8-Flash and many other models, more cost-effective than pay-as-you-go billing.
qwen3.8-flash
Highlights
Next-gen architecture — Systematic upgrades along attention, residual, embedding, and optimization: GDN + QSA hybrid attention efficiently "remembers" and precisely "retrieves," achieving 7.6x speedup at 1M-token prefill; Gated Residual expands the information stream into 4 parallel branches; N-gram Embedding adds 51B parameters at near-zero extra compute; the Muon optimizer further improves convergence.
Agentic coding — SWE-bench Pro 62.5 (surpassing Claude Opus 4.6's 53.4), DeepSWE 1.1 at 58.7, SWE-bench Multilingual 81.0. Can autonomously build and iterate coding tools, independently completing real multi-day projects.
Office and tool use — CoWorkBench 73.9 (long-horizon office automation), JobBench 55.7 (professional tasks), Toolathlon 73.5 (real-world tool use). Covers hundreds of professional scenarios across legal, finance, and design, continuously planning and iterating through closed feedback loops over thousands of interactions.
Multimodal agent — AndroidWorld 84.5 (mobile use), MathVision 95.7 (visual math), LVBench 76.6 (long video understanding). Native visual understanding runs through the full plan-execute-verify flow, cross-page understanding of long documents and autonomously catching interface issues.
For full evaluation data, see the release blog.
Capabilities and specs
| Parameter | Value | Parameter | Value |
|---|---|---|---|
| Context length | 1,000,000 tokens | Max thinking tokens | 262,144 tokens |
| Max input length | 991,808 tokens | Max output length | 131,072 tokens |
| Max input length (thinking mode) | 983,616 tokens | Max output length (thinking mode) | 131,072 tokens |
Quick start
Usage
Thinking
Thinking mode is enabled by default. Use reasoning_effort to control reasoning intensity:
| Value | Description | Best for |
|---|---|---|
xhigh (default) | Maximum reasoning depth | Math proofs, architecture design, complex coding |
medium | Balance reasoning and speed | Everyday development, doc generation |
low | Fast response | Simple Q&A, information extraction |
max and high are automatically mapped to xhigh. In thinking mode, temperature defaults to 0.6; smaller values are automatically adjusted to 0.6. To disable thinking entirely, set enable_thinking=false — the model answers directly and no longer returns reasoning_content.
Multimodal understanding
Qwen3.8-Flash understands images, videos, and text jointly, suited to agent scenarios where visual information informs decisions.
- Image understanding: pass
image_urlcontent and the model analyzes the image directly. Supports screenshot analysis, design restoration, document OCR, and more. High-resolution images are compressed by default; usevl_high_resolution_imagesandmax_pixelsto raise the visual token budget and preserve more detail. - Video understanding: pass a video URL and the model auto-extracts frames for analysis. Use
fpsto control frame rate, balancing detail capture and cost. Suited to content moderation, tutorial summaries, meeting notes, and more.
Function calling and thinking
When thinking is enabled during function calling, the model first reasons about which tools to call and how to use returned results, then generates the answer; the response includes reasoning_content before each tool call. In multi-turn tool calling, pass reasoning_content back together with the rest — omitting it reduces accuracy.
In multi-turn conversations, the model does not read reasoning_content from history by default; preserve_thinking is enabled by default for qwen3.8-flash, appending the reasoning to the next input.
See Thinking and Function calling for the full rules.
Context cache
Context cache caches the common prefix of overlapping requests, avoiding redundant computation to lower cost and speed up responses without affecting answer quality:
| Mode | Description |
|---|---|
| Implicit cache | Automatic; the system identifies and caches common prefixes, but hits are not guaranteed |
| Explicit cache | Manually created; guaranteed hit and lower latency |
| Session cache | Responses API only; add x-dashscope-session-cache: enable to the request header |