Back to models

Qwen4 Max

alibaba/qwen4-max

A million-token window that thinks before it answers

Qwen4 Max is the flagship of Alibaba's Qwen4 family, released in November 2026. It has a one-million-token window, output up to 131K tokens, and it thinks before it answers: thinking is on by default, and the thinking text comes back in the reply next to the answer.

2.78 / 8.337cr / 1K3.474 / 10.421-20%

Offer ends February 15, 2027

Context 1M · Released Nov 15, 2026

Prompt cache read: 0.174 cr / 1,000 tokens

In your currency, for 1 million input tokens: ≈ $1.56 (rate of Dec 6, 2026 with the 2% exchange margin, operator fees not included).

Other currencies

926 F CFA · 3,598 CDF · 19 GHS · 203 KES · 2,727 MWK · 100 MZN · 2,317 RWF · 36 SLE · 4,154 TZS · 6,490 UGX · 33 ZMW

Capabilities
  • Tools
  • JSON mode
  • Vision
  • Streaming
  • Prompt caching

Last updated Dec 6, 2026

Read the full description

Qwen4 Max is the flagship of Alibaba's Qwen4 family, released in November 2026. It has a one-million-token window, output up to 131K tokens, and it thinks before it answers: thinking is on by default, and the thinking text comes back in the reply next to the answer.

It suits hard analysis and agent work: long reports and codebases, multi-step reasoning, chained tool calls, structured output. Images can go in with your text.

A reasoning model bills its thinking tokens as output, so the cost of one request follows how hard the task is, not how long the reply looks. Test it on your own task. One account and one API key open 100+ models on Tchavi: swap the base URL, keep your OpenAI SDK, and your credits never expire.

What this model does well

  • 1M-token context

    A million tokens in, for long files and archives

  • Up to 131K tokens out

    Long answers in a single pass

  • Thinking, with its text

    Thinks before answering and returns the thinking text; billed as output

  • Image input

    Reads images and screenshots with your text

  • Tools and JSON mode

    Function calling and structured output

Example prompts

  • Here is an order table and three discount rules. Find the orders whose total is wrong and explain each error.

  • Read this code repository, find the cause of the double-payment bug and propose a fix with a test.

Good to know

What to know before you start: limits, settings and what we keep.
  • A reasoning model: thinking tokens are billed as output, so spend tracks task difficulty, not reply length. A low max_tokens can be used up by thinking before any answer appears.
  • Text and images in, text out. No PDF documents. Alibaba also lists video input, which Tchavi does not guarantee: test first.
We never save what you send to a model or what it returns. We log only your settings (like size or voice) and how much was used, for billing. Files you attach in the playground are deleted after 24 hours.

Frequently asked questions

Qwen4 Max or Qwen3.8 Max: which should I pick?

Qwen4 Max is the newer model, with the same million-token context and the same 131K output. Its per-token rates on Tchavi are lower than Qwen3.8 Max's today. Both think before answering and bill thinking as output, so compare the real cost on your own task (model: "qwen4-max" or "qwen3.8-max"). Qwen3.8 Max stays available.

Does it show its thinking?

Yes. The thinking text comes back in the reply, next to the answer, and its tokens are billed as output.

How much context and output does it have?

Up to 1,000,000 tokens of context and 131,072 out. Thinking tokens count toward the output.

Does it read images and PDFs?

Images, yes, as input, with text output. No PDF documents on Tchavi.

See the 4 other questions
How do I call Qwen4 Max with my OpenAI SDK?

Swap the base URL for Tchavi's, use your Tchavi key and set model: "qwen4-max" on /v1/chat/completions. The rest of your code stays the same.

How much does Qwen4 Max cost?

For 1,000 words sent and 1,000 words received, expect 14.451 credits (about 4.8 FCFA). Usage is counted in tokens, small pieces of words (in English, 1,000 words make about 1,300 tokens), so the exact price follows the length of your messages.

Can I pay with mobile money, without a bank card?

Yes. Top up your Tchavi account with Orange Money, MTN MoMo, M-Pesa or another mobile money operator. No bank card is needed. Credits land as soon as the payment is confirmed and are deducted as you use them.

Is the API compatible with OpenAI's?

Yes. Keep your current OpenAI SDK, just change the base URL to Tchavi's (shown in the API tab) and use your Tchavi key. The rest of your code stays the same.

API

import Tchavi from '@tchavi/sdk';

const client = new Tchavi({ apiKey: 'API_KEY' });

const response = await client.chat.completions.create({
  model: 'qwen4-max',
  messages: [
  {
    "role": "user",
    "content": "Hello!"
  }
],
});

console.log(response.choices[0].message.content);
console.log('Credits used:', response.tchavi.credits_used);

API parameters

Every parameter this model accepts on the API. Check the SDK for full typings.

modelRequired
string

ID of the chat model (e.g. `qwen4-max`).

messagesRequired
Array<{ role, content }>

Conversation messages. Each item has a `role` (system/user/assistant) and a `content` that's either a plain string or an array of content blocks (`text`, `image_url`, `document_url`).

temperature
number
Default: 1

Sampling temperature between 0 and 2. Higher values = more random.

max_tokens
integer

Maximum number of tokens to generate in the response.

max_completion_tokens
integer

Alias for `max_tokens`. Either field works; if both are sent, `max_completion_tokens` wins.

stream
boolean
Default: false

If true, partial message deltas are streamed as Server-Sent Events.

tools
Array<{ type, function }>

Function-calling toolbox. Pass an array of `{ type: "function", function: { name, description, parameters } }`. Returned tool calls land in `choices[].message.tool_calls`. Only models with `supportsTools: true` accept this.

tool_choice
"auto" | "none" | { type, function }

How the model picks among tools: `"auto"` (default), `"none"` to force a plain text reply, or `{ type: "function", function: { name } }` to force a specific tool. Only with `supportsTools: true`.

response_format
{ type: "json_object" | "text" }

Constrain the output. Pass `{ type: "json_object" }` to force valid JSON (the model still needs a JSON instruction in your prompt). Only models with `supportsJsonMode: true` honour this.

Pricing

-20%Limited offer: the discount applies to every price for this model until February 15, 2027.
per 1,000 tokens
2.78 credits
Input 3.474 · Output 10.421 cr/1K

How billing works

  • Billed per token used, down to a thousandth of a credit.
  • A typical message (500 in, 150 out) costs about —, or 2.641 credits.
  • Prompt cache reads: — per 1K tokens (0.14 credits).
Real-world scenarios
Per day
Per week
Per month

Estimated over 30 days, for a typical message: ~500 input + ~150 output tokens, billed to the thousandth of a credit.

A 10 000 F CFA top-up gives you about ~11 360 questions. Pay with Orange Money, MTN MoMo or M-Pesa, no Visa card needed.

Ready to use Qwen4 Max?

Bonus credits on your first top-up · No card to sign up