# 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.

- Page: https://models.litellm.ai/compare/glm-5-vs-gpt-6.1-terra
- GLM 5: https://models.litellm.ai/models/glm-5
- GPT-6.1 Terra: https://models.litellm.ai/models/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 |

Headline prices in USD per 1M tokens, from LiteLLM's model price file.

## Cheapest provider for each

- GLM 5: DeepInfra at $0.60 input per 1M tokens (`deepinfra/zai-org/GLM-5`)
- GPT-6.1 Terra: OpenAI at $1.00 input per 1M tokens (`gpt-6.1-terra`)

## Benchmark scores

| Benchmark | GLM 5 | GPT-6.1 Terra |
|---|---|---|
| GPQA Diamond (Reasoning and knowledge) | 87.8% | 94.3% (max) |
| OTIS Mock AIME 2024-2025 (Math) | 80.0% | 100.0% (max) |

From the Epoch AI Benchmarking Hub (https://epoch.ai/benchmarks), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), data as of October 26, 2026: Epoch's own runs and results it collects from each benchmark's leaderboard. Higher is better.

## When to pick which

- GLM 5: Costs 36% less per output token: $3.20 vs $5.00 per 1M.
- GPT-6.1 Terra: Larger context window: 922,000 vs 200,000 tokens.

## 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.
