Try Bifrost Enterprise free for 14 days.
Request access

glm-5-code Cost Calculator - Zai

Calculate the cost of using glm-5-code from Zai for your AI applications

Pricing data last updated:

glm-5-code Cost Calculator

Mode: Chat

Max: 200,000 tokens

Max: 128,000 tokens

Cost Breakdown

Input Cost$0.001200
Output Cost$0.005000
Total Cost$0.006200

Pricing Details

Input: $0.00000120 per token
Output: $0.00000500 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

✓Function Calling
✓Reasoning

Limits

Max Input Tokens200,000
Max Output Tokens128,000

About glm-5-code

glm-5-code is a chat model from Zai, one of 14 chat models they offer. It is priced at $1.20 per 1M input tokens and $5.00 per 1M output tokens, ranking 2468 out of 3778 chat models by cost and cheaper than 34% of models in this category. glm-5-code supports function calling, reasoning, prompt caching. It accepts up to 200K input tokens.

Pricing Information

Input Cost$1.20 per 1M tokens
Output Cost$5.00 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens200,000
Maximum Output Tokens128,000

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 200,000 input tokens. The maximum output length is 128,000 tokens.

Model Capabilities

✓Function Calling - Execute custom functions and tools
✓Advanced Reasoning - Complex problem-solving capabilities
✓Prompt Caching - Optimize repeated prompts

How glm-5-code Pricing Compares

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

glm-5-code is one of 14 Zai chat models, with support for function calling, reasoning, prompt caching.

ModelProviderInput / 1M tokensOutput / 1M tokensvs glm-5-code
amazon.nova-2-pro-preview-20251202-v1:0AWS Bedrock$1.25$10.00+4%
apac.amazon.nova-2-pro-preview-20251202-v1:0AWS Bedrock$1.38$11.00+15%
eu.amazon.nova-2-pro-preview-20251202-v1:0AWS Bedrock$1.38$11.00+15%

Alternatives to glm-5-code

Similar chat models from other providers

AWS Bedrock
amazon.nova-2-pro-preview-20251202-v1:0
$1.25/1M input
+4% vs glm-5-code
AWS Bedrock
apac.amazon.nova-2-pro-preview-20251202-v1:0
$1.38/1M input
+15% vs glm-5-code
AWS Bedrock
eu.amazon.nova-2-pro-preview-20251202-v1:0
$1.38/1M input
+15% vs glm-5-code
AWS Bedrock
us.amazon.nova-2-pro-preview-20251202-v1:0
$1.38/1M input
+15% vs glm-5-code
AWS Bedrock
anthropic.claude-haiku-4-5-20251001-v1:0
$1.00/1M input
-17% vs glm-5-code

Frequently Asked Questions

Is glm-5-code cheaper than amazon.nova-2-pro-preview-20251202-v1:0?

Yes. glm-5-code costs $1.20 per 1M input tokens compared to amazon.nova-2-pro-preview-20251202-v1:0's $1.25 per 1M input tokens, making it 4% more affordable. Both are chat models and share support for vision, function calling, reasoning, prompt caching, structured output.

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 100% above the median of $0.60 for chat models. It ranks 2468 out of 3778 chat models by input cost, making it cheaper than 34% of models in this category. For output, it costs $5.00 per 1M tokens compared to the median of $1.75.

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

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

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

The most comparable chat models to glm-5-code are: amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($1.25/1M input tokens); apac.amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($1.38/1M input tokens); eu.amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($1.38/1M input tokens); us.amazon.nova-2-pro-preview-20251202-v1:0 from AWS Bedrock ($1.38/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.