GLM 5

Zhipu Ai chatreasoningtool_use Long

API ID: z-ai/glm-5-20260211

Input Price
$0.60
/1M tokens
Output Price
$2.08
/1M tokens
Cached Input
$0.12
Save 80%

About GLM 5

GLM 5 is a mid-range general-purpose model from Zhipu Ai with ultra-long context (205k), suitable for conversations, content creation, and general AI tasks.

💰
Price Ranking
#986 lowest price among 1240 Chat models

Model Specifications

Context Length
205k
Max Output
16k
Release Date
2026-02-11
Capabilities
chat reasoning tool_use
Input Modalities
text
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
  • Simple Q&A (cheaper models available)

💰 Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.89
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$27.72
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$38.46
/month
500 analyses/day, ~2k tokens each

Zhipu Ai Model Lineup

Compare all models from Zhipu Ai to find the best fit

Model Input Output Context Capabilities
GLM 5 Current Free Free 205k chat reasoning tool_use
GLM 4 9B Free Free 32k chat
GLM 4 9B Free Free 32k chat
GLM 4 32B Free Free 33k chat
GLM 4 32B Free Free 33k chat
GLM 4.1V 9B Thinking Free Free 66k chat vision reasoning

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

DeepSeek DeepSeek Prover V2
Input: $0.50
Output: $2.18
Context: 164k
Moonshot AI Kimi K2.5
Input: $0.45
Output: $2.20
Context: 262k
OpenAI GPT-5.4 Mini (batch)
Input: $0.38
Output: $2.25
Context: 400k
Other Noromaid 20B
Input: $1.00
Output: $1.75
Context: 8k

🚀 Quick Start

Get started with GLM 5 API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="z-ai/glm-5-20260211",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)