---
title: Qwen: Qwen Max  API | Text Generation | ModelsLab
description: Build with Qwen: Qwen Max  API by Qwen. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/qwen/qwen-qwen-max/api.md
canonical: https://modelslab.com/models/qwen/qwen-qwen-max/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-05T18:52:58.564427Z
---

Qwen: Qwen-Max 
---

 [LLMs.txt](https://modelslab.com/models/open_router/qwen-qwen-max/llms.txt) [.md](https://modelslab.com/models/qwen/qwen-qwen-max.md)

qwen-qwen-max qwen Closed Source Model $2.600000 / call

Qwen: Qwen-Max 
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Qwen: Qwen-Max 

qwen qwen-qwen-max

Copy model ID

PricingInput $1.04 / 1M tokens

Output $4.16 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[NA](https://modelslab.com/models/open_router/nex-agi-deepseek-v3.1-nex-n1)[Open Router](https://modelslab.com/models/open_router)

 [Nex AGI: DeepSeek V3.1 Nex N1

Closed Source Model](https://modelslab.com/models/open_router/nex-agi-deepseek-v3.1-nex-n1)

[QQ](https://modelslab.com/models/open_router/qwen-qwen-plus)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen-Plus

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen-plus)

[OG](https://modelslab.com/models/open_router/openai-gpt-5-nano)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5 Nano

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5-nano)

[OG](https://modelslab.com/models/together_ai/openai-gpt-oss-120b)[Together AI](https://modelslab.com/models/together_ai)

 [OpenAI GPT-OSS 120B

Closed Source Model](https://modelslab.com/models/together_ai/openai-gpt-oss-120b)

[![Gemini 3 Pro Preview](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/1846e76f-9d5c-4a35-a43a-82db45b7bb8b.png)](https://modelslab.com/models/google/gemini-3-pro-preview)[Google](https://modelslab.com/models/google)

 [Gemini 3 Pro Preview

Closed Source Model](https://modelslab.com/models/google/gemini-3-pro-preview)

[BS](https://modelslab.com/models/open_router/bytedance-seed-seed-2.0-mini)[Open Router](https://modelslab.com/models/open_router)

 [ByteDance Seed: Seed-2.0-Mini

Closed Source Model](https://modelslab.com/models/open_router/bytedance-seed-seed-2.0-mini)

[Q2](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-14B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen 2.5 14B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-14B-Instruct)

[Q2](https://modelslab.com/models/together_ai/Qwen-Qwen2-72B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen 2 (72B)

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2-72B)

[QV](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-VL-72B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5-VL (72B) Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-VL-72B-Instruct)

[OG](https://modelslab.com/models/open_router/openai-gpt-4)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4)

[QQ](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-72b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen2.5 VL 72B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen2.5-vl-72b-instruct)

[AN](https://modelslab.com/models/open_router/amazon-nova-premier-v1)[Open Router](https://modelslab.com/models/open_router)

 [Amazon: Nova Premier 1.0

Closed Source Model](https://modelslab.com/models/open_router/amazon-nova-premier-v1)

[OG](https://modelslab.com/models/open_router/openai-gpt-4-1106-preview)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4 Turbo (older v1106)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4-1106-preview)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-coder)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 Coder 480B A35B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-coder)

[XG](https://modelslab.com/models/open_router/x-ai-grok-4.3)[Open Router](https://modelslab.com/models/open_router)

 [xAI: Grok 4.3

Closed Source Model](https://modelslab.com/models/open_router/x-ai-grok-4.3)

[RL](https://modelslab.com/models/refuel_ai/togethercomputer-Refuel-Llm-V2-Small)[ModelsLab](https://modelslab.com/models/refuel_ai)

 [Refuel LLM V2 Small

Closed Source Model](https://modelslab.com/models/refuel_ai/togethercomputer-Refuel-Llm-V2-Small)

[CC](https://modelslab.com/models/open_router/cohere-command-r-08-2024)[Open Router](https://modelslab.com/models/open_router)

 [Cohere: Command R (08-2024)

Closed Source Model](https://modelslab.com/models/open_router/cohere-command-r-08-2024)

[DV](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3.1)[Together AI](https://modelslab.com/models/together_ai)

 [Deepseek V3.1

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-V3.1)

About Qwen: Qwen-Max 
---

Qwen-Max, based on Qwen2.5, provides the best inference performance among \[Qwen models\](/qwen), especially for complex multi-step tasks. It's a large-scale MoE model that has been pretrained on over 20 trillion...

### Technical Specifications

Model IDqwen-qwen-maxCategoryLLM ModelsTaskText GenerationPrice$2.600000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Qwen: Qwen-Max  into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "qwen-qwen-max",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/qwen/qwen-qwen-max/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Qwen: Qwen-Max  API costs $2.600000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Qwen](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Qwen: Qwen-Max FAQ
---

### What is Qwen: Qwen-Max ?

Qwen-Max, based on Qwen2.5, provides the best inference performance among \[Qwen models\](/qwen), especially for complex multi-step tasks. It's a large-scale MoE model that has been pretrained on over 20 trillion...

### How do I use the Qwen: Qwen-Max API?

You can integrate Qwen: Qwen-Max into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "qwen-qwen-max" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Qwen: Qwen-Max cost?

Qwen: Qwen-Max costs $2.600000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Qwen: Qwen-Max model ID?

The model ID for Qwen: Qwen-Max is "qwen-qwen-max". Use this ID in your API requests to specify this model.

### Does Qwen: Qwen-Max have a free tier?

Yes, ModelsLab offers a free tier that lets you try Qwen: Qwen-Max and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-06*