What Is Qwen4-35B-A3B? Alibaba's First Open-Weight Qwen4 Model

Qwen4-35B-A3B is Alibaba's first open-weight Qwen4 model: a multimodal MoE with 35B total and 3B active parameters, a 1M-token context and Apache 2.0 weights. Here's how it works, what its benchmarks show and where to get it.

INEZA Felin-Michel

INEZA Felin-Michel

4 December 2026

What Is Qwen4-35B-A3B? Alibaba's First Open-Weight Qwen4 Model

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

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.

Schema of Qwen4-35B-A3B: text, image and video enter through a vision encoder and n-gram embedding, then pass through 10 repeated blocks of three Gated DeltaNet layers and one Qwen Sparse Attention layer, each followed by a mixture-of-experts layer that activates 8 routed plus 1 shared expert out of 256, ending in the output head and an MTP layer

Here’s what each part does:

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:

  1. xhigh for complex tasks where quality matters most
  2. high, the default, for common tasks
  3. low for fast answers with minimal thinking
  4. off to disable thinking (same as enable_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:

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.

Schema of the three ways to run Qwen4-35B-A3B: the Qwen Cloud API with model id qwen4-35b-a3b, the full weights on Hugging Face and ModelScope served with vLLM, SGLang or TokenSpeed, and quantized GGUF files from Unsloth run with llama.cpp or Ollama on a single 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.

Apidog CLI running the Qwen4-35B-A3B preflight on a sandbox project: Hugging Face returns 200 with an apache-2.0 license, the Qwen Cloud Chat Completions and Responses routes return 401 without a key, 6 of 6 assertions pass
Sequence: you give your coding agent one prompt, the agent validates and creates a test scenario with Apidog CLI, Apidog runs it, Hugging Face returns 200 with an apache-2.0 license, both Qwen Cloud routes return 401 without a key, and the agent reports 6 of 6 assertions passed

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?

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.

Explore more

Qwen4-35B-A3B vs Qwen3.8-27B: Is the MoE Actually Better?

Qwen4-35B-A3B vs Qwen3.8-27B: Is the MoE Actually Better?

Qwen4-35B-A3B beats the dense Qwen3.8-27B on 10 of 12 benchmarks on Qwen's chart, decodes faster with 3B active parameters and costs about 8x less on Qwen Cloud. The catch is a bigger download. Here's how they compare and which to pick.

4 December 2026

What Is OpenAI mcpfs? M

What Is OpenAI mcpfs? M

OpenAI mcpfs mounts MCP servers as a read-only Linux filesystem: resources and skills become files, tools become shell commands. Here is how it works, how to mount it, its limits, and how to pair it with Apidog CLI.

3 December 2026

What Is GPT-6.2 Cyber? OpenAI's New Security Model

What Is GPT-6.2 Cyber? OpenAI's New Security Model

GPT-6.2 Cyber is OpenAI's newest cybersecurity model, in early access through the API, Codex and Amazon Bedrock. What changed from GPT-6 Cyber, who qualifies, the $25M Bedrock credit program and how to get your integration ready.

2 December 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

What Is Qwen4-35B-A3B? Alibaba's First Open-Weight Qwen4 Model