---
title: Qwen QwQ 32B API | Text Generation | ModelsLab
description: A 32.5 billion parameter reasoning model with 64 layers and 48K+ token context, optimized for math, coding, and complex problem-solving via reinforcement.
url: https://modelslab.com/models/qwen/qwen-qwq-32b.md
canonical: https://modelslab.com/models/qwen/qwen-qwq-32b.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-14T22:31:05.331070Z
---

Qwen QwQ-32B
---

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

Qwen-QwQ-32B qwen Closed Source Model $1.200000 / call

Qwen QwQ-32B
---

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 QwQ-32B

qwen Qwen-QwQ-32B

Copy model ID

PricingInput $1.20 / 1M tokens

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

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

 [OpenAI: GPT-5.1-Codex-Mini

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

[Q7](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 7B

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

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

 [OpenAI: gpt-oss-120b

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

[IM](https://modelslab.com/models/open_router/inception-mercury)[Open Router](https://modelslab.com/models/open_router)

 [Inception: Mercury

Closed Source Model](https://modelslab.com/models/open_router/inception-mercury)

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

 [ByteDance Seed: Seed-2.0-Lite

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

[ZG](https://modelslab.com/models/open_router/z-ai-glm-4.7-flash)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 4.7 Flash

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-4.7-flash)

[KK](https://modelslab.com/models/open_router/kwaipilot-kat-coder-pro-v2)[Open Router](https://modelslab.com/models/open_router)

 [Kwaipilot: KAT-Coder-Pro V2

Closed Source Model](https://modelslab.com/models/open_router/kwaipilot-kat-coder-pro-v2)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3.5-397b-a17b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3.5 397B A17B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3.5-397b-a17b)

[NM](https://modelslab.com/models/together_ai/nim-nv-mistralai-mistral-nemo-12b-instruct)[Together AI](https://modelslab.com/models/together_ai)

 [nim/nv-mistralai/mistral-nemo-12b-instruct

Closed Source Model](https://modelslab.com/models/together_ai/nim-nv-mistralai-mistral-nemo-12b-instruct)

[OG](https://modelslab.com/models/open_router/openai-gpt-oss-120b-free)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: gpt-oss-120b (free)

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

[BE](https://modelslab.com/models/open_router/baidu-ernie-4.5-vl-424b-a47b)[Open Router](https://modelslab.com/models/open_router)

 [Baidu: ERNIE 4.5 VL 424B A47B

Closed Source Model](https://modelslab.com/models/open_router/baidu-ernie-4.5-vl-424b-a47b)

[M8](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x22B-Instruct-v0.1)[Together AI](https://modelslab.com/models/together_ai)

 [Mixtral 8X22b Instruct V0.1

Closed Source Model](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x22B-Instruct-v0.1)

[DR](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-R1-Distill-Llama-70B)[Together AI](https://modelslab.com/models/together_ai)

 [DeepSeek R1 Distill Llama 70B

Closed Source Model](https://modelslab.com/models/together_ai/deepseek-ai-DeepSeek-R1-Distill-Llama-70B)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b-thinking-2507)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 30B A3B Thinking 2507

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b-thinking-2507)

[MM](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2.5)[Together AI](https://modelslab.com/models/together_ai)

 [MiniMax M2.5 FP4

Closed Source Model](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2.5)

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

 [ByteDance Seed: Seed 1.6 Flash

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

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

 [xAI: Grok 3 Mini Beta

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

[GG](https://modelslab.com/models/open_router/google-gemini-2.0-flash-001)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 2.0 Flash

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.0-flash-001)

About Qwen QwQ-32B
---

A 32.5 billion parameter reasoning model with 64 layers and 48K+ token context, optimized for math, coding, and complex problem-solving via reinforcement learning.

### Technical Specifications

Model IDQwen-QwQ-32BCategoryLLM ModelsTaskText GenerationPrice$1.200000 per million tokensAddedJuly 22, 2025

### 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 QwQ-32B 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-QwQ-32B",
        "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-QwQ-32B/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Qwen QwQ-32B API costs $1.200000 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

[Learn more about Qwen QwQ-32B](https://modelslab.com/qwen-qwq-32b) [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 QwQ-32B FAQ
---

### What is Qwen QwQ-32B?

A 32.5 billion parameter reasoning model with 64 layers and 48K+ token context, optimized for math, coding, and complex problem-solving via reinforcement learning.

### How do I use the Qwen QwQ-32B API?

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

### How much does Qwen QwQ-32B cost?

Qwen QwQ-32B costs $1.200000 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 QwQ-32B model ID?

The model ID for Qwen QwQ-32B is "Qwen-QwQ-32B". Use this ID in your API requests to specify this model.

### Does Qwen QwQ-32B have a free tier?

Yes, ModelsLab offers a free tier that lets you try Qwen QwQ-32B 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-04-15*