# Alibaba Qwen4 Max API

> Qwen4 Max is the flagship of Alibaba's Qwen 4 generation, released in November 2026. It is a multimodal reasoning model that takes text, images and video, with thinking on by default (reasoning_effort sets the depth), tool calling, web search and structured outputs, a 1M-token context and up to 393K output tokens shared by thinking and the answer. Alibaba positions it for coding, office work, frontend design and complex agent tasks, at a lower price than Qwen3.8 Max.

Source: https://www.sandbase.ai/models/alibaba/qwen4-max
API reference: https://www.sandbase.ai/models/alibaba/qwen4-max#api

## Facts

- Provider: Alibaba
- Type: Language model
- Model ID: `alibaba/qwen4-max`
- Price: $1.67 per 1M input tokens, $5 per 1M output tokens
- Context window: 1M tokens, up to 131.1K output tokens
- Capabilities: chat, vision, reasoning, structured output, function calling
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Chat Completions API: `POST https://api.sandbase.ai/v1/chat/completions`

```bash
curl -X POST https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/qwen4-max",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048
}'
```

## FAQ

### How do I call Alibaba Qwen4 Max through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/qwen4-max" to Chat Completions API (/v1/chat/completions) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### How much does Alibaba Qwen4 Max cost?

$1.67 per 1M input tokens and $5 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.

### What is the context window of Alibaba Qwen4 Max?

1M tokens of context, with up to 131.1K output tokens per response.

### Which features does Alibaba Qwen4 Max support?

Alibaba Qwen4 Max supports vision (image input), reasoning, function calling, structured output. See Specifications above for the full list.

### Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Qwen4 Max and the other models in the catalog; you do not need to sign up with Alibaba separately.
