Back to Models

Qwen3 235B

qwenqwen/qwen3-235b

Alibaba's flagship Qwen3 model (235B total, 22B active, 128 experts, 8 active per token MoE). Dual thinking/non-thinking mode, strong reasoning, tools, and 100+ language support.

Qwen3-235B-A22B is Alibaba Qwen's open-weight flagship model, released on April 28, 2025 as part of the Qwen3 family. It is a Mixture-of-Experts (MoE) architecture with 235 billion total parameters and 22 billion activated per forward pass β€” giving it the reasoning depth of a frontier large model at the inference cost of a ~22B dense model. The architecture uses 94 transformer layers, 128 total experts with 8 activated per token, GQA attention (64Q / 4KV heads), and was pretrained on roughly 36 trillion tokens covering 119 languages and dialects. A key architectural innovation is the unified hybrid thinking system: a single model seamlessly switches between thinking mode (step-by-step chain-of-thought) and non-thinking mode (direct, low-latency responses) via the enable_thinking flag or /think / /no_think user-turn prefixes.

For TheRouter users, Qwen3-235B is the recommended choice when quality ceiling matters most: frontier-level math and coding reasoning, complex agentic workflows, and multilingual tasks across 119 languages. It matches or exceeds models such as DeepSeek-R1, o1, and Gemini-2.5-Pro on key benchmarks β€” notably 85.7 on AIME'24, 81.5 on AIME'25, and 70.7 on LiveCodeBench v5. Because only 22B parameters are active per inference step, it is significantly more cost-efficient than equivalently-sized dense models at this quality level. The non-thinking mode delivers Qwen2.5-Instruct-class speed and conciseness; the thinking mode adds deep reasoning for hard problems without requiring a separate model.

Best for
  • β€’ Frontier math and competition reasoning β€” 85.7 AIME'24, 81.5 AIME'25 in thinking mode; the go-to model for olympiad-level math, formal proofs, and quantitative reasoning pipelines
  • β€’ Complex coding and software engineering β€” 70.7 on LiveCodeBench v5 and 2,056 on CodeForces in thinking mode; ideal for algorithm design, code review, refactoring, and multi-file agentic coding tasks
  • β€’ Agentic workflows with tool use β€” 70.8 on BFCL v3; the model is optimized for multi-step tool calling and MCP-compatible agent chains in both thinking and non-thinking modes
  • β€’ Multilingual tasks at scale β€” native support for 119 languages and dialects; strong on multilingual instruction following, translation, and cross-lingual reasoning without switching models
  • β€’ Creative writing, role-playing, and multi-turn dialogue β€” non-thinking mode delivers Qwen2.5-class conversational quality; thinking mode enables richer narrative planning for long-form creative tasks
Reach for something else if
  • β€’ Low-latency, high-throughput text tasks β€” the MoE routing and large parameter count increase latency per token vs. smaller dense models; prefer qwen/qwen3-32b or qwen/qwen3-30b-a3b when speed matters more than peak quality
  • β€’ Vision or audio inputs β€” Qwen3-235B is a text-only model; for image or video understanding use qwen/qwen3-vl-32b or qwen/qwen3-vl-235b
  • β€’ Cost-sensitive batch jobs β€” at frontier quality tier pricing, high-volume batch workloads are better served by qwen/qwen3-30b-a3b (3B active, significantly cheaper) when quality requirements allow
Context Length
131K
Max Output
33K
Input Priceper 1M tokens
$0.756/ 1M tokens
Output Priceper 1M tokens
$3.02/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$0.756 / 1M tokens
Output$3.02 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

Specifications

Release date2025-04-28qwenlm.github.io β†—verified
ArchitectureMixture-of-Experts (MoE); 235B total parameters, 22B activated per token; 94 layers; 128 experts / 8 activated; GQA (64Q / 4KV heads)huggingface.co β†—verified
Native context length32,768 tokens natively; extendable to 131,072 tokens with YaRNhuggingface.co β†—verified
Thinking modesHybrid: thinking mode (chain-of-thought, enable_thinking=True) and non-thinking mode (enable_thinking=False); switchable per turn via /think and /no_think prefixeshuggingface.co β†—verified
Pretraining data~36 trillion tokens; 119 languages and dialects; includes synthetic math/code data from Qwen2.5-Math and Qwen2.5-Coderqwenlm.github.io β†—verified
Multilingual support119 languages and dialectsqwenlm.github.io β†—verified
LicenseApache 2.0qwenlm.github.io β†—verified
Training cutoffNot publicly disclosed for the base release; the -2507 variant targets July 2025 knowledgewww.mindstudio.ai β†—to verify

Benchmarks

BenchmarkDistributionScoreSource
AIME 2024
Thinking mode
85.7%arxiv.org β†—
AIME 2025
Thinking mode
81.5%arxiv.org β†—
LiveCodeBench v5
Thinking mode
70.7%arxiv.org β†—
CodeForces
Thinking mode
2056ratingarxiv.org β†—
BFCL v3
70.8%arxiv.org β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "qwen/qwen3-235b",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Non-thinking mode (fast, direct)

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen/qwen3-235b",
    "messages": [
      {"role": "user", "content": "/no_think Summarise the key changes in this diff: ..."}
    ]
  }'

More from qwen

Similar models

Cross-provider sibling models

News & changes

2025-05-14

Qwen3 technical report published on arXiv (2505.09388)

The Qwen Team released the full technical report covering the Qwen3 family's pretraining methodology (36T tokens, 3-stage), hybrid thinking architecture, post-training pipeline, and comprehensive benchmark results showing Qwen3-235B-A22B achieving 85.7 AIME'24, 81.5 AIME'25, 70.7 LiveCodeBench v5, and 70.8 BFCL v3 in thinking mode.

re-authored by TheRouterarxiv.org β†—
2025-04-28

Qwen3-235B-A22B released under Apache 2.0

Alibaba Qwen released Qwen3-235B-A22B and the full Qwen3 family on Hugging Face, ModelScope, and Kaggle under Apache 2.0, making the largest open-weight hybrid-thinking MoE model publicly available. The release included both pretrained base and post-trained instruct versions, alongside six dense models from 0.6B to 32B and the smaller Qwen3-30B-A3B MoE.

re-authored by TheRouterqwenlm.github.io β†—

Frequently asked

What is the difference between qwen/qwen3-235b thinking mode and non-thinking mode on TheRouter?

Thinking mode (/think prefix or enable_thinking=True) causes the model to generate a full chain-of-thought reasoning trace inside <think>...</think> tags before the final answer. This significantly improves accuracy on hard math, coding, and multi-step reasoning at the cost of higher token count, latency, and cost. Non-thinking mode (/no_think prefix) produces a direct, concise answer β€” faster and cheaper, appropriate for conversational, creative, and simpler task types. You can switch mode per turn in the same conversation.

How does Qwen3-235B compare to DeepSeek-R1 and o1?

Qwen3-235B-A22B achieves competitive or better scores than DeepSeek-R1 and o1 on math and coding benchmarks (85.7 AIME'24, 81.5 AIME'25, 70.7 LiveCodeBench v5) in thinking mode. The Qwen team positioned it as directly comparable to Grok-3 and Gemini-2.5-Pro as well. The key advantage over closed models is Apache 2.0 open-weight access and the hybrid thinking switch, which allows the same model to serve fast non-reasoning queries without a separate deployment.

re-authored by TheRouterarxiv.org β†—
Can I use Qwen3-235B from Cursor, Cline, or an OpenAI-compatible SDK?

Yes. Set your client's base URL to https://api.therouter.ai/v1, configure your TheRouter API key, and set the model to qwen/qwen3-235b. Streaming and tool calling are supported. To activate thinking mode, prefix user messages with /think; for direct responses use /no_think. Clients that send plain text with no prefix will use the model's default mode β€” check TheRouter docs for the current default.

Why does Qwen3-235B only activate 22B parameters if it has 235B total?

Qwen3-235B is a Mixture-of-Experts model: its feed-forward layers contain 128 expert sub-networks, of which only 8 are selected (via a learned routing mechanism) for each token during inference. The remaining 120 experts are dormant for that token. This means the compute cost per token is equivalent to roughly a 22B dense model, while the model's total capacity β€” spread across all 128 experts β€” reaches 235B parameters. The result is frontier reasoning quality at dramatically lower inference cost compared to a hypothetical 235B dense model.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateqwenlm.github.io β†—2026-06-09verified
Architecturehuggingface.co β†—2026-06-09verified
Native context lengthhuggingface.co β†—2026-06-09verified
Thinking modeshuggingface.co β†—2026-06-09verified
Pretraining dataqwenlm.github.io β†—2026-06-09verified
Multilingual supportqwenlm.github.io β†—2026-06-09verified
Licenseqwenlm.github.io β†—2026-06-09verified
Training cutoffwww.mindstudio.ai β†—2026-06-09to verify
AIME 2024arxiv.org β†—2026-06-09verified
AIME 2025arxiv.org β†—2026-06-09verified
LiveCodeBench v5arxiv.org β†—2026-06-09verified
CodeForcesarxiv.org β†—2026-06-09verified
BFCL v3arxiv.org β†—2026-06-09verified
Qwen3 technical report published on arXiv (2505.09388)arxiv.org β†—2026-06-09verified
Qwen3-235B-A22B released under Apache 2.0qwenlm.github.io β†—2026-06-09verified
What is the difference between qwen/qwen3-235b thinking mode and non-thinking mode on TheRouter?huggingface.co β†—2026-06-09to verify
How does Qwen3-235B compare to DeepSeek-R1 and o1?arxiv.org β†—2026-06-09to verify
Can I use Qwen3-235B from Cursor, Cline, or an OpenAI-compatible SDK?huggingface.co β†—2026-06-09to verify
Why does Qwen3-235B only activate 22B parameters if it has 235B total?huggingface.co β†—2026-06-09to verify
Help & contact