🎁 Sign up, get $1. Join Discord, get $5!
Models
Playground
Activity
Docs
Resource
Console
Q

Qwen4 Max

5% off
AlibabaModel IDqwen4-max

Summary

What is Qwen4 Max?

Qwen4 Max is the flagship model in Alibaba's Qwen4 series. It accepts text, image, and video input and returns text, with a 1M-token context window and reasoning enabled by default. Reasoning effort can be set to low, high, or xhigh (default high), or reasoning can be turned off. Tool calling and structured outputs are supported.

Capabilities

VisionReasoningTool useFunction callingStructured outputs

Use cases

flagshipnative-visionagentic-codinglong-contextdeep-reasoning

Pricing

UsageRateMTok
Input tokens$1.5$1.42
Output tokens$4.5$4.27
Cache read tokens$0.075$0.071
Cache write tokens$1.88$1.78
Cache write tokens (1h)$3$2.85

Integration

Code Example

curl -X POST 'https://octopusx.ai/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "qwen4-max",
    "messages": [
      {
        "role": "user",
        "content": "your prompt"
      }
    ],
    "max_completion_tokens": 4096,
    "stream": false,
    "thinking_budget": 1024
  }'
# Result: choices[0].message.content (json)

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

Authorization: Bearer ${API_KEY}

Endpoint Path

POST

Supported Parameters

ParameterTypeRequiredDefaultDescription
textareaRequired—Prompt
select—1024Thinking Budget (Tokens) 1024 / 2048

Response extraction

choices[0].message.contentjson