Back to Models

GLM 5.1

zhipuzhipu/glm-5.1

Zhipu AI GLM 5.1 — latest flagship model with enhanced reasoning and coding capabilities.

Context Length
203K
Max Output
131K
Input Price
$0.588/ 1M tokens
Output Price
$4.70/ 1M tokens

Modalities

texttext

Pricing Breakdown

TypeRate
Input$0.588 / 1M tokens
Output$4.70 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

API Usage Examples

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "zhipu/glm-5.1",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'