---
title: Qwen2 72B Instruct API | Text Generation | ModelsLab
description: Build with Qwen2 72B Instruct API by Qwen. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/Qwen/qwen-qwen2-72b-instruct.md
canonical: https://modelslab.com/models/Qwen/qwen-qwen2-72b-instruct.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-26T08:19:02.556398Z
---

Qwen2 72B Instruct
---

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

Qwen-Qwen2-72B-Instruct Qwen Closed Source Model $0.900000 / call

Qwen2 72B Instruct
---

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

### Qwen2 72B Instruct

Qwen Qwen-Qwen2-72B-Instruct

Copy model ID

PricingInput $0.90 / 1M tokens

Output $0.90 / 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)

[#### open\_router/DeepSeek: R1 Distill Llama 70B

deepseek-deepseek-r1-distill-llama-70b

From $0.75/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-r1-distill-llama-70b)

[#### open\_router/Anthropic: Claude Opus 4.6

anthropic-claude-opus-4.6

From $15.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-opus-4.6)

[#### open\_router/OpenAI: gpt-oss-20b

openai-gpt-oss-20b

From $0.09/M tokens](https://modelslab.com/models/open_router/openai-gpt-oss-20b)

[#### open\_router/Morph: Morph V3 Fast

morph-morph-v3-fast

From $1.00/M tokens](https://modelslab.com/models/open_router/morph-morph-v3-fast)

[#### open\_router/xAI: Grok 4.3

x-ai-grok-4.3

From $1.88/M tokens](https://modelslab.com/models/open_router/x-ai-grok-4.3)

[#### together\_ai/Qwen2.5 1.5B

Qwen-Qwen2.5-1.5B

Free](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B)

[#### together\_ai/Qwen3 Coder 30B A3b Instruct

Qwen-Qwen3-Coder-30B-A3B-Instruct

Free](https://modelslab.com/models/together_ai/Qwen-Qwen3-Coder-30B-A3B-Instruct)

[#### open\_router/Sao10K: Llama 3.1 70B Hanami x1

sao10k-l3.1-70b-hanami-x1

From $3.00/M tokens](https://modelslab.com/models/open_router/sao10k-l3.1-70b-hanami-x1)

[#### open\_router/Qwen: Qwen3.7 Max

qwen-qwen3.7-max

From $5.00/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.7-max)

[#### together\_ai/Meta Llama 3.2 3B

meta-llama-Llama-3.2-3B

Free](https://modelslab.com/models/together_ai/meta-llama-Llama-3.2-3B)

[#### together\_ai/Qwen3-VL-8B-Instruct

Qwen-Qwen3-VL-8B-Instruct

From $0.43/M tokens](https://modelslab.com/models/together_ai/Qwen-Qwen3-VL-8B-Instruct)

[#### open\_router/Google: Gemma 3 4B

google-gemma-3-4b-it

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

[#### open\_router/Baidu Qianfan: CoBuddy (free)

baidu-cobuddy-free

Free](https://modelslab.com/models/open_router/baidu-cobuddy-free)

[#### together\_ai/nim/meta/llama-3.2-90b-vision-instruct

nim-meta-llama-3.2-90b-vision-instruct

Free](https://modelslab.com/models/together_ai/nim-meta-llama-3.2-90b-vision-instruct)

[#### together\_ai/Deepseek Coder 33B Instruct

deepseek-ai-deepseek-coder-33b-instruct

From $0.80/M tokens](https://modelslab.com/models/together_ai/deepseek-ai-deepseek-coder-33b-instruct)

[#### together\_ai/OpenAI GPT-OSS 120B

openai-gpt-oss-120b

From $0.11/M tokens](https://modelslab.com/models/together_ai/openai-gpt-oss-120b)

[#### open\_router/Mistral: Ministral 3 14B 2512

mistralai-ministral-14b-2512

From $0.20/M tokens](https://modelslab.com/models/open_router/mistralai-ministral-14b-2512)

[#### open\_router/MoonshotAI: Kimi K2 0711

moonshotai-kimi-k2

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

About Qwen2 72B Instruct
---

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

### Technical Specifications

Model IDQwen-Qwen2-72B-Instruct

CategoryLLM Models

TaskText Generation

Price$0.9 per million tokens

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 Qwen2 72B Instruct 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-Instruct",
        "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>
```

### Pricing

Qwen2 72B Instruct API costs $0.900000 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)

Qwen2 72B Instruct FAQ
---

### What is Qwen2 72B Instruct?

Qwen2 72B Instruct 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 Qwen2 72B Instruct API?

You can integrate Qwen2 72B Instruct 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-Instruct" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Qwen2 72B Instruct cost?

Qwen2 72B Instruct costs $0.900000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Qwen2 72B Instruct model ID?

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

### Does Qwen2 72B Instruct have a free tier?

Yes, ModelsLab offers a free tier that lets you try Qwen2 72B Instruct 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-26*