Back to Models

Qwen3 32B

qwenqwen/qwen3-32b

API guide

Chat completion

Standard OpenAI-compatible chat completions. Omit the reasoning parameter for non-thinking (fast) mode; set reasoning: {} or a budget to enable thinking mode.

cURL
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

Enable deep chain-of-thought reasoning via the reasoning parameter. The model emits a <think>…</think> block before the final answer β€” parse or strip it before showing to end users.

cURL
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
  }'

Streaming

Stream responses for interactive UIs. Thinking mode streams the <think> block first, then the answer β€” handle both segments in your reader loop.

cURL
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 supports tools in both thinking and non-thinking modes β€” useful for agentic pipelines that need reasoning traces alongside tool execution.

cURL
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 mode

Use JSON mode for structured extraction, classification pipelines, and RAG ranking that need machine-readable output.

cURL
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"}
  }'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Architecturehuggingface.co β†—2026-06-08verified
Parametershuggingface.co β†—2026-06-08verified
Layershuggingface.co β†—2026-06-08verified
Attention heads (GQA)huggingface.co β†—2026-06-08verified
Native context windowhuggingface.co β†—2026-06-08verified
Thinking modehuggingface.co β†—2026-06-08verified
Language supportqwenlm.github.io β†—2026-06-08verified
Licensehuggingface.co β†—2026-06-08verified
Pretraining dataqwenlm.github.io β†—2026-06-08verified
AIME 2024qwenlm.github.io β†—2026-06-08verified
MATH-500qwenlm.github.io β†—2026-06-08verified
LiveCodeBenchqwenlm.github.io β†—2026-06-08verified
BFCL (Berkeley Function-Calling Leaderboard)qwenlm.github.io β†—2026-06-08verified
MMLU-Proqwenlm.github.io β†—2026-06-08verified
C-Evalqwenlm.github.io β†—2026-06-08verified
Qwen3 launches dense 32B open-weight model with hybrid thinking modesQwen3 announcement β†—2026-06-08verified
Help & contact