# Qwen 4 Max

`qwen4-max` reasoning dial

Qwen 4 Max by Qwen is available through model.lol's OpenAI-, Anthropic- and Gemini-compatible API under the model id qwen4-max. It costs $0.54 per million input tokens and $1.6 per million output tokens ($0.027 per million cached input tokens), charged per token from a prepaid balance. That is 64% below Qwen's official API price. Context window: 1,000,000 tokens. Supports the reasoning dial: append -low, -medium, -high, -thinking, -nothinking to the id.

- **Input:** $0.54 per 1M tokens
- **Output:** $1.6 per 1M tokens
- **Cached input:** $0.027 per 1M tokens
- **Vs official price:** −64%input price
- **Context window:** 1M 1,000,000 tokens

|  |  |
| --- | --- |
| Vendor | Qwen |
| Prompt-cache writes | $0.675 (5 min) / $1.08 (1 hour) per 1M tokens: 1.25× and 2× the input price |
| Reasoning dial | `qwen4-max-low` `qwen4-max-medium` `qwen4-max-high` `qwen4-max-thinking` `qwen4-max-nothinking` |
| Also accepted as | `qwen/qwen4-max` `qwen4-max-preview` |
| Added to the catalog | 2026-11-28 |
| Catalog entry updated | 2026-11-28 |

Prices are what a prepaid model.lol balance is charged per token; every answer reports the exact amount in `usage.cost`. A refused or moderated request also carries a violation fee (see [billing](https://model.lol/docs.md#billing)). Signed-in accounts in a pricing group see their group rate on [/pricing](https://model.lol/pricing.md).

## Call it

```
$ curl https://api.model.lol/v1/chat/completions \
  -H "Authorization: Bearer ml-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen4-max",
    "messages": [{"role": "user", "content": "hi"}]
  }'
```

OpenAI SDKs: `base_url = https://api.model.lol/v1`. Anthropic SDKs and `POST /v1/messages` take the same id, and so does Claude Code:

```
export ANTHROPIC_BASE_URL=https://api.model.lol
export ANTHROPIC_AUTH_TOKEN=ml-your-key
claude --model qwen4-max
```

Gemini SDKs, the Responses API, streaming and tool calls: see the [docs](https://model.lol/docs.md).
