Qwen4-Max API
Qwen4-Max is Alibaba’s flagship model. APIKO provides text input and output through OpenAI-compatible Chat Completions, with streaming and tool calls.
API access
- Endpoint
- POST /v1/chat/completions
- Base URL
- https://api.apiko.app/v1
Speaks OpenAI Chat Completions; one APIKO key reaches every listed model.
Input price
27% off$1.50
$1.10
/ 1M tokens
Output price
27% off$4.50
$3.30
/ 1M tokens
Cache reads
$0.055
/ 1M tokens
Verified text input
≈128K
tokens
Start testing Qwen4-Max
Ask a question — the answer streams in, followed by token usage, latency and an estimated cost.
Qwen4-Max API quickstart
Call Qwen4-Max in the OpenAI Chat Completions format. Copy-ready cURL, Python and Node.js samples below.
Code sample
Endpoint:/v1/chat/completions
curl https://api.apiko.app/v1/chat/completions \
-H "Authorization: Bearer $APIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{"role": "user", "content": "Hello"}]
}'For streaming, add "stream": true and "stream_options": {"include_usage": true} to the request. To enable thinking, set "enable_thinking": true. To specify the effort separately, use the verified value "reasoning_effort": "high".
Tip: set APIKO_API_KEY to a key created on the API keys page.
Works with the official SDKs — swap in the base URL, API key and model ID.
Qwen4-Max API pricing
Current APIKO rates per million tokens. Cached tokens are charged at the cache-read rate when reported in usage.
- Input tokens27% off
- $1.50$1.10/ 1M tokens
The prompt and context you send to the model
- Output tokens27% off
- $4.50$3.30/ 1M tokens
What the model generates, reasoning tokens included
- Cache reads
$0.075$0.055/ 1M tokens
Cost example in USD: 50,000 uncached input tokens ($0.055) + 10,000 cache-read tokens ($0.00055) + 5,000 output tokens ($0.0165) = $0.07205.
Qwen4-Max API parameters
- messages
- Send text messages. APIKO verified about 128K input tokens in a single request.
- stream · stream_options
- Set stream: true for server-sent events (SSE). Use stream_options.include_usage to request usage in the final chunk.
- tools · tool_call_id
- Pass function definitions in tools. Execute a returned tool call in your application, then send its result back with the matching tool_call_id.
- enable_thinking · reasoning_effort
- Set enable_thinking: true to turn on thinking. APIKO has verified reasoning_effort: high. Thinking tokens are billed as output. The API response omits the reasoning text.
About Qwen4-Max
Alibaba released Qwen4-Max on November 16, 2026, for complex reasoning, software development, and multi-step agent tasks. Its sparse mixture-of-experts (MoE) architecture has 2.4 trillion total parameters and activates 71 billion per token, according to Alibaba.
Alibaba Model Studio documents a 1 million-token context window and native image and video understanding with text output. APIKO provides text input and output through Chat Completions and has tested about 128K input tokens in one request.
What to build with the Qwen4-Max API
For a code review, send a text diff and test output and ask Qwen4-Max to explain the failure and suggest a fix. For a support assistant, let the model request an order lookup through a function, then pass the result back so it can draft a reply.
- Provider
- Alibaba
- Endpoint
- /v1/chat/completions
- Verified text input
- ≈128K
- Model ID
- qwen4-max
How to use Qwen4-Max
The playground and the API share one model ID — three steps take you from trying a prompt to production calls.
Step 1
Try it online
Test the system prompt, output length and sampling settings in the playground.
Step 2
Manage API keys
Sign in to see your keys or create one; one key works across every listed model.
Step 3
Connect your server
Send requests to /v1/chat/completions and record cost from the usage field.
Compare Qwen4-Max with other Alibaba models
Live APIKO prices per 1M tokens. Every model here works with the same API key — switch by changing the model ID.
| Model | Context window | Input | Output |
|---|---|---|---|
| Qwen 3.8 Maxqwen3.8-max | 1M | $1.75 | $5.26 |
| Qwen4-MaxThis pageqwen4-max | 1M | $1.10 | $3.30 |
Comparing models and price tiers?
See live prices for every modelQwen4-Max API FAQ
How much does the Qwen4-Max API cost on APIKO?
Current APIKO rates per million tokens are $1.10 for input, $3.30 for output, and $0.055 for cache reads (USD).
How much text input has APIKO verified for Qwen4-Max?
APIKO verified single-request text input of about 128K tokens. Alibaba documents the model context as 1 million tokens.
How do I enable thinking, and how is it billed?
Send enable_thinking: true. Reasoning tokens count toward billed output, and the response does not include the reasoning text.
How do I call Qwen4-Max with the OpenAI SDK?
Set the model ID to qwen4-max and use chat.completions.create with the APIKO base URL. POST /v1/chat/completions supports text input and output, streaming, and tool calls.
Does Qwen4-Max accept images or video through APIKO?
Alibaba Model Studio supports image and video input. On APIKO, Qwen4-Max supports text input and output only.
Which model ID should I use for the official Qwen4-Max release?
On APIKO, set model to qwen4-max to use the official release. Alibaba used qwen4-max-preview for its earlier preview.