Qwen3 32B
Гид по API
Chat completion
Стандартные OpenAI-совместимые chat completions. Опустите reasoning для non-thinking (быстрого) режима; установите reasoning: {} или бюджет для thinking mode.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-32b",
"messages": [
{"role": "user", "content": "Explain the tradeoffs between dense and MoE architectures for inference."}
],
"temperature": 0.7,
"max_tokens": 2048
}'Thinking mode
Включите deep chain-of-thought reasoning через параметр reasoning. Модель генерирует блок <think>…</think> перед финальным ответом — разберите или уберите его до показа пользователям.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-32b",
"messages": [
{"role": "user", "content": "Prove that the sum of two odd numbers is even."}
],
"reasoning": {},
"temperature": 0.6,
"max_tokens": 8192
}'Стриминг
Стримьте ответы для интерактивных UI. Thinking mode сначала стримит блок <think>, затем ответ — обрабатывайте оба сегмента в цикле чтения.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-32b",
"messages": [{"role": "user", "content": "Summarize the key points of the Qwen3 technical report."}],
"stream": true
}'Tool calling
Qwen3-32B поддерживает tools в обоих режимах — thinking и non-thinking — полезно для agentic пайплайнов с reasoning traces рядом с выполнением инструментов.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-32b",
"messages": [{"role": "user", "content": "What is the weather in Shanghai right now?"}],
"tools": [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}
}],
"tool_choice": "auto"
}'JSON-режим
JSON mode для структурированного извлечения, классификационных пайплайнов и RAG-ранжирования с machine-readable выводом.
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-32b",
"messages": [
{"role": "system", "content": "Return only JSON with keys: summary, sentiment, keywords."},
{"role": "user", "content": "Analyze this product review: The battery life is amazing but the screen is dim."}
],
"response_format": {"type": "json_object"}
}'Реестр фактов — каждая утверждаемая величина имеет источник
| источник | URL | получено | |
|---|---|---|---|
| Архитектура | huggingface.co ↗ | 2026-06-08 | проверено |
| Параметры | huggingface.co ↗ | 2026-06-08 | проверено |
| Слои | huggingface.co ↗ | 2026-06-08 | проверено |
| Головы внимания (GQA) | huggingface.co ↗ | 2026-06-08 | проверено |
| Нативный контекст | huggingface.co ↗ | 2026-06-08 | проверено |
| Режим мышления | huggingface.co ↗ | 2026-06-08 | проверено |
| Поддерживаемые языки | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| Лицензия | huggingface.co ↗ | 2026-06-08 | проверено |
| Данные предобучения | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| AIME 2024 | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| MATH-500 | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| LiveCodeBench | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| BFCL (Berkeley Function-Calling Leaderboard) | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| MMLU-Pro | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| C-Eval | qwenlm.github.io ↗ | 2026-06-08 | проверено |
| Qwen3 выпускает dense 32B open-weight model с hybrid thinking modes | Qwen3 announcement ↗ | 2026-06-08 | проверено |