Zhipu AI: glm-5

Price, performance, capabilities, and a ready-to-use request for glm-5.
Compare models
glm-5
AvailableZhipu AIChatCached input 80% less
Input / Output
$1.00 / $3.20
Context
200K
Max output
128K
Modalities
Chat
Capabilities
Tool usePrompt Cache

Getting started

  1. Create API key

    Create a key in Console, then use it with every model on the platform.

  2. Send your first request

    Copy the example for your language and run it against the endpoint.

    messagesNative (Messages API)
    POST/v1/messages
    API format:
    curl https://api.tokenlab.sh/v1/messages \
      -H "Content-Type: application/json" \
      -H "x-api-key: sk-xxx" \
      -H "anthropic-version: 2023-06-01" \
      -d '{
        "model": "glm-5",
        "max_tokens": 1024,
        "messages": [
          {"role": "user", "content": "Hello!"}
        ]
      }'

Pricing

Official price is the model maker's public baseline. TokenLab price is what you pay for this model on TokenLab.

Default

Per 1M tokens
Official price
Input $1.00 / Output $3.20 / Cache read $0.20 / Cache write $0.00 / Text Input $1.00 / Text Output $3.20
TokenLab price
Input $1.00 / Output $3.20 / Cache read $0.20 / Cache write $0.00 / Text Input $1.00 / Text Output $3.20
Discount
-
Prompt cache pricing

Cache read

Official price
$0.20
TokenLab price
$0.20
Discount
-

Cache write

Official price
$0.00
TokenLab price
$0.00
Discount
-

Usage & activity

Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.

Usage & availability

Last 24 hours

No data yet

Model performance
Metrics appear once privacy and data volume thresholds are met.

Data is based on aggregate user requests, excluding status checks.

Open in Console

Open glm-5 in Console with a prompt ready to edit or send.

Help me try glm-5 with a short message at /v1/messages. Show the reply, latency, and cost.

Use cases

01

Agents and tools

Handle reasoning, support triage, tool calls, and multi-step tasks.

02

Coding

Generate, review, or debug code in the tools you already use.

03

Knowledge assistants

Build chat, search, and retrieval with a clear price and capability profile.

04

Side-by-side test

Compare response quality, latency, and price side by side.

Prompt examples

Write a concise support reply and list the assumptions behind it.

Review this API design and call out the top three integration risks.

Turn a long changelog into release notes a non-engineer would read.

This model has conditional pricing. Monthly token totals alone cannot produce a reliable estimate; use the detailed pricing for the request specification, cache, and applicable time window.

FAQ

How much does glm-5 cost?

On TokenLab, glm-5 costs Input $1.00 / Output $3.20 Per 1M tokens. The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.

What is glm-5 best for?

glm-5 supports Prompt Cache, Tool use. You can open it directly in Create.

How do I test glm-5?

Open glm-5 in Create. A sample for /v1/messages will be ready to try.

Which endpoint should glm-5 use?

Use https://api.tokenlab.sh/v1/messages for glm-5. The request example below shows the matching code shape.

Can I test glm-5 before integrating it?

Yes. Open Console starts a ready draft for glm-5 and keeps your prompt after sign-in, so you don’t lose context.

Which operations does glm-5 support?

glm-5 supports messages. Select an operation above to see its endpoint and request example.

More from GLM

Related models