Qwen4 Max is the flagship large-scale mixture-of-experts (MoE) model from the Qwen team at Alibaba Cloud. It has a 1,000,000-token context window and accepts text, image and video input, returning text, with up to 65,536 output tokens in a single response. It supports reasoning / thinking with an adjustable thinking budget, built-in web search, native tool use / function calling, and structured (JSON) outputs, which makes it well suited to complex reasoning, multimodal understanding, long-context work and agentic pipelines. Served through an OpenAI-compatible Chat Completions API, the OpenAI Responses API, and the native Anthropic Messages API.
Qwen4 Max is the flagship large-scale mixture-of-experts (MoE) model from the Qwen team at Alibaba Cloud, with a 1,000,000-token context window. It accepts text, image and video input and returns…
Text, image and video in, text out, with a 1,000,000-token context, up to 65,536 output tokens, reasoning / thinking at an adjustable thinking budget, built-in web search, native tool use / function calling, and structured (JSON) outputs — suited to complex reasoning and agentic pipelines.
See the pricing on this page for the current rate. Billing is per token, with a separate rate for cached input reads.
Use model qwen/qwen4-max through your OrcaRouter API key over the OpenAI-compatible Chat Completions API, the OpenAI Responses API, or the native Anthropic Messages API. Supports tools / function calling, web search and structured (JSON) outputs; control reasoning depth with the thinking budget. Errors use the OpenAI error envelope on the OpenAI-compatible route.
OpenAI-compatible — keep the SDK you already use
https://api.orcarouter.ai/v1https://api.orcarouter.aiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key=os.environ["ORCAROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="qwen/qwen4-max",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)enable_searchenable_thinkinginclude_reasoninglogprobsmax_tokensnparallel_tool_callspresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstreamstream_optionstemperaturethinking_budgettool_choicetoolstop_ktop_logprobstop_p| Input / 1M tokens | $1.50 |
|---|---|
| Output / 1M tokens | $4.50 |
| Cache read / 1M | $0.075 |
| Cache write / 1M | $1.875 |
| Currency | USD |
Estimate based on list price
Estimate only — actual token counts depend on the provider's tokenizer.
What developers are saying this week
GET /api/public/models/qwen/qwen4-maxOpen @misc{orcarouter_qwen4_max,
title = {Qwen4 Max API},
author = {Qwen},
year = {2026},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/qwen/qwen4-max}
}Qwen. (2026). Qwen4 Max API. OrcaRouter. https://www.orcarouter.ai/models/qwen/qwen4-max