Skip to content
Dashboard

Qwen4-Max now available on AI Gateway

Alibaba’s Qwen4-Max is now available on AI Gateway. It’s a reasoning model for coding and long-running agent tasks, with image input, a 1M-token context window, tool calling, and structured outputs.

With access to the appropriate tools, agents using Qwen4-Max can:

  • Build 3D scenes and games: Work with Blender, Unity, Unreal Engine, and Godot, running what the agent builds and using visual feedback to fix issues.

  • Analyze documents and create reports: Work across documents and images to produce spreadsheets, presentations, and reports with source citations.

Alibaba reports 35% fewer tokens than Qwen3.8-Max on its Work360 benchmark at high reasoning effort.

Use alibaba/qwen4-max as the model ID:

import { streamText } from 'ai';
const result = streamText({
model: 'alibaba/qwen4-max',
prompt: 'Outline a Godot prototype for a top-down puzzle game.',
});
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

Follow the setup instructions, then select alibaba/qwen4-max in your agent. See the coding agents guide for details.

Try Qwen4-Max in the model playground, or explore all language models on AI Gateway.