GLM 4.5
Z.ai chatGLM 4.5 is a Z.ai chat model.It supports a 128,000-token context windowwith up to 32,000 output tokens.Input is priced at $0.600/M tokens and output at $2.20/M tokens. Capabilities include function calling. Route GLM 4.5 via Future AGI's Agent Command Center for unified observability, caching, and 15 routing strategies including cost-optimized fallback.
Estimate GLM 4.5 spend
Pick a workload, fine-tune the sliders, and see the monthly bill.
Estimate uses $0.6000/M input · $2.20/M output. Provider pricing changes. Production costs vary with retries, streaming overhead, and tool-call rounds.
Want this for free? Cache + route via Agent Command Center — first 100K requests and 100K cache hits free every month.
Pricing
Per-token rates, expressed in USD per 1M tokens. Verified Oct 22, 2026.
| Input | $0.600/M | |
| Output | $2.20/M | |
| Blended (3:1 in:out) | $1.00/M Cross-model comparable price |
Context & limits
- Context window
- 128,000 tokens
- Max input
- 128,000 tokens
- Max output
- 32,000 tokens
- Modalities
- text
Capabilities
- Function calling ✓ supported
- Parallel tool calls — not advertised
- Vision input — not advertised
- Audio input — not advertised
- Audio output — not advertised
- PDF input — not advertised
- Streaming ✓ supported
- Structured output — not advertised
- Prompt caching — not advertised
- Reasoning — not advertised
Strengths & caveats — when to pick GLM 4.5
Data-driven from GLM 4.5's percentile within chat peers.
Where it's strong
- +agentic workflows that depend on reliable tool calls
Watch out for
- !strict structured output — no JSON-schema enforcement, expect retry loops
Benchmark scores
Reported public benchmark numbers. Each row links to the source. Faded bar shows 6-peer average for context.
Call GLM 4.5 via Agent Command Center
One OpenAI-compatible endpoint. Routing, fallback, semantic caching, guardrails, and cost tracking come along for the ride. First 100K requests + 100K cache hits free every month.
agentcc / @agentcc/client). Per-call metadata — provider, cost, latency, cache hit, request id — is returned on x-agentcc-* response headers, so any HTTP client can read it.# GLM 4.5 via the Agent Command Center Python SDK
# pip install agentcc
import os
from agentcc import AgentCC
client = AgentCC(
api_key=os.environ["AGENTCC_API_KEY"], # from app.futureagi.com → Settings → API Keys
base_url="https://gateway.futureagi.com/v1",
)
resp = client.chat.completions.create(
model="zai/glm-4-5",
messages=[{"role": "user", "content": "Hello, GLM 4.5!"}],
)
print(resp.choices[0].message.content)
print(f"Tokens: {resp.usage.total_tokens}")
# Per-call gateway metadata is returned on x-agentcc-* response headers.
# When you need it programmatically, use .with_raw_response to get them:
raw = client.chat.completions.with_raw_response.create(
model="zai/glm-4-5",
messages=[{"role": "user", "content": "Same call, but I want the headers."}],
)
print("Provider:", raw.headers.get("x-agentcc-provider"))
print("Latency:", raw.headers.get("x-agentcc-latency-ms"), "ms")
print("Cost: ", raw.headers.get("x-agentcc-cost"), "USD")
print("Cache: ", raw.headers.get("x-agentcc-cache"))AGENTCC_API_KEY with a key fromapp.futureagi.com.Gateway docs ↗Advanced: fallback + cache config (YAML) ▸
strategy: cost-optimized
targets:
- model: glm-4-5
provider: zai
weight: 80
fallbacks:
- model: gpt-5-6-terra
provider: azure-openai
- model: gpt-5-4
provider: azure-ai-foundry
guardrails: [pii, prompt-injection, secrets]
cache: { exact: true, semantic: true } Explore similar models
Grouped by Chatbot Arena tier (GLM 4.5 sits at 1411 ELO). Side-by-side links appear where a comparison page exists; otherwise, open the model profile.
- GPT-5.6 TerraAzure OpenAI · $2.00/M in · $12.00/M out · 922,000 ctxView model →
- GPT-5.4Azure AI Foundry · $2.50/M in · $15.00/M out · 922,000 ctxView model →
- GPT-5.4 (2026-03-05)Azure AI Foundry · $2.50/M in · $15.00/M out · 922,000 ctxView model →
- Grok 4.5xAI · $2.00/M in · $6.00/M out · 500,000 ctxView model →
≥30 ELO higher
- Gemini 4 ArgonGoogle AI · $2.00/M in · $10.00/M out · 1,048,576 ctxView model →
- Claude Opus 5.5Azure AI Foundry · $4.00/M in · $20.00/M out · 1,000,000 ctxView model →
- Claude Fable 5Azure AI Foundry · $10.00/M in · $50.00/M out · 1,000,000 ctxView model →
- Claude Fable 5.1Azure AI Foundry · $10.00/M in · $50.00/M out · 1,000,000 ctxView model →
25–100 ELO lower, ≤50% of price
- GPT-5 nanoAzure OpenAI · $0.0500/M in · $0.400/M out · 272,000 ctxView model →
- GPT-5 nano (2025-08-07)Azure OpenAI · $0.0500/M in · $0.400/M out · 272,000 ctxView model →
- GPT-4.1 nano (2025-04-14)Azure OpenAI · $0.1000/M in · $0.400/M out · 1,047,576 ctxView model →
- GPT-4o miniAzure OpenAI · $0.150/M in · $0.600/M out · 128,000 ctxView model →
FAQ
How much does GLM 4.5 cost?
Input is priced at $0.600 per 1M tokens and output at $2.20 per 1M tokens (Z.ai, last verified Oct 22, 2026).
What is the context window of GLM 4.5?
GLM 4.5 supports a 128,000-token context window with up to 32,000 output tokens.
Does GLM 4.5 support function calling?
Yes — GLM 4.5 supports function (tool) calling.
Is GLM 4.5 good for production?
GLM 4.5 is well-suited for agentic workflows that depend on reliable tool calls. Consider alternatives if you need strict structured output — no JSON-schema enforcement, expect retry loops.
How can I route to GLM 4.5 with fallback?
Use Agent Command Center: a single OpenAI-compatible endpoint that supports cost-optimized routing, latency-aware retries, model fallback, and shadow traffic. Configure once, swap models without app changes.
Useful links for GLM 4.5
Official sources, independent benchmarks, and pricing aggregators — no random search-engine guesses.
Third-party evals — verify the marketing.
Cross-check our number against the rest of the ecosystem.