---
title: "Qwen API: open-weight Qwen4 35B-A3B, pricing and keys"
description: "Call open-weight Qwen4 35B-A3B with a 1,000,000-token context in the EU. Flat monthly rate on Vora Compute, plus per-token prices and code."
url: "https://voracompute.com/blog/qwen-api"
lang: "en"
updated: "2026-12-04"
---

[← Back to blog](https://voracompute.com/blog)

Technical guide · Qwen

# Qwen4 35B-A3B API: pricing, speed, limits and quickstart

If you want to call Qwen4 35B-A3B without running it yourself, this guide covers where the open-weight model released in December 2026 is served, per-token prices, measured speed, limits, API keys and code. Vora Compute serves Qwen4 35B-A3B on GPUs in the European Union behind an OpenAI-compatible API, on a flat monthly rate per person instead of per token. Checked on 4 December 2026.

## Qwen4 35B-A3B at a glance

Below are the core specifications for `qwen4-35b-a3b` when called through Inference on Vora.

**Qwen4 35B-A3B at a glance**

|  | Qwen4 35B-A3B on Vora |
| --- | --- |
| **Made by** | Qwen (Alibaba) |
| **Licence** | Apache-2.0 (open-weight) |
| **Parameters** | 35B, 3B activated per token |
| **Context window** | 1,000,000 tokens (prompt, reasoning and answer together) |
| **Input** | Text and images; up to 8 images, 10 MiB per request (base64 JPEG, PNG or WebP) |
| **Output per request** | 8,192 tokens by default, 32,768 at most |
| **Reasoning** | `reasoning_effort`: none, low, medium (default) or high |
| **Precision** | FP8 |
| **Where it runs** | GPUs in the European Union |
| **APIs** | Chat Completions, Anthropic Messages and stateless OpenAI Responses API; tool calling, JSON mode and streaming |

## Why Qwen4 35B-A3B works well for agentic coding

Qwen4 35B-A3B is a multimodal Mixture-of-Experts (MoE) model released by Alibaba's Qwen team under the **Apache-2.0** license (**35B parameters with 3B activated per token** across 256 routed experts, plus 20B n-gram embeddings and a 2B multi-token prediction head). Its 40-layer decoder interleaves **Gated DeltaNet** linear-attention blocks with **Qwen Sparse Attention** layers (`10 × (3 × (Gated DeltaNet → MoE) → 1 × (Qwen Sparse Attention → MoE))`), shrinking KV-cache memory across long sequences while keeping multi-file code reasoning fast.

On software engineering, repository work and agentic benchmarks, the [official Qwen4-35B-A3B model card on Hugging Face](https://huggingface.co/Qwen/Qwen4-35B-A3B) reports, among others, the following results:

**Qwen4 35B-A3B coding, agentic and reasoning benchmark scores reported on Hugging Face**

| Benchmark | What it measures | Reported score |
| --- | --- | --- |
| DeepSWE v1.1 | End-to-end software engineering tasks | 61.8 |
| NL2Repo | Repository-level software development | 51.7 |
| APEX-Agents v1.1 | Long-horizon professional agent tasks | 59.0 |
| AutomationBench-AA | Multi-step task automation | 57.9 |
| GPQA | Graduate-level scientific and technical reasoning | 86.9 |

With these numbers, a fast sparse-MoE open-weight model handles daily work: refactors, test generation, shell debugging, code review and reading large API specs, especially when paired with an agent harness that executes tools and verifies outputs against your test suite.

**Speed and uptime.** We measure speed, time to first token, and uptime continuously and publish them on the [status page](https://inference.voracompute.com/status).

## Understanding the 1M native context window in practice

Qwen4 35B-A3B is served with a **native context window of 1,000,000 tokens** without synthetic RoPE scaling, preserving attention precision across multi-file diffs, tool outputs and long specifications.

On Inference:

- The **1,000,000-token ceiling** covers the exact rendered input (system prompt, tool schemas, conversation history, attached files and images) plus reserved output tokens.
- Default output is **8,192 tokens**, adjustable up to **32,768 tokens** per request (`max_tokens` or `max_completion_tokens`).
- The complete JSON request body must stay within **15 MiB**. Oversized requests are rejected outright rather than silently truncated.
- Prefix caching runs in volatile memory, isolated strictly per account (accounts never share cache entries, and cache contents are never written to disk).

In practice, keep routine edits compact so prefill stays fast, and use the full 1M window when a task genuinely needs it: auditing a module graph, reviewing long build or incident logs, or loading an entire protocol specification in one pass.

Large prompts still need prefill time before the first token arrives. Vora allows up to **30 minutes before the first token** and **60 minutes total** per request, so configure your HTTP client or agent timeout to at least **61 minutes** (`3,660 s`) when running near the full context window.

## Local hardware vs. a private European API

Many developers first evaluate Qwen4 35B-A3B locally via Ollama or `llama.cpp` in 4-bit GGUF (~57B total parameters on disk once its 20B n-gram embedding table is included). Local inference works well for offline single-file coding, but hits practical walls quickly in agentic workflows: the context you can use depends on your local GPU memory, and sharing that setup cleanly across a team adds operational overhead.

**Comparison of local 4-bit GGUF, US per-token APIs and Vora Compute in Europe**

| Factor | Local workstation (4-bit GGUF) | US per-token cloud APIs | Vora Compute (Europe) |
| --- | --- | --- | --- |
| Quantization | Typically 4-bit (Q4\_K\_M) | Varies by provider | FP8 |
| Usable context window | Bounded by local VRAM | Varies | 1,000,000 tokens (native) |
| Data location | Your machine | Often US or multi-region routing | European Union |
| Prompt retention | None (local) | Depends on tier and opt-out | Zero API retention by default |
| Pricing model | Upfront GPU + power + maintenance | Pay per token (spikes in agent loops) | €9.90/month or €99/year (€8.25/month) first year through 31 December 2026 (then €29/month or €288/year, excl. VAT); up to 4 parallel requests |

On Vora's API, prompts, responses, images, reasoning traces and tool calls pass through memory to the model and back. Engine content logs, persistent prompt caches and image-processing caches are disabled. Full details are documented in [Vora Privacy](https://inference.voracompute.com/docs/privacy).

## Speed on Vora, and up to 4 requests at a time

One main agent and up to three subagents can generate at the same time (4 requests admitted per account, shared across models, API keys and Chat, with at most 1 request above 262,144 tokens). A fifth request gets 429 with a `Retry-After` header.

Measurements were made with requests of 300 output tokens, `reasoning_effort` set to none, streaming, on one account. Check ongoing figures on the [status page](https://inference.voracompute.com/status).

**Speed on Vora, and up to 4 requests at a time**

| Streams at the same time | Requests measured | Tokens per second, each stream | Time to first token |
| --- | --- | --- | --- |
| 1 | 7 | 195.4 | 0.78 s |
| 2 | 4 | 164.8 | 1.12 s |
| 4 | 8 | 132.8 | 1.18 s |

Measured by us on 4 December 2026, 12:44 to 12:46 CET, on GPUs shared with customers.

## Qwen API pricing and keys: per token or flat

A Qwen API key comes from the provider you call: [Alibaba Cloud Model Studio](https://www.alibabacloud.com/help/en/model-studio/qwen4-35b-a3b) for Qwen's own API, [Vercel AI Gateway](https://vercel.com/ai-gateway/models/qwen4-35b-a3b) for Vercel, or the [Vora console](https://inference.voracompute.com/console/keys) on a paid Vora plan. Alibaba Cloud Model Studio documents the model id `qwen4-35b-a3b` and bills per token by region on its [pricing page](https://www.alibabacloud.com/help/en/model-studio/model-pricing); Vercel AI Gateway lists `alibaba/qwen4-35b-a3b` with Alibaba Cloud as the provider.

Per-token APIs charge for every token an agent reads and writes. On Vora's flat monthly rate per person, tokens are not counted, with no daily or monthly token cap on paid plans and no requests-per-minute cap.

**Qwen API pricing and keys: per token or flat**

| Provider | Region and scope | Input / output per 1M tokens |
| --- | --- | --- |
| Alibaba Cloud Model Studio | Singapore (International) | $0.06 / $0.36 |
| Alibaba Cloud Model Studio | Germany (Frankfurt), United States (Virginia), Japan (Tokyo), Hong Kong (China): deployment scope Global | $0.057 / $0.339 |
| Alibaba Cloud Model Studio | China (Beijing) | $0.057 / $0.339 |
| Vercel AI Gateway | Serves Alibaba Cloud's model | $0.06 / $0.36 |
| Ollama | Local, on your own machine (`qwen4:35b-a3b-q4_K_M`, 37 GB download) | Not billed per token |

Prices as published on 4 December 2026, in US dollars per 1 million tokens.

€29/month or €288/year (€24/month) per person, excl. VAT, or €9.90/month (and €99/year, €8.25/month) for the first year if you subscribe through 31 December 2026. That covers Chat and the API without counting tokens, with up to 4 parallel requests. Cancel anytime.

**It fits when**

- Agent loops read and write heavily and you want a fixed monthly bill.
- You need EU GPUs and an API that stores no prompts, responses or images.
- You want one account for both API calls and browser sessions in Chat.

**What it includes**

- Qwen4 35B-A3B with a 1,000,000-token native context (existing `qwen3.8-27b` setups route to it automatically).
- Up to 4 parallel requests per person, without counting tokens.
- Chat and the API on the same subscription.
- **Teams:** multiple seats on a single company VAT invoice with volume discounts (and adjustable concurrency if needed) via [hello@voracompute.com](mailto:hello@voracompute.com).

## Call it from code

Export a key from the Vora console as `VORA_API_KEY` and call `https://api.voracompute.com/v1` with curl or the OpenAI Python SDK.

Terminal

```
curl --fail-with-body https://api.voracompute.com/v1/chat/completions \
  -H "Authorization: Bearer $VORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen4-35b-a3b",
    "messages": [
      {
        "role": "user",
        "content": "Say hello in one sentence."
      }
    ],
    "reasoning_effort": "none",
    "max_tokens": 128
  }'
```

Python

```
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.voracompute.com/v1",
    api_key=os.environ["VORA_API_KEY"],
)
response = client.chat.completions.create(
    model="qwen4-35b-a3b",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
    reasoning_effort="none",
    max_tokens=128,
)
print(response.choices[0].message.content)
```

Next, see how to [connect your coding agent](https://voracompute.com/blog/for-developers) to Inference.

## Coming from Qwen3.8 27B

Requests using `qwen3.8-27b` already route automatically to `qwen4-35b-a3b` on Vora Compute, so existing setups keep working with zero code changes. Setting `qwen4-35b-a3b` explicitly in your agent config unlocks the full 1,000,000-token context limit, with the same endpoint, API keys and account limits. See [Qwen4 35B-A3B vs Qwen3.8 27B](https://voracompute.com/blog/qwen4-vs-qwen3-8).

## Frequently asked questions

**Does Qwen4 35B-A3B really support a full 1M-token context?**

Yes. The Qwen4 35B-A3B model card and its config file list a native context length of 1,048,576 tokens, without YaRN or RoPE scaling. Vora serves 1,000,000 tokens.

**Does Qwen4 35B-A3B support tool calling in coding agents?**

Yes. Tool calling, JSON mode and streaming work on Vora, which offers Chat Completions, Anthropic Messages and the stateless OpenAI Responses API. On 4 December 2026, eight coding agents ran three tasks, three times each, with Qwen4 35B-A3B through Vora's API, and six of them passed all nine runs. See how to [connect your coding agent](https://voracompute.com/blog/for-developers).

**How do I switch reasoning off, and which `reasoning_effort` values exist?**

Vora accepts four values for `reasoning_effort`: `none`, `low`, `medium` and `high`. Requests use `medium` by default when the parameter is omitted. Passing `reasoning_effort` set to `none`, as in the code examples above, switches reasoning off for that request.

**Is Qwen4 35B-A3B better than Qwen3.8 27B?**

Yes, on published coding and agent benchmarks. Artificial Analysis (4 December 2026, Xhigh, through Alibaba Cloud, not Vora): 25 against 20 on Intelligence Index, 21.2 against 5.6 on Terminal-Bench 4.1. Qwen3.8 27B leads GPQA (89.2 against 86.9, Qwen4 model card chart). [Qwen4 35B-A3B vs Qwen3.8 27B](https://voracompute.com/blog/qwen4-vs-qwen3-8) has our full comparison, agent test, and speed.

**What is the difference between Qwen4 35B-A3B and Qwen4-Max?**

They are different models. Qwen4 35B-A3B is an open-weight model made by Qwen (Alibaba) and released under the Apache-2.0 licence, so providers such as Vora and local runtimes such as Ollama can host its weights. Qwen4-Max is a separate, closed model; it is not open-weight and is not the model described on this page.

**Do I need an API key to try Qwen4 35B-A3B on Vora?**

Not to try the model in the browser. New verified accounts receive a one-time free trial of 15 messages in Chat, with no card required. To call Inference over the API, you need a paid plan; once active, you can create API keys in the Vora console.

## Related guides

- [Connect coding agents to Vora Compute](https://voracompute.com/blog/for-developers): tested configs for OpenCode, Cline, Continue, Aider, Claude Code and Codex.
- [Qwen4 35B-A3B vs Qwen3.8 27B](https://voracompute.com/blog/qwen4-vs-qwen3-8): architecture changes, context expansion to 1M tokens and automatic alias routing.
- [OpenRouter alternatives in the EU](https://voracompute.com/blog/openrouter-alternatives): direct flat-rate hosting on European GPUs without per-token meters.
- [LLM API cost calculator](https://voracompute.com/llm-api-cost-calculator): compare your monthly per-token spend against a flat-rate seat.

## Run Qwen4 35B-A3B on a flat monthly rate.

Flat rate on European GPUs with zero API retention: €9.90/month or €99/year (€8.25/month) for the first year through 31 December 2026 (then €29/month or €288/year, excl. VAT). Up to 4 parallel requests.

[Explore inference](https://voracompute.com/inference#pricing)
