---
title: Qwen 2 (72B) API | Text Generation | ModelsLab
description: Build with Qwen 2 (72B) API by Qwen. Text generation, chat, code, and reasoning. Plans from $21/month.
url: https://modelslab.com/models/qwen/qwen-qwen2-72b.md
canonical: https://modelslab.com/models/qwen/qwen-qwen2-72b
type: product
component: Playground/LLM/Index
generated_at: 2026-07-27T09:57:04.469963Z
---

Qwen 2 (72B)
---

 [LLMs.txt](https://modelslab.com/models/qwen/Qwen-Qwen2-72B/llms.txt) [.md](https://modelslab.com/models/Qwen/Qwen-Qwen2-72B.md)

Qwen 2 (72B)
---

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 2 (72B)

Qwen Qwen-Qwen2-72B

Copy model ID

PricingInput $0.00 / 1M tokens

Output $0.00 / 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

Open Source Alternatives
---

Similar models we host ourselves — unlimited on the $149/month Open Source Unlimited plan, where this model is billed per call from your wallet

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MC

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Custom LLM

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

[![GPT 5.2](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/2bdd00f4-1692-49d8-a562-72cb1753d0ff.png)](https://modelslab.com/models/openai/gpt-5.2)[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.2

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

[![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)

[![GPT 5.1](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)](https://modelslab.com/models/openai/gpt5.1)[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.1

Closed Source Model](https://modelslab.com/models/openai/gpt5.1)

[![GPT-5.1-Codex-Max](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/06356c4c-df09-4ccb-a5c0-629da670f75b.png)](https://modelslab.com/models/openai/gpt-5.1-codex-max)[OpenAI](https://modelslab.com/models/openai)

 [GPT-5.1-Codex-Max

Closed Source Model](https://modelslab.com/models/openai/gpt-5.1-codex-max)

Related Models
---

Discover similar models you might be interested in

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

[#### Anthropic/Anthropic: Claude Sonnet 4.5

anthropic-claude-sonnet-4.5

From $9.00/M tokens](https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4.5)

[#### Mancer/Mancer: Weaver (alpha)

mancer-weaver

From $0.63/M tokens](https://modelslab.com/models/mancer/mancer-weaver)

[#### Mistral AI/Mistral Large 2407

mistralai-mistral-large-2407

From $4.00/M tokens](https://modelslab.com/models/mistralai/mistralai-mistral-large-2407)

[#### NVIDIA/NVIDIA: Nemotron 3 Nano 30B A3B (free)

nvidia-nemotron-3-nano-30b-a3b-free

Free](https://modelslab.com/models/nvidia/nvidia-nemotron-3-nano-30b-a3b-free)

[#### Google/Google: Gemma 4 31B

google-gemma-4-31b-it

From $0.27/M tokens](https://modelslab.com/models/google/google-gemma-4-31b-it)

[#### Anthropic/Anthropic: Claude Sonnet 4

anthropic-claude-sonnet-4

From $9.00/M tokens](https://modelslab.com/models/anthropic/anthropic-claude-sonnet-4)

[#### Sao10K/Sao10K: Llama 3 8B Lunaris

sao10k-l3-lunaris-8b

From $0.04/M tokens](https://modelslab.com/models/sao10k/sao10k-l3-lunaris-8b)

[#### Arcee AI/Arcee AI Coder-Large

arcee-ai-coder-large

From $0.65/M tokens](https://modelslab.com/models/arcee-ai/arcee-ai-coder-large)

[#### Qwen/Qwen: Qwen3 Coder Plus

qwen-qwen3-coder-plus

From $1.95/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-coder-plus)

[#### Inception/Inception: Mercury 2

inception-mercury-2

From $0.50/M tokens](https://modelslab.com/models/inception/inception-mercury-2)

[#### Meta/Typhoon 2.1 12B

scb10x-scb10x-typhoon-2-1-gemma3-12b

From $0.24/M tokens](https://modelslab.com/models/meta/scb10x-scb10x-typhoon-2-1-gemma3-12b)

[#### Qwen/Qwen: Qwen3 30B A3B Instruct 2507

qwen-qwen3-30b-a3b-instruct-2507

From $0.12/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-30b-a3b-instruct-2507)

[#### Google/Google: Gemma 3n 4B

google-gemma-3n-e4b-it

From $0.09/M tokens](https://modelslab.com/models/google/google-gemma-3n-e4b-it)

[#### Qwen/Qwen: Qwen3 8B

qwen-qwen3-8b

From $0.29/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-8b)

[#### Thinking Machines/Thinking Machines: Inkling

thinkingmachines-inkling

From $2.52/M tokens](https://modelslab.com/models/thinkingmachines/thinkingmachines-inkling)

[#### Moonshot AI/MoonshotAI: Kimi K2.5

moonshotai-kimi-k2.5

From $1.71/M tokens](https://modelslab.com/models/moonshotai/moonshotai-kimi-k2.5)

[#### Writer/Writer: Palmyra X5

writer-palmyra-x5

From $3.30/M tokens](https://modelslab.com/models/writer/writer-palmyra-x5)

[#### Mistral AI/Mistral Large

mistralai-mistral-large

From $4.00/M tokens](https://modelslab.com/models/mistralai/mistralai-mistral-large)

About Qwen 2 (72B)
---

Qwen 2 (72B) is a text generation AI model by Qwen available on ModelsLab. Access Qwen 2 (72B) through our API with pay-per-use pricing and no minimum commitments.

### Technical Specifications

Model IDQwen-Qwen2-72B

CategoryLLM Models

TaskText Generation

AddedMay 21, 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 2 (72B) 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-Qwen2-72B",
        "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>
```

### 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 2 (72B) FAQ
---

### What is Qwen 2 (72B)?

Qwen 2 (72B) is a text generation AI model by Qwen available on ModelsLab. Access it through our API with pay-per-use pricing and no minimum commitments.

### How do I use the Qwen 2 (72B) API?

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

### What is the Qwen 2 (72B) model ID?

The model ID for Qwen 2 (72B) is "Qwen-Qwen2-72B". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use Qwen 2 (72B)?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*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-07-27*