Models

GLM 5.2

tools

glm-5.2GLM-5.2 is a powerful large language model from Z.ai, designed for advanced reasoning, coding.

Input / 1M tokens

$0.41

$0.00000041 / token

Output / 1M tokens

$3.99

$0.00000399 / token

Cached input / 1M

$0.26

Uptime · 24h

100%

10 requests

Details

Type
Chat
Input
text
Output
text

Supported parameters

max_tokenstemperaturetop_pstopseedpresence_penaltyfrequency_penaltyresponse_formatpluginstoolstool_choiceparallel_tool_calls

Last 24 hours

Requests per hour; red = provider errors.

Avg latency
6.6s
Avg first token
1.5s
Throughput
269.4 tok/s

Use it

curl https://api.ultragpt.pro/v1/chat/completions \
  -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Anthropic SDK / Claude Code

curl https://api.ultragpt.pro/v1/messages \
  -H "x-api-key: $ULTRAGPT_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'