qwen/qwen4-max
The flagship multimodal reasoning model of Alibaba’s Qwen4 generation, generally available since November 2026. Built on a sparse MoE backbone with 2.4T parameters plus 328B N-gram embeddings and 71B active parameters per token, delivering stronger agentic coding and tool execution with fewer reasoning tokens than Qwen3.8-Max. Supports text, image, and video input, parallel tool calling, structured outputs, and a 1M-token context window. Thinking is on by default (high effort) and can be turned off, with effort levels from none to max.
Cache read $0.06/M · Cache write $1.5/M
Use either ID to call this model via the API.
qwen/qwen4-maxReplace the ONEHOP_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="qwen/qwen4-max",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)