---
title: "glm-5-code - Model Details & Comparison"
description: "glm-5-code from Zai: capabilities, context limits, pricing, and side-by-side comparisons with alternative models."
url: "https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/zai/glm-5-code"
markdown: "https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/zai/glm-5-code.md"
---

# glm-5-code - Model Details & Comparison

> glm-5-code from Zai: capabilities, context limits, pricing, and side-by-side comparisons with alternative models.

## Important Links

- [View MCP Gateway](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/resources/mcp-gateway.md)
- [Features](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/#features)
- [Enterprise](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/enterprise)
- [Pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/pricing.md)
- [Docs](https://docs.getbifrost.ai)
- [GitHub](https://github.com/maximhq/bifrost)
- [Book a Demo](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/book-a-demo)

## About glm-5-code

glm-5-code is a chat model from Zai, one of 10 chat models they offer. It is priced at $1.20 per 1M input tokens and $5.00 per 1M output tokens, ranking 1857 out of 2669 chat models by cost and cheaper than 30% of models in this category. glm-5-code supports function calling, reasoning, prompt caching. Its 200K-token context window is in the top 41% among chat models.

## Specifications

- **Zai Provider.**
- **Chat Mode.**
- **200,000 Max Input Tokens.**
- **128,000 Max Output Tokens.**
- **$1.20 / 1M tokens Input Price.**
- **$5.00 / 1M tokens Output Price.**

## Capabilities

glm-5-code supports: Function Calling, Reasoning, Prompt Caching, Tool Choice.

## glm-5-code Pricing Overview

At $1.20 per 1M input tokens and $5.00 per 1M output tokens, glm-5-code ranks 1857 out of 2669 chat models by input cost. It is more expensive compared to the median of $0.50 for chat models, and is cheaper than 30% of models in this category.

glm-5-code is one of 10 Zai chat models, with support for function calling, reasoning, prompt caching. its 200K-token context window places it in the top 41% of chat models.

## Models to Compare

Alternatives to glm-5-code with comparable capabilities.

| Model | Provider | Input $/1M | Output $/1M |
| --- | --- | --- | --- |
| anthropic.claude-haiku-4-5-20251001-v1:0 | AWS Bedrock | $1.00 | $5.00 |
| anthropic.claude-haiku-4-5@20251001 | AWS Bedrock | $1.00 | $5.00 |
| apac.anthropic.claude-haiku-4-5-20251001-v1:0 | AWS Bedrock | $1.10 | $5.50 |
| claude-haiku-4-5 | Azure | $1.00 | $5.00 |
| gpt-5-2025-08-07 | Azure | $1.38 | $11.00 |

- [Compare anthropic.claude-haiku-4-5-20251001-v1:0](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/anthropic.claude-haiku-4-5-20251001-v1-0.md)
- [Compare anthropic.claude-haiku-4-5@20251001](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/anthropic.claude-haiku-4-5-20251001.md)
- [Compare apac.anthropic.claude-haiku-4-5-20251001-v1:0](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/apac.anthropic.claude-haiku-4-5-20251001-v1-0.md)
- [Compare claude-haiku-4-5](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/azure/claude-haiku-4-5.md)
- [Compare gpt-5-2025-08-07](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/azure/gpt-5-2025-08-07.md)

## Related Resources

- [Calculate glm-5-code costs](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/zai/model/glm-5-code.md)
- [All Zai pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/zai.md)

## FAQ

### Is glm-5-code cheaper than anthropic.claude-haiku-4-5-20251001-v1:0?

No. glm-5-code costs $1.20 per 1M input tokens while anthropic.claude-haiku-4-5-20251001-v1:0 costs $1.00 per 1M input tokens, making anthropic.claude-haiku-4-5-20251001-v1:0 17% more affordable for input. However, glm-5-code may offer different capabilities or performance characteristics that justify the price difference.

### How does glm-5-code pricing compare to the average chat model?

glm-5-code input pricing is $1.20 per 1M tokens, which is 140% above the median of $0.50 for chat models. It ranks 1857 out of 2669 chat models by input cost, making it cheaper than 30% of models in this category. For output, it costs $5.00 per 1M tokens compared to the median of $1.44.

### What makes glm-5-code different from other Zai models?

Among Zai's 10 chat models, glm-5-code ranks 9 by input cost.

### What are the best alternatives to glm-5-code?

The most comparable chat models to glm-5-code are: anthropic.claude-haiku-4-5-20251001-v1:0 from AWS Bedrock ($1.00/1M input tokens); anthropic.claude-haiku-4-5@20251001 from AWS Bedrock ($1.00/1M input tokens); apac.anthropic.claude-haiku-4-5-20251001-v1:0 from AWS Bedrock ($1.10/1M input tokens); claude-haiku-4-5 from Azure ($1.00/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

### How do I calculate glm-5-code costs?

glm-5-code is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $1.20 and generating 1M output tokens costs $5.00.

## Related Resources

- [Zai models](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/provider/zai.md)
- [Model library](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library.md)
- [LLM cost calculator](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator.md)
- [Docs: Bifrost docs](https://docs.getbifrost.ai)
- [GitHub: maximhq/bifrost](https://github.com/maximhq/bifrost)
- [Pricing: Bifrost pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/pricing.md)
- [Enterprise: Bifrost enterprise](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/enterprise)
- [Book a Demo: Bifrost demo](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/book-a-demo)
- [Resources: Bifrost resources](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/resources.md)

---

*This is a markdown version of [https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/zai/glm-5-code](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/zai/glm-5-code) for AI/LLM consumption.*
