API Free WeekHundreds of APIs are free to call this week.Browse free APIs

GLM 4.5

z-ai/glm-4.5

GLM-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

Open playground
Input⌘ / Ctrl + Enter

Try a prompt

98.3K max output
Input$0.60/MOutput$2.20/MCache read$0.11/M
OutputReady

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.

Production API
Chat Completions API endpoint
https://api.sandbase.ai/v1/chat/completions
Model ID
z-ai/glm-4.5
# 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

All language models
ModelContextInput / 1MOutput / 1MReleased
GLM 4.5This model
Z.ai
—$0.60$2.20Jul 25, 2025
Z.ai—Coming soonComing soonComing soon
Z.ai1M$0.37$1.25Sep 18, 2026
Z.ai1M$0.15$0.50Aug 26, 2026
Z.ai1M$1.40$4.40Aug 18, 2026
Z.ai1M$1.40$4.40Jun 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.