GLM 5 vs GPT-6.1 Terra
As of November 23, 2026, GPT-6.1 Terra and GLM 5 cost the same per input token ($1.00 per 1M), but GPT-6.1 Terra costs 56% more per output token ($5.00 vs $3.20) and has a 922K-token context window versus 200K.
GLM 5 vs GPT-6.1 Terra side by side
| GLM 5 | GPT-6.1 Terra | |
|---|---|---|
| Input, per 1M tokens | $1.00 | $1.00 |
| Output, per 1M tokens | $3.20 | $5.00 |
| Cache read, per 1M tokens | $0.20 | $0.05 |
| Cache write, per 1M tokens | $0 | $1.25 |
| Context window | 200,000 tokens | 922,000 tokens |
| Max output | 128,000 tokens | 128,000 tokens |
| Image input | – | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 10 | 10 |
| Price shown is from | Z.ai | OpenAI |
| Added to LiteLLM | February 2026 | October 26, 2026 |
Cheapest provider for each
- GLM 5: DeepInfra at $0.60 input and $2.08 output per 1M tokens (
deepinfra/zai-org/GLM-5) - GPT-6.1 Terra: OpenAI at $1.00 input and $5.00 output per 1M tokens (
gpt-6.1-terra)
Benchmark scores
| Benchmark | GLM 5 | GPT-6.1 Terra |
|---|---|---|
| Reasoning and knowledge | ||
| GPQA Diamond | 87.8% | 94.3% (max) |
| Math | ||
| OTIS Mock AIME 2024-2025 | 80.0% | 100.0% (max) |
When to pick which
Pick GLM 5 for
- Costs 36% less per output token: $3.20 vs $5.00 per 1M.
Pick GPT-6.1 Terra for
- Larger context window: 922,000 vs 200,000 tokens.
From differences in the data above only; where the data is equal, no reason is given.
Call GLM 5 or GPT-6.1 Terra with LiteLLM
Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.
from litellm import completion
messages = [{"role": "user", "content": "Hello!"}]
# GLM 5
response = completion(model="zai/glm-5", messages=messages)
# GPT-6.1 Terra
response = completion(model="gpt-6.1-terra", messages=messages)
# GLM 5, falling back to GPT-6.1 Terra if the call fails
response = completion(model="zai/glm-5", messages=messages, fallbacks=["gpt-6.1-terra"])FAQ
Which is cheaper, GLM 5 or GPT-6.1 Terra?
GLM 5 is cheaper at 3 input tokens per output token: $1.55 per 1M tokens blended ($1.00 input, $3.20 output), versus $2.00 ($1.00 and $5.00) for GPT-6.1 Terra, as of November 23, 2026.
Which has the larger context window, GLM 5 or GPT-6.1 Terra?
GPT-6.1 Terra has the larger context window: 922,000 tokens, versus 200,000 for GLM 5.
Can I switch from GLM 5 to GPT-6.1 Terra without changing my code?
Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "zai/glm-5" to "gpt-6.1-terra", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.