Qwen4-35B-A3B API

Coming Soon
qwen/qwen4-35b-a3b
by Qwen (Alibaba)

Qwen4-35B-A3B is a multimodal LLM with 35B total parameters (3B active), 1M context, and hybrid attention. Apache-2.0, supports text and image input.

Coming Soon
This model is coming soon and is not available for API calls yet.

Qwen4-35B-A3B API Background

Overview

Qwen4-35B-A3B is a state-of-the-art multimodal causal language model developed by Qwen (Alibaba), featuring a hybrid linear attention architecture with 35 billion total parameters of which only 3 billion are active per token. It supports text and image input and generates text output, with a native context length of 1,048,576 tokens. The model is open-weights under Apache 2.0 and is designed for long-horizon agentic workflows, professional tasks, code generation, and frontend/tool-driven 3D and game creation. Its efficiency stems from a combination of GatedDeltaNet linear attention, QwenSparseAttention, a 20-billion-parameter n-gram embedding layer, and a 2-billion-parameter multi-token prediction module, delivering high performance at reduced compute and memory costs.

Development History

Qwen4-35B-A3B represents the next generation in the Qwen series, building on prior innovations in sparse attention and efficient parameter activation. The exact release date is not provided, but the model is currently in the coming_soon status for API deployment. It was released as a post-trained model with a vision encoder, emphasizing both multimodal understanding and efficient inference. The Strata inference engine, an independent third-party MIT-licensed runtime, has developed quantization-aware packs based on the official weights, enabling deployment on consumer-grade hardware. The model's design and tooling reflect a focus on making frontier-level capabilities accessible for real-world applications, particularly in agentic and code-intensive domains.

Key Innovations

  • Hybrid linear attention combining GatedDeltaNet and QwenSparseAttention with 256 experts (8 routed, 1 shared active), enabling efficient long-context processing.
  • A unique 20-billion-parameter n-gram embedding layer that reduces compute and accelerator memory requirements, complemented by a 2-billion-parameter multi-token prediction module for faster generation.
  • Apache 2.0 open-weights licensing with a vision encoder for multimodal input, supporting up to 1M context tokens, and a streamlined architecture that activates only 3B parameters per token.

Qwen4-35B-A3B API Technical Specifications

Architecture

Qwen4-35B-A3B is a post-trained multimodal causal language model with a vision encoder. It employs a hybrid linear attention mechanism that alternates between GatedDeltaNet layers and QwenSparseAttention layers, spanning 40 layers with a mixture-of-experts (MoE) design containing 256 experts total, of which 8 are routed and 1 is shared, active per token. The model also incorporates a bigram/trigram lookup layer (the n-gram embedding) to enhance efficiency. Its architecture supports a native context length of 1,048,576 tokens, making it suitable for very long documents and conversations.

Parameters

Total parameters: 35 billion, with only 3 billion active per token. This count includes the main language model (35B) and an additional 20B-parameter n-gram embedding layer plus a 2B-parameter multi-token prediction (MTP) module, resulting in a combined parameter footprint of approximately 57B. However, the active compute per token is dominated by the 3B active experts and the n-gram/MTP layers.

Capabilities

  • Text and image understanding with text output (multimodal input).
  • Long-horizon agentic workflows and professional task automation.
  • Code generation and frontend/tool-driven 3D game creation.
  • Efficient inference on resource-constrained hardware via Strata quantization packs.

Limitations

  • Not designed for native audio generation; only text output is supported.
  • The Strata quantization packs are independently developed and may not guarantee identical performance to the original model; vision pack (0.89GB) is optional and not yet measured with the packs, so vision parity is unverified.

Qwen4-35B-A3B API Performance

Strengths

  • Superb long-context handling with 1M token native context, ideal for large codebases, lengthy documents, and extended multi-turn interactions.
  • High cost-efficiency due to sparse activation and n-gram embeddings, enabling significantly reduced inference compute and memory compared to dense models of similar size.
  • Strong quantization support via Strata packs (Compact, Balanced, Ultra) that allow deployment on GPUs with 12GB to 32GB VRAM, with minimal quality loss as indicated by next-token agreement tests.

Real-world Effectiveness

The Strata engine provides practical deployment options: Compact pack (11.49GB, recommended 12GB VRAM) achieves 89.288% next-token agreement with the original model, Balanced (22.64GB, 24GB VRAM) reaches 96.788%, and Ultra (28.08GB, 32GB VRAM) achieves 97.622%. These figures reflect next-token prediction consistency, not benchmark accuracy or task quality, but indicate that the Ultra pack retains most of the original model's behavior. Note that each pack requires extra PLE lookup memory (11.52GB for Q4, 21.76GB for Q8) in system RAM or disk, plus runtime KV cache, so effective VRAM planning is essential. Real-world performance will vary by workload; testing on target tasks is advised.

Qwen4-35B-A3B API When to Use

Scenarios

  • You have a long-horizon agentic task that requires maintaining context across thousands of steps or tokens, such as complex web automation, multi-stage research, or tool orchestration. Qwen4-35B-A3B's 1M context and efficient attention make it ideal for these scenarios, preventing context fragmentation and reducing latency in API deployments.
  • You need to generate and refactor large codebases or build interactive 3D/game frontends using tool-driven workflows. The model's strength in code generation, combined with its multimodal understanding for analyzing UI screenshots, accelerates development. The sparse architecture lowers inference costs, making it suitable for frequent API calls in CI/CD pipelines.
  • You have a professional task involving long document analysis, such as legal contract review, academic paper summarization, or enterprise report generation. The model's 1M context allows processing entire documents at once, and the vision encoder enables extracting information from charts and diagrams, providing a unified solution for multimodal business documents.

Best Practices

  • Evaluate the quantized model (via Strata packs or managed API) on your specific workload to understand real-world quality and latency, especially when using the Compact pack for low-VRAM setups.
  • Account for the extra memory required for PLE lookup tables and KV cache when planning deployment; using the latest Strata engine (v0.2.26+) and recommended VRAM sizes ensures stable performance. Always follow the model's official chat template for proper interaction.

Technical Specs

Context Length1,048,576
Input Formats
textimage
Output Formats
text

Capabilities & Features

Capabilities
text understandingimage understandinglong context processing (1M tokens)hybrid linear attention (GatedDeltaNet)mixture of experts (256 experts, 8 routed + 1 shared)bigram/trigram lookup layerlong horizon agent workcode generationfrontend creationtool driven 3D/game creation
Supported File Types
.jpg.png.bmp.webp
Qwen4-35B-A3B API - Cheap API - Qwen (Alibaba) - Defapi