Skip to content
Dashboard

Qwen4-35B-A3B now available on AI Gateway

Qwen4-35B-A3B from Alibaba is now available on AI Gateway. It is the first open-weight model in the Qwen4 series, released under Apache 2.0: a mixture-of-experts model with 35B total parameters and about 3B active per token, built on the same architecture and training techniques as Qwen4-Max.

The model takes text, image, and video input with a 1M-token context window. Its hybrid of linear and sparse attention keeps long inputs fast to process and their cache small, which suits long documents, large codebases, and long-running agent sessions. Compared with prior Qwen open models, it is stronger on long, multi-step agent tasks and professional knowledge work, and on coding for visual output such as frontend development, 3D modeling, and games. Thinking is more concise than in earlier Qwen models, so tasks finish in fewer tokens.

Use alibaba/qwen4-35b-a3b as the model name:

import { streamText } from 'ai';
const result = streamText({
model: 'alibaba/qwen4-35b-a3b',
prompt: 'Write a Python function to merge two sorted linked lists.',
});
for await (const text of result.textStream) {
process.stdout.write(text);
}

To use it in Claude Code, Codex, Cursor, and more, install the latest Vercel CLI and run setup:

npx vercel ai-gateway setup

Then select alibaba/qwen4-35b-a3b in the agent. See the coding agents guide for details.

Try Qwen4-35B-A3B in the model playground.

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, routing rules, and more.

AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.

You can view all language models available on AI Gateway.