LiteLLMLiteLLM/ MODELS

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.

Prices from LiteLLM's price fileChecked

GLM 5 vs GPT-6.1 Terra side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 23, 2026.
GLM 5GPT-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 window200,000 tokens922,000 tokens
Max output128,000 tokens128,000 tokens
Image input–Yes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM1010
Price shown is fromZ.aiOpenAI
Added to LiteLLMFebruary 2026October 26, 2026

Cheapest provider for each

Benchmark scores

From the Epoch AI Benchmarking Hub (CC BY 4.0), data as of October 26, 2026. Each model's best reported reasoning setting is shown in brackets. Higher is better. Only benchmarks with a score for both models are shown.
BenchmarkGLM 5GPT-6.1 Terra
Reasoning and knowledge
GPQA Diamond87.8%94.3% (max)
Math
OTIS Mock AIME 2024-202580.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.

Python SDK
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.