Qwen4-Max

Qwen's flagship multimodal model for text generation, reasoning, and visual understanding.

Model ID: qwen4-max · Type: chat · Provider: Alibaba

Endpoints: /v1/chat/completions

Pricing

Input (per 1M tokens)$0.8478 USD
Output (per 1M tokens)$2.544 USD
Cache read implicit (per 1M tokens)$0.0426 USD
Cache read explicit (per 1M tokens)$0.0426 USD
Cache write 5m (per 1M tokens)$1.0602 USD
Cache write 1h (per 1M tokens)$1.6962 USD
import os

from openai import OpenAI

client = OpenAI(api_key=os.environ["ROUTER_API_KEY"], base_url="https://api.router.ai/v1")
resp = client.chat.completions.create(
    model="qwen4-max",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

FAQ

How much does Qwen4-Max cost on token123?

Qwen4-Max (`qwen4-max`) is billed per usage at $0.8478/1M in · $2.544/1M out, in USD. Current pricing is always listed at https://www.token123.io/models/qwen4-max.

How do I call Qwen4-Max through token123?

Send a request to https://api.router.ai/v1/chat/completions with the header `Authorization: Bearer <your API key>` and `"model": "qwen4-max"`. The API is OpenAI-compatible, so any OpenAI SDK works by changing base_url to https://api.router.ai/v1 — no other code change.

What is Qwen4-Max's context window?

Qwen4-Max accepts up to 991,808 input tokens and can return up to 131,072 output tokens. Requests exceeding the input limit are rejected before reaching the model.

What can Qwen4-Max do?

Qwen4-Max supports: vision, function_calling, prompt_caching.

Who makes Qwen4-Max?

Qwen4-Max is a chat model from Alibaba, available through the token123 gateway with the same API key as every other model.

Call it through the token123 OpenAI-compatible endpoint (API base: https://api.router.ai/v1). AI agents can browse the catalog and call any text model through MCP (https://mcp.router.ai/mcp); for image, video and other modalities use the API above.

API reference · All models