· via Vercel blog
Alibaba's Qwen 3.8 Flash with 1M-token context arrives on Vercel AI Gateway
Alibaba's Qwen 3.8 Flash, a multimodal model with a 1 million-token context window and 65k-token output, is now available through Vercel's AI Gateway with no inference markup.

What launched
Vercel has added Alibaba's Qwen 3.8 Flash to the models available through its AI Gateway. According to the Vercel blog, the model takes both text and images as input, offers a context window of 1 million tokens, and can return up to 65,000 tokens in a single response. Alibaba recommends it for coding, tool use, and multi-step agent workflows, which makes it a natural fit for the agent-heavy workloads that gateway infrastructure increasingly serves.
How to use it
Developers access the model under the identifier alibaba/qwen3.8-flash in the AI SDK. Vercel's example shows how little code is involved: a call to streamText with the model string and a prompt — for instance, asking the model to add pagination to a results endpoint — is enough to start streaming output.
For coding agents, Vercel points to its coding agents guide and ships a setup command, vercel ai-gateway coding-agents setup, which connects tools such as Claude Code, Codex, OpenCode, Cursor and Pi. After setup, you select alibaba/qwen3.8-flash from inside the agent. A model playground is also available for trying the model before wiring it into production code.
What AI Gateway adds around it
AI Gateway is Vercel's unified API layer for calling models from multiple providers. Per the Vercel blog, it handles usage and cost tracking, retries, failover, and performance optimizations intended to deliver higher uptime than calling a provider directly. Additional capabilities include built-in custom reporting, Zero Data Retention support, budgets scoped to individual API keys, and routing rules.
On pricing, Vercel says the gateway mirrors provider pricing with no markup and charges no platform fee on inference — including on Bring Your Own Key requests, where developers supply their own provider credentials.
Why it matters
A 1 million-token context window paired with a 65,000-token output budget is a practical combination for agent developers. Long conversation histories, sizable codebases, and the accumulated traces of multi-step tool calls all consume context quickly; at 1M tokens, Qwen 3.8 Flash reduces the need to truncate, summarize, or shard that material before sending it to the model. A large output ceiling matters too, since code generation tasks such as full-file rewrites or extensive diffs can run long in a single turn.
The distribution channel matters as much as the model itself. By landing on AI Gateway, Qwen 3.8 Flash becomes a drop-in option for anyone already routing model traffic through Vercel: adopting it is a model-string change rather than a new integration, and gateway features like budgets, routing rules, and failover apply from day one. For teams evaluating models for coding and agent work, that lowers the cost of experimentation. For Alibaba, it puts Qwen in front of a developer audience that might otherwise default to better-known Western providers.
- #alibaba
- #qwen
- #vercel
- #ai-gateway
- #llm
- #coding-agents