Z.ai's GLM-5 model. Strong bilingual capabilities with excellent Chinese and English language support.

Model highlights
  • Bilingual Chinese/English
  • Strong reasoning
  • Code generation
  • Content creation
  • Cost-efficient
Modalities
IntextOuttext
Input / output
$1.00 / $3.20USD per 1M tokens
Context
128K
Providers
5 live

Chat with GLM-5 free →

Playground

Preparing playground

Providers

primary——
fallback——
fallback——
emergency——
emergency25.4s100%

Performance

Request success
100%
Time to first token
11.2s
Generation speed
84.1tok/s

Response latency estimates

Time to first token

Generation speed · tok/s

Request success

Text-model timing and speed, plus API request success. Daily latency percentiles are estimates. Your request logs

API

POST/api/v1/chat/completionsOpenAI-compatible
glm-5
curl https://www.ninjachat.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
messagestemperaturemax_completion_tokenstop_pstopfrequency_penaltypresence_penaltyseedstreamuserroutingtoolstool_choiceresponse_format

Pricing

Input
$1.00/M tokens
Cached input
$0.10/M tokens
Output
$3.20/M tokens

Published USD rates. Actual cost depends on input, output, cache usage and request options.