Z.ai: GLM 5 Turbo

glm-5-turbo

GLM 5 Turbo costs $1.56 per million input tokens and $5.20 per million output tokens, supports 203K context, and is available through the OpenAI-compatible API.

Fast GLM 5 Turbo variant from Z-AI for general chat, coding, and tool use.

Modalities

Text → Text

Input / output price

$1.56 / $5.20 per 1M

Context

203K · max output 131K

Capabilities

Tool callingOpen weights

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$1.56
Output$5.20
Cached input$0.312

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.00884
Per day
$4.42
Per month (30 days)
$132.60

GLM 5 Turbo: input $1.56/M · output $5.2/M · cached input $0.312/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "glm-5-turbo", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to glm-5-turbo.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5-turbo",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is GLM 5 Turbo billed?
Input is $1.56 and output is $5.20 per million tokens; cached input is $0.312. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
203K tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.
GLM 5 Turbo API pricing · GeniusRelay