VercelDev & Eng
Content type: Hands-on
5 min read
Vercel's AI Gateway adds Qwen4-35B-A3B, open model with video support
Qwen4-35B-A3B, from Alibaba, is the first open model in the Qwen4 series and has arrived in the AI Gateway catalog with video input and a 1 million token context. For those building front-end with code agents, this opens up an open, inexpensive alternative to the usual closed options.
- Reading
- 5 min
- Code
- 2
Qwen4-35B-A3B, from Alibaba, is the first open model in the Qwen4 series and has arrived in the AI Gateway catalog with video input and a 1 million token context. For those building front-end with code agents, this opens up an open, inexpensive alternative to the usual closed options.
What changes with Qwen4-35B-A3B in the catalog
Vercel has made Qwen4-35B-A3B, from Alibaba, available on the AI Gateway. According to Vercel's own changelog, it's the first model in the Qwen4 series released with open weights, under the Apache 2.0 license, which allows running, fine-tuning, and redistributing it without the commercial restrictions common in closed models. The model was built with the same architecture and the same training techniques as Qwen4-Max, the family's proprietary version.

Under the hood, Qwen4-35B-A3B is a mixture-of-experts (MoE) model: it has 35 billion parameters in total, but activates only about 3 billion per processed token. This design is what makes a model of this size viable to run with reasonable latency and cost: the inference bill comes close to that of a much smaller model, while still retaining the capacity of a larger model in the experts that stay inactive most of the time.
Video as input and 1 million token context
In addition to text and images, the model accepts video as input and sustains a 1 million token context window. Reaching that size without costs and latency exploding usually runs into the quadratic growth of attention in a conventional transformer. Vercel describes a hybrid mechanism of linear and sparse attention, which keeps the cache small and the processing of long inputs fast.
Expert views
What people are saying about it.
PodSecurityPolicy was removed, and pod security control is now handled through namespace labels. Official Kubernetes documentation shows how to migrate without breaking existing workloads.
Since December 3, 2026, it has been possible to create repositories on GitHub using SHA-256 instead of SHA-1. The algorithm has existed in Git since 2020, but it's only now arriving on github.com, with no conversion for existing repositories.
In practice, this favors three scenarios common in products: long documents, large codebases, and agent sessions that run for a long time without losing the thread of the conversation. For those using coding agents embedded in the editor, a large context means less manual re-indexing of files and less forced truncation of history.
Compared to previous generations of open Qwen models, Vercel points to gains in long, multi-step agent tasks, in professional knowledge work, and, specifically, in code generation for visual output: frontend development, 3D modeling, and games. The model's internal reasoning also became more concise, finishing tasks in fewer tokens than previous Qwen generations, which translates directly into inference cost.
Where this affects front-end developers' daily work
The explicit mention of code generation for visual output in the changelog isn't generic: it covers exactly the kind of task where an LLM needs to generate HTML, CSS, React components, 3D scenes, or game logic and get the visual result right without seeing the screen. It's a category where general-purpose models often slip up, producing a component that compiles but doesn't render what was asked for, or a layout that doesn't break but also doesn't fulfill what the prompt described.
Having this capability in an open, auditable model, available via the Gateway alongside closed models, changes the equation for those who currently depend on a single provider to generate or review UI. It's possible to compare side by side, in the same pipeline, by swapping the model name in a single call instead of rewriting the entire integration layer.
How to call the model
In the AI Gateway, the model identifier is alibaba/qwen4-35b-a3b. Using Vercel's own AI SDK, the call follows the already familiar streamText pattern:
import { streamText } from 'ai';
const result = streamText({
model: 'alibaba/qwen4-35b-a3b',
prompt: 'Escreva uma função em Python que mescla duas listas encadeadas ordenadas.',
});
for await (const text of result.textStream) {
process.stdout.write(text);
}To use the model within coding agents like Claude Code, Codex, or Cursor, the way to go is to install the latest version of the Vercel CLI and run the setup:
npx vercel ai-gateway setupThen it's just a matter of selecting alibaba/qwen4-35b-a3b from the agent's model list. Vercel also makes the model available in the AI Gateway playground, for testing prompts before putting them into code.
What the AI Gateway solves (and what it doesn't)
The AI Gateway isn't just a call proxy. It centralizes usage and cost tracking, custom reports, Zero Data Retention support, per-API-key budgets, and routing rules between models and providers, in addition to retries and failover for higher availability than a single isolated provider offers. Vercel stresses that it passes through the provider's price without markup and doesn't charge a platform fee on inference, including for those who use their own key (BYOK).
This solves the operational problem of multiplexing AI providers in a real product: switching models without rewriting integration, measuring cost per feature, and having a plan B when a provider goes down. What the Gateway doesn't solve is choosing the model itself. That remains the job of whoever builds the product, testing the right model for the right task before locking it into production.
When it's worth it (and when it isn't)
For those already using the AI Gateway who need large context, video input, or code generation geared toward interfaces, Qwen4-35B-A3B is an option that can be tested with no integration cost: it's just swapping a string in the code. Since the weights are open under Apache 2.0, the route of self-hosting the model outside the Gateway is also available, in case the product requires it due to data or cost-at-scale requirements.
For those who need the absolute top of quality in complex reasoning, it's worth remembering that this is the family's open version: the closed Qwen4-Max shares the same architecture and the same training techniques, but remains proprietary. It's also not the obvious choice for those running inference locally on limited hardware: even activating only 3 billion parameters per token, the full 35 billion still need to be loaded into memory, which weighs more than a smaller dense model in that specific scenario.
Translated from the Brazilian Portuguese original · Read the original
NSA calls for faster post-quantum cryptography adoption, and Vercel says it has complied since 2025
In response to NSA guidance published on December 2, Vercel detailed how the platform's TLS, certificates, and authentication tokens already incorporate post-quantum cryptography, some of it in place since November 2025.





