GLM 4.5
z-ai/glm-4.5GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly enhanced capabilities in reasoning, code generation, and agent alignment. It supports a hybrid inference mode with two options, a "thinking mode" designed for complex reasoning and tool use, and a "non-thinking mode" optimized for instant responses. Users can control the reasoning behaviour with the `reasoning` `enabled` boolean. Learn more in our docs
- Input price
- $0.60USD / 1M tokens
- Output price
- $2.20USD / 1M tokens
- Context window
- N/A
- Max output
- 98.3K
Try the model
Playground
Try a prompt
Your response will appear here
Choose an example or write a prompt, then click Run.
Model card
Specifications
Pricing
- Input
- $0.60 / 1M tokens
- Output
- $2.20 / 1M tokens
- Cache read
- $0.11 / 1M tokens
Context & modalities
- Max output
- 98,304 tokens
- Input
- Text
- Output
- Text
Capabilities
- Chat
- Supported
- Vision
- Not supported
- Reasoning
- Supported
- Structured output
- Supported
- Function calling
- Supported
- Audio input
- Not supported
Access
- Provider
- Z.ai
- Model ID
- z-ai/glm-4.5
- Execution
- sync
- Base URL
- https://api.sandbase.ai
- API
- Chat Completions API
- Endpoint
- /v1/chat/completions
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "z-ai/glm-4.5",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}
SANDBASE_JSON
)
printf '%s\n' "$result"Choose your model
Compare models
| Model | Context | Input / 1M | Output / 1M | Released |
|---|---|---|---|---|
GLM 4.5This model Z.ai | — | $0.60 | $2.20 | Jul 25, 2025 |
Z.ai | — | Coming soon | Coming soon | Coming soon |
Z.ai | 1M | $0.37 | $1.25 | Sep 18, 2026 |
Z.ai | 1M | $0.15 | $0.50 | Aug 26, 2026 |
Z.ai | 1M | $1.40 | $4.40 | Aug 18, 2026 |
Z.ai | 1M | $1.40 | $4.40 | Jun 16, 2026 |
Questions
FAQ
How do I call Z.ai GLM 4.5 through SandBase?
Create a SandBase API key, then send requests with the model ID "z-ai/glm-4.5" to Chat Completions API (/v1/chat/completions) at https://api.sandbase.ai. The request examples on this page show the exact payload.
How much does Z.ai GLM 4.5 cost?
$0.60 per 1M input tokens and $2.20 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.
Which features does Z.ai GLM 4.5 support?
Z.ai GLM 4.5 supports reasoning, function calling, structured output. See Specifications above for the full list.
Do I need a separate Z.ai account?
No. One SandBase API key and balance gives you access to Z.ai GLM 4.5 and the other models in the catalog; you do not need to sign up with Z.ai separately.
