Qwen4-35B-A3B Released: Features, Benchmarks & API
Explore Qwen4-35B-A3B features, benchmarks, API pricing, and local deployment. Learn how its 1M context and open weights fit coding and agent applications.
Qwen4-35B-A3B is Alibaba’s new open-weight multimodal model, released on December 4, 2026, under Apache 2.0. It combines a 35-billion-parameter main language model with approximately 3 billion parameters activated per token, a native million-token context window, and image and video understanding.
Its strongest appeal is the combination of competitive coding performance, low API prices, and flexible deployment. Developers can download the weights or call the official QwenCloud API. For teams comparing hosted alternatives through CometAPI, Qwen4-Max, MiniMax M4, and GLM-5.4 cover demanding reasoning, software engineering, and agent workflows.
Key Takeaways
Open weights: Qwen4-35B-A3B is available on Hugging Face and ModelScope under Apache 2.0.
The released model supports 1,048,576 tokens, with hosted request limits determined by the endpoint and thinking mode.
Reviewed for clarity, source attribution and current API terminology.
Native long context:
Multimodal input: It accepts text, images, and video and produces text, including code.
Competitive benchmarks: It leads Qwen3.8-Flash-Next on selected software engineering tests, while trailing it on several reasoning and agent evaluations.
Low API pricing: QwenCloud’s Singapore listing shows $0.06 per million input tokens and $0.36 per million output tokens.
Local deployment options: Quantized versions support single-GPU deployment, with memory requirements depending on the checkpoint, context length, and serving framework.
What Is Qwen4-35B-A3B?
Qwen4-35B-A3B is a multimodal Mixture-of-Experts model designed for coding, document analysis, visual understanding, and professional agent applications. Its release brings the Qwen4 architecture to developers who want access to downloadable weights and control over deployment.
The official announcement positions it for long-document analysis, enterprise knowledge bases, and edge deployment. This release follows the clues covered in our earlier Qwen4-35B-A3B leak analysis; official weights and API access are now available.
The main specifications are:
Specification
Qwen4-35B-A3B
License
Apache 2.0
Architecture
Multimodal Mixture of Experts
Main language model
35B parameters, approximately 3B activated per token
Additional modules
Approximately 20B n-gram embeddings and 2B multi-token prediction
Native context
1,048,576 tokens
Input
Text, images, and video
Output
Text and code
Deployment
Official hosted API and downloadable weights
The distinction between active parameters and stored weights matters. The “A3B” designation describes active computation, not the model’s total memory footprint. Qwen4-35B-A3B still needs access to the larger parameter set, including its additional embedding and prediction modules.
For deployment planning, use the checkpoint’s actual files and the serving framework’s memory guidance.
Qwen4-35B-A3B Features
The main Qwen4-35B-A3B features address practical application requirements: keeping more source material in context, interpreting visual evidence, completing multi-step tasks, and controlling reasoning effort.
Native Million-Token Context
Qwen4-35B-A3B supports a native context window of 1,048,576 tokens. Its architecture combines Gated DeltaNet linear attention with Qwen Sparse Attention to improve efficiency on long sequences.
This capacity is useful when a task needs information from several connected sources. A coding assistant can consider implementation files, documentation, and error logs together. A document assistant can compare requirements across reports without splitting every source into isolated requests.
Long context also gives an agent more room for conversation history and tool results. For production applications, select relevant material and leave enough capacity for the response. Filling the entire window increases processing work and can make important evidence harder to locate.
Image and Video Understanding
The model includes a vision encoder and supports image and video inputs alongside text. Applications can use Qwen4-35B-A3B to interpret charts, inspect screenshots, answer questions about visual documents, or summarize recorded demonstrations.
For example, a development assistant could receive a screenshot of a broken interface, compare it with the supplied component code, and propose a correction.
Video processing also depends on frame sampling and image resolution. The official model card documents settings for longer videos, including framework-specific preprocessing controls. These settings affect both visual detail and token consumption.
The documented output is text. Visual inputs can inform explanations and generated code.
Coding and Agent Workflows
Qwen highlights improvements in sustained task delivery and coding for frontend development, 3D modeling, and game development.
For software teams, Qwen4-35B-A3B can support workflows that combine repository analysis, code generation, debugging, and feedback from tests. A coding agent could inspect several connected files, propose a patch, run tests through an application-defined tool, and use the results to revise its implementation.
Your application provides the execution loop. The model proposes tool calls; your software executes permitted operations and returns the results. Those tools can search documentation, inspect files, run tests, or query an internal database.
Adjustable Reasoning
Qwen4-35B-A3B supports four reasoning effort levels in its reference configuration:
xhigh: Complex tasks where answer quality takes priority.
high: The default setting for general reasoning tasks.
low: Shorter reasoning for faster individual responses.
off: Disables thinking.
The reference configuration also enables preserve_thinking by default, allowing supported agent workflows to retain reasoning context between turns.
Choose reasoning effort around the task. Straightforward extraction may work well without thinking, while debugging an ambiguous failure may benefit from deeper analysis. Qwen’s documentation notes that lower effort can increase retries on difficult agent tasks, raising total completion time.
Efficient Local Inference
Qwen4-35B-A3B’s sparse architecture reduces active computation, while supported inference engines add memory and throughput optimizations. Quantized checkpoints make single-GPU deployment practical on suitable hardware.
This gives developers flexibility to run document assistants, coding tools, and internal applications in their own environment. Choose the checkpoint and context length around available GPU memory, host RAM, and concurrency. The local deployment section below provides a concrete FP8 memory example and links to supported serving recipes.
Qwen4-35B-A3B Benchmarks
The published Qwen4-35B-A3B benchmarks show a competitive model with clear differences between workloads. The most useful comparison is against Qwen3.8-Flash-Next and the dense Qwen3.8-27B.
Qwen4-35B-A3B Published Benchmark Results
The official benchmark chart reports the following selected scores. Higher is better within each row.
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
61
47.5
AutomationBench-AA
57.9
55.9
48.2
Qwen’s chart combines its own evaluations with cited external results. The accompanying notes identify Artificial Analysis as the source for several tests and Mercor for APEX-Agents.
What the Benchmark Results Mean
Qwen4-35B-A3B exceeds the dense Qwen3.8-27B across all six selected tests. It also scores above Qwen3.8-Flash-Next on DeepSWE, NL2Repo, and AutomationBench-AA, supporting its use in repository development and task automation.
Qwen3.8-Flash-Next remains ahead on Terminal Bench 4.1 and FrontierCode-AA 2.0, with a smaller lead on APEX-Agents. For demanding terminal agents and advanced coding tasks, include Flash-Next in your evaluation.
The results make Qwen4-35B-A3B worth testing when coding capability and deployment efficiency both matter. Use representative issues with executable tests, and check whether document-analysis answers identify the correct evidence and preserve important conditions.
For agent applications, track successful task completion, human corrections, retries, elapsed time, and total token use. These measurements show whether the model’s published strengths translate into practical value for your application.
Qwen4-35B-A3B Pricing
Qwen4-35B-A3B offers two cost models: metered hosted inference and self-managed deployment. API pricing is straightforward for a prototype; local economics depend on utilization and infrastructure.
Official API Rates
The QwenCloud Singapore pricing page lists the following rates as of December 4, 2026. All prices are in USD per million tokens.
Billing item
USD per million tokens
Standard input
$0.06
Output
$0.36
Cached input: implicit cache hits or explicit cache reads
$0.003
xplicit cache creation costs $0.075 per million tokens for a five-minute cache and $0.12 for a one-hour cache.
Caching is useful when requests repeatedly reuse substantial prefixes, such as system instructions, reference documents, or repository context. Include explicit cache creation charges when estimating savings. Built-in tools are billed separately.
API Cost Example
For an uncached request using 100,000 input tokens and 5,000 billable output tokens:
At the same usage per request, 1,000 requests would cost approximately $7.80, before tool charges.
For reasoning workflows, calculate costs using reported billable usage rather than counting only the visible answer.
Local Deployment Costs
Downloadable weights remove hosted per-token charges, but operating Qwen4-35B-A3B requires hardware, memory, electricity, and maintenance.
Self-hosting becomes attractive when you need control over data handling, customized inference, or sustained workloads that keep hardware busy. For intermittent usage, the listed API rates make hosted inference a practical starting point.
Compare both approaches using the cost per successfully completed task, including retries and engineering overhead.
How to Use Qwen4-35B-A3B
Choose an access route based on what you need to test. Hosted inference provides the fastest path to an application prototype, while downloaded weights give you control over the serving environment.
Call the Qwen4 API
Open the QwenCloud model page and use Try AI for an initial evaluation. For programmatic access, create an API key and use credentials for the same region as your endpoint.
The official hosted model ID is qwen4-35b-a3b. The example below uses QwenCloud’s Singapore OpenAI-compatible endpoint.
Install the OpenAI Python SDK:
pip install -U openai
Set your QwenCloud key as an environment variable:
export DASHSCOPE_API_KEY="YOUR_QWENCLOUD_API_KEY"
This Qwen4-35B-A3B API example enables thinking and streams the final answer:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DASHSCOPE_API_KEY"],
base_url=(
"https://ap-southeast-1.maas.qwencloudapi.com"
"/compatible-mode/v1"
),
)
stream = client.chat.completions.create(
model="qwen4-35b-a3b",
messages=[
{
"role": "user",
"content": (
"Write a Python function that merges two sorted lists. "
"Include tests for empty lists and duplicate values."
),
}
],
extra_body={"enable_thinking": True},
stream=True,
)
for chunk in stream:
if not chunk.choices:
continue
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)
print()
The example prints answer text. The hosted response can also include a separate reasoning_content field.
For a simple task that does not require thinking, change the extra body to {"enable_thinking": False}. Keep provider credentials on your backend.
Run Qwen4 Locally
Download the official weights from Hugging Face or ModelScope, and select a checkpoint format supported by your inference engine. The main repository contains Transformers-format artifacts, while compatible quantized releases provide additional deployment options.
Qwen recommends current versions of vLLM, SGLang, or TokenSpeed for production serving. The model card also links local options including Ollama, llama.cpp, and MLX.
The vLLM FP8 recipe documents approximately 39.7 GB of GPU-resident model weights and a 20.5 GB n-gram table offloaded to host RAM. Allow additional capacity for the runtime, KV cache, and concurrent requests. Follow the hardware-specific recipe to configure context length and the reasoning and tool parsers.
For custom integrations, follow Qwen’s tokenizer guidance. Its reference implementation distinguishes control tokens from ordinary text at the token-ID level.
Once your OpenAI-compatible local server is running on port 8000, use the following client example:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8000/v1",
api_key="EMPTY",
)
model_id = client.models.list().data[0].id
response = client.chat.completions.create(
model=model_id,
messages=[
{
"role": "user",
"content": "Explain this project's architecture in five points.",
}
],
)
print(response.choices[0].message.content)
The EMPTY key follows the local quickstart convention for a server without authentication. Add authentication before exposing the server beyond your local environment.
Qwen4-35B-A3B Alternatives on CometAPI
The following Qwen4-35B-A3B alternatives are available in CometAPI’s catalog. They provide useful comparison points when your application prioritizes flagship reasoning, extended engineering tasks, or coding performance.
Qwen4-Max for Complex Tasks
Qwen4-Max is the hosted flagship option within the same model family. It combines multimodal understanding, deep reasoning, tool calling, and structured outputs.
Consider it for research that must reconcile conflicting sources or engineering work involving several interacting constraints. It is a relevant alternative when you want a hosted flagship and do not need downloadable weights or control over local inference.
CometAPI lists its model identifier as qwen4-max.
MiniMax M4 for Long-Running Agents
MiniMax M4 targets long-context software engineering, autonomous agents, and multimodal workflows. Its million-token context accommodates substantial source material and extended tool interaction.
Consider it for multi-file development, debugging with repeated test feedback, and agents that need to maintain context across lengthy engineering tasks. These workloads align with its focus on sustained task execution.
Its listed token rates are higher than the QwenCloud rates shown above, so evaluate whether improvements in task completion justify the additional cost.
GLM-5.4 for Coding and Reasoning
GLM-5.4 is Z.ai’s flagship model for reasoning, coding, and complex task execution. Its Loop Transformer architecture reuses base layers across two iterations to increase computational depth.
It is a relevant candidate for code generation, debugging, and application development involving connected decisions. For example, a development assistant may need to interpret an error, trace its cause across modules, and propose a correction with supporting tests.
CometAPI lists its model ID as glm-5.4.
Access Alternatives Through CometAPI
Follow the CometAPI quickstart to create an account and generate an API key. The OpenAI-compatible base URL is https://api.cometapi.com/v1.
Set the key:
export COMETAPI_KEY="YOUR_COMETAPI_API_KEY"
The following example calls GLM-5.4:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["COMETAPI_KEY"],
base_url="https://api.cometapi.com/v1",
)
response = client.chat.completions.create(
model="glm-5.4",
messages=[
{
"role": "user",
"content": (
"Review this Python function for correctness. "
"Explain the bug and provide a corrected version:\n\n"
"def average(values):\n"
" return sum(values) / len(values)"
),
}
],
)
print(response.choices[0].message.content)
To compare Qwen4-Max on the same basic text request, change the model to qwen4-max. Configure reasoning, tools, and multimodal inputs according to each model’s supported parameters.
Qwen4-35B-A3B FAQ
These questions address the main deployment and model-selection decisions that arise when moving from the release announcement to an application.
Is Qwen4-35B-A3B Open Weight?
Yes. Qwen4-35B-A3B is available under Apache 2.0, with official weights on Hugging Face and ModelScope.
Can Qwen4 Run on One GPU?
Yes, with an appropriate checkpoint and sufficient memory. Qwen’s announcement specifically highlights quantized single-GPU deployment. GPU memory, host RAM, context length, and concurrency determine which configuration is practical.
How Does Qwen4 Differ From Qwen4-Max?
Qwen4-35B-A3B provides downloadable weights and a smaller sparse model for flexible deployment. Qwen4-Max is the hosted flagship. Choose between them based on task quality, operating cost, and whether you need to manage inference yourself.
Can Qwen4 Disable Thinking?
Yes. The reference configuration supports reasoning_effort="off", and QwenCloud’s example interface accepts enable_thinking=False. Framework APIs can use different parameter mappings; the current vLLM recipe uses "none" for its top-level reasoning-effort control.
Can the Qwen4 API Accept a Million Input Tokens?
The native context window is 1,048,576 tokens, but hosted input limits reserve capacity for generation. QwenCloud’s Singapore listing shows maximum input of 991K in non-thinking mode and 983K in thinking mode. Plan requests around the endpoint’s input and output limits.
Conclusion
Qwen4-35B-A3B is a strong candidate for developers who want open weights, multimodal input, long context, and low hosted inference costs. Its published results make it particularly relevant to repository assistance and automation, while its deployment options support both API prototypes and self-managed applications.
Start with the official API to measure task quality and token use. Explore local deployment when control over inference or sustained utilization justifies the infrastructure. For demanding hosted workloads, compare Qwen4-Max, MiniMax M4, and GLM-5.4 through CometAPI using the same tasks, tools, and success criteria.