Alibaba: Qwen4 Max

LLM New
qwen4-max by Alibaba

Alibaba Qwen4 Max model ($1.5/$4.5 per 1M tokens) with 1M context and 95% prompt cache read savings.

Context Window 1M Max output 131K
In / Out Price $1.5 / $4.5USD / 1M · Official list rate
Cache Read $0.075 (-95%) Write $1.875 / 1M
Modalities & Effort Text + Image + Video → Text Reasoning effort: medium

Pricing & Cost Calculator

Per-1M token pricing on OpenDesign Go.

Estimate Request Cost
Input cost10,000 × $1.5/1M $0.015
Output cost2,000 × $4.5/1M $0.009
Cache read0 × $0.075/1M $0
Estimated request cost $0.024
Standard tier
Input$1.5 / 1M
Output$4.5 / 1M
Cache read$0.075 / 1M
Cache write$1.875 / 1M
Input LengthInputOutputCache ReadCache Write
Standard$1.5$4.5$0.075$1.875
1,000 Quick Chats
$10.5
4K input + 1K output tokens each
100 Coding Agent Turns
$3.6
10K fresh + 40K cached + 4K output each
10 Long-Context Reviews
$2.43
150K input + 4K output per review
Flat rate across the full context window — no long-context surcharge.

Specs & Parameters

Context Window1M
Max Output131,072
Reasoning EffortDefault: medium
Prompt Caching$0.075/1M (-95%)
ParameterTypeValue / Support
modelstringqwen4-max
messages / inputarraytext, image, video
max_tokensinteger≤ 131,072
streambooleanSSE token streaming
reasoning_effortstringnone / low / medium / high (default: medium)
tools / response_formatobjectFunction calling & JSON schema

Routing, Reliability & Privacy

Managed upstream routing with automatic failover, locked public pricing, and zero data retention.

Upstream Routing Multi-Route Failover Automatic priority routing and upstream failover managed continuously by OpenDesign Go Link.
Price Consistency Locked Public Rate Rates stay fixed across upstream failover.
Auto-Availability 5xx Circuit Breaker Unhealthy backends automatically enter cooldown/probation while traffic shifts to healthy routes.
Data Policy (ZDR) Zero Payload Storage Logs only member, model, token/media units, and usage cost — never prompts, outputs, or media bytes.

API

Call qwen4-max using OpenAI Compatible (Chat / Responses).

1

Set your OpenDesign Go API key

export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: https://amr-link.open-design.ai/v1
2

Make your first request

Chat Completionshttps://amr-link.open-design.ai/v1/chat/completions
curl https://amr-link.open-design.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COROUTER_API_KEY" \
  -d '{
    "model": "qwen4-max",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Refactor this API handler for streaming responses." }
    ]
  }'
3

Inspect response payload & HTTP errors

HTTP 200 OKqwen4-max
{
  "id": "chatcmpl_od_01j9x7k2m8",
  "object": "chat.completion",
  "model": "qwen4-max",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Here is the streaming handler implementation..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 50000,
    "completion_tokens": 4000,
    "total_tokens": 54000,
    "prompt_tokens_details": {
      "cached_tokens": 40000
    }
  }
}

Coding Agents

Pre-filled configurations for Qwen4 Max across supported coding tools.

OpenAI Compatibleopencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "corouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenDesign Go",
      "options": {
        "baseURL": "https://amr-link.open-design.ai/v1",
        "apiKey": "{env:COROUTER_API_KEY}"
      },
      "models": {
        "qwen4-max": {
          "name": "Qwen4 Max"
        }
      }
    }
  },
  "model": "corouter/qwen4-max"
}

Compare Models

Side-by-side pricing, context window, and 50K-token coding turn estimate.

ModelProviderContextInputOutputCache Read50K Turn
Qwen4 Max Current
Alibaba1M$1.5$4.5$0.075(-95%)$0.036
Alibaba1M$2.5$7.5$0.5(-80%)$0.075
Alibaba1M$0.45$3.2$0.05(-89%)$0.0193
OpenAI1.05M$8$1.2$40$6$0.4$0.06(-95%)$0.256$0.0384
OpenAI1.05M$2$0.3$10$1.5$0.1$0.015(-95%)$0.064$0.0096

Frequently Asked Questions

Qwen4 Max (qwen4-max) is billed at official list rates: $1.5/1M input and $4.5/1M output, with prompt cache reads at $0.075/1M (-95%).

Qwen4 Max supports Text + Image + Video → Text with a 1M context window and up to 131,072 output tokens.

Yes. Qwen4 Max supports reasoning_effort levels (none / low / medium / high) with a default of medium.

Cached prompt reads on Qwen4 Max are billed at $0.075/1M tokens (-95% vs standard input), with cache writes at $1.875/1M.

Yes. Copy the pre-filled configuration in the Coding Agents section above, set model to "qwen4-max", and replace YOUR_API_KEY with your OpenDesign Go key.

No. OpenDesign Go enforces Zero Data Retention and records only account, model, token counts, and usage cost — never prompt or response bodies.

More models from Alibaba

View provider page

Explore more models

Full directory