Qwen4-35B-A3B is Alibaba’s first open-weight Qwen4 model, released on December 4, 2026 under Apache 2.0. It’s a native multimodal mixture-of-experts (MoE) model with 35B total parameters and 3B active per token, a 1,048,576-token native context, and weights you can download, quantize and run on a single GPU. It’s also on the Qwen Cloud API as qwen4-35b-a3b at $0.06 per 1M input tokens.
What is Qwen4-35B-A3B?
Qwen4-35B-A3B is a 35B-parameter sparse MoE language model with a vision encoder, so it reads text, images and video and writes text. Only about 3B parameters run for each token, which keeps it fast and cheap to serve. It’s the first release in what Qwen calls the “Qwen4 open model series,” and the Hugging Face model card lists it under the Apache 2.0 license.

The name tells you the shape: 35B total parameters, A3B for 3B activated. The launch post on X pitches it for agent work: long-document analysis, enterprise knowledge bases and edge deployment.
Qwen4-35B-A3B specs at a glance
Every number below comes from the model card or the Qwen Cloud model page.
| Spec | Value |
|---|---|
| Total parameters | 35B, plus 20B n-gram embedding and 2B MTP |
| Active parameters | 3B per token |
| Experts | 256, with 8 routed + 1 shared active |
| Layers | 40 |
| Native context | 1,048,576 tokens |
| Inputs | Text, image, video |
| License | Apache 2.0 |
| API model id | qwen4-35b-a3b |
| API max output | 128K (256K in thinking mode) |
| API price (Singapore region) | $0.06 input, $0.36 output per 1M tokens |
How Qwen4-35B-A3B works
Qwen4-35B-A3B mixes two kinds of attention instead of standard attention everywhere. That’s how it holds a million tokens without a huge memory bill.
The 40 layers repeat one pattern 10 times: three Gated DeltaNet layers, then one Qwen Sparse Attention layer. Each of those is followed by an MoE layer.

Here’s what each part does:
- Gated DeltaNet is linear attention. Its memory stays flat as the context grows, so three of every four layers don’t pay the usual cost of long prompts.
- Qwen Sparse Attention looks back at a selected budget of 512 blocks or 2,048 tokens instead of every token. A small indexer picks what to attend to.
- MoE layers hold 256 small experts. A router sends each token to 8 of them, plus 1 shared expert that always runs. That’s where “3B active” comes from.
- N-gram embedding adds 10 million bigram and trigram entries at layer 2, giving the model phrase-level context cheaply.
- MTP (multi-token prediction) is one extra layer that predicts ahead for faster decoding.
The card credits this hybrid with “faster inference and a drastically reduced cache footprint.” Qwen4-Max is built on the same architecture.
Thinking control
The model thinks by default. You steer it with reasoning_effort:
xhighfor complex tasks where quality matters mosthigh, the default, for common taskslowfor fast answers with minimal thinkingoffto disable thinking (same asenable_thinking=False)
preserve_thinking is on by default. The card warns that low effort can cost more on agent tasks, because thin analysis leads to retries.
Recommended sampling: temperature=1.0, top_p=0.95, top_k=20 in thinking mode, and temperature=0.7, top_p=0.80, top_k=20, presence_penalty=1.5 without thinking.
How Qwen4-35B-A3B relates to Qwen4-Max and Qwen3.8
Qwen4-35B-A3B is the small, open sibling of Qwen4-Max. Max is the API-only flagship of the Qwen4 series. The 35B model uses the same architecture and training techniques, but you can download it.
| Model | Weights | Role |
|---|---|---|
| Qwen4-Max | API only | Flagship for long-horizon agent work |
| Qwen4-35B-A3B | Open, Apache 2.0 | First open Qwen4 model, runs locally |
| Qwen3.8-Flash-Next | Not stated on the card | Earlier model that introduced the architecture |
| Qwen3.8-27B | Open | Previous dense model at a similar size |
If you run Qwen3.8-27B locally, this is its successor. For the head-to-head, read Qwen4-35B-A3B vs Qwen3.8-27B.
Qwen’s claims vs what the chart shows
The launch post makes two claims: it “outperforms dense Qwen3.8-27B” and “matches Qwen3.8-Flash-Next at ~1/3 the size.” The card has no score table, only a benchmark chart. Here are numbers read off that chart:
| Benchmark | Qwen4-35B-A3B | Qwen3.8-Flash-Next | Qwen3.8-27B |
|---|---|---|---|
| DeepSWE v1.1 | 61.8 | 58.7 | 42.2 |
| Terminal Bench 4.1 | 21.2 | 24.2 | 5.6 |
| FrontierCode-AA 2.0 | 16.1 | 27.1 | 14.9 |
| NL2Repo | 51.7 | 48.1 | 42.3 |
| APEX-Agents v1.1 | 59.0 | 61.0 | 47.5 |
| AutomationBench-AA | 57.9 | 55.9 | 48.2 |
| GPQA | 86.9 | 91.7 | 89.2 |
| Chartography | 27.8 | 24.6 | 27.8 |
| VideoIndex | 52.9 | 51.4 | 51.9 |
Per the card, Terminal Bench, FrontierCode-AA and AutomationBench-AA scores are cited from Artificial Analysis, and APEX-Agents from the Mercor leaderboard. Work360 is Qwen’s own benchmark, and the card names no source for the others.
What the numbers say:
- “Beats Qwen3.8-27B” mostly holds. It wins on agent and coding tests, with big gaps on Terminal Bench (21.2 vs 5.6) and DeepSWE (61.8 vs 42.2). It ties on Chartography and trails on GPQA.
- “Matches Flash-Next” is generous. It leads on DeepSWE, NL2Repo and AutomationBench, but trails on FrontierCode-AA (16.1 vs 27.1), Terminal Bench and GPQA.
These are vendor numbers, so test the model on your own tasks before you switch production work.
Where to get Qwen4-35B-A3B
You have three routes: the managed API, the full weights on your own server, or a quantized build on one GPU.

1. Qwen Cloud API. The model id is qwen4-35b-a3b. The Singapore-region page lists $0.06 input and $0.36 output per 1M tokens, $0.003 for cached input, a 5,000,000 tokens-per-minute limit and a 1M-token free quota on the model page. It speaks the OpenAI Chat Completions and Responses formats, plus an Anthropic-compatible API. See the Qwen4-35B-A3B API guide for setup, and how to use Qwen4-35B-A3B for free for the $0 routes.
2. Full weights. Download from Hugging Face or ModelScope and serve with vLLM, SGLang or TokenSpeed. The card links a vLLM recipe and says dedicated engines are “strongly recommended” for production.
3. Quantized, local. Unsloth’s GGUF repo has quants from 1-bit to 8-bit for llama.cpp, and the card also points to Ollama, mlx-vlm and LiteRT-LM. The step-by-step is in how to run Qwen4-35B-A3B locally.
One catch for local users: Qwen ships its own tokenizer reference implementation (it needs tiktoken and trust_remote_code=True). The Jinja chat template in tokenizer-compat/ is for backward compatibility only and can produce different token IDs, so use a llama.cpp or Ollama build that already supports Qwen4.
Let your coding agent check Qwen4-35B-A3B with Apidog CLI
Before you wire Qwen4-35B-A3B into an app, confirm the routes your code calls actually answer. Your coding agent already runs shell commands, so it can drive Apidog CLI to build the test, run it and read the result.
Set it up once:
npm install -g apidog-cli@latest
apidog login --with-token <YOUR_TOKEN>
Or tell the agent: “Read https://apidog.com/apidog-cli-installation-guide.md and set up Apidog CLI.” Then give Claude Code, Codex or OpenCode one prompt:
In Apidog project <PROJECT_ID>, create a test scenario called "Qwen4-35B-A3B preflight".
Step 1: GET the Hugging Face model API for Qwen/Qwen4-35B-A3B and assert 200 and an apache-2.0 license.
Steps 2 and 3: POST to the Qwen Cloud Chat Completions and Responses routes with model
qwen4-35b-a3b and no API key, and assert a 401 whose body asks for a key.
Validate the payload against the CLI schema, run the scenario and tell me which steps fail.
The agent reads the payload shape, validates it, creates the scenario and runs it:
apidog cli-schema get test-scenario-update
apidog cli-schema validate test-scenario-update --file steps.json
apidog test-scenario create --project <PROJECT_ID> --name "Qwen4-35B-A3B preflight" --folder-id 0
apidog test-scenario update <SCENARIO_ID> --project <PROJECT_ID> --file steps.json
apidog run -t <SCENARIO_ID> --project <PROJECT_ID> -e <ENV_ID> -r cli
Here’s that run on a sandbox project. All 6 assertions pass: the weights are public, and both Qwen Cloud routes refuse a call with no key.


Next, ask the agent to save your base URL and key in an Apidog environment and add a real call that asserts status 200, a non-empty choices array and a usage object. The same scenario works against a local vLLM or llama.cpp server: swap the base URL to http://localhost:8000/v1 and keep the assertions. For more agent setups, read Apidog CLI in Claude Code.
Once a team has several of these agent runs going, Sharkly lets you hand them out as tasks on a shared board, where each agent runs on your own machine with your own Claude Code, Codex or OpenCode plan and you review what it ships. It’s free to start.
Who should care about Qwen4-35B-A3B?
- Local and self-hosted builders. A 3B-active model with 1M context that runs on one GPU when quantized is the main draw.
- Teams on Qwen3.8-27B. Qwen’s own chart shows clear gains on agent and coding tests at a similar footprint.
- Cost-sensitive API users. At $0.06 input per 1M tokens, it’s a cheap option for long-document and knowledge-base work.
- Not ideal for hard reasoning benchmarks. It trails Qwen3.8-Flash-Next on GPQA and FrontierCode-AA, and Qwen4-Max remains the flagship.
FAQ
Is Qwen4-35B-A3B open source? The weights are open under Apache 2.0 on Hugging Face and ModelScope, so you can use, modify and ship it commercially under that license.
How many parameters does Qwen4-35B-A3B activate? 3B per token, out of 35B total. The model card lists the 20B n-gram embedding and 2B MTP layer separately.
What’s the context window of Qwen4-35B-A3B? 1,048,576 tokens natively. On Qwen Cloud, max input is 991K tokens and max output is 128K, or 256K in thinking mode.
How much does the Qwen4-35B-A3B API cost? On the Qwen Cloud Singapore-region page on December 4, 2026: $0.06 per 1M input tokens and $0.36 per 1M output tokens, with a 1M-token free quota.
Can I run Qwen4-35B-A3B on one GPU? Qwen says yes when quantized. Unsloth publishes GGUF quants from 1-bit to 8-bit; memory needs depend on the quant and context length you pick.



