Try Bifrost Enterprise free for 14 days.
Request access

glm-5p2 Cost Calculator - Fireworks AI

Calculate the cost of using glm-5p2 from Fireworks AI for your AI applications

Pricing data last updated:

glm-5p2 Cost Calculator

Mode: Chat

Max: 1,048,576 tokens

Max: 131,072 tokens

Cost Breakdown

Input Cost$0.001400
Output Cost$0.004400
Total Cost$0.005800

Pricing Details

Input: $0.00000140 per token
Output: $0.00000440 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 Tokens1,048,576
Max Output Tokens131,072
Max Tokens131,072

About glm-5p2

glm-5p2 is a chat model from Fireworks AI, one of 272 chat models they offer. It is priced at $1.40 per 1M input tokens and $4.40 per 1M output tokens, ranking 1670 out of 2292 chat models by cost and cheaper than 27% of models in this category. glm-5p2 supports function calling, reasoning, structured output. Its 1,049K-token context window is in the top 6% among chat models.

Pricing Information

Input Cost$1.40 per 1M tokens
Output Cost$4.40 per 1M tokens

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

Technical Specifications

Maximum Input Tokens1,048,576
Maximum Output Tokens131,072
Maximum Total Tokens131,072

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 1,048,576 input tokens. The maximum output length is 131,072 tokens.

Model Capabilities

Function Calling - Execute custom functions and tools
Advanced Reasoning - Complex problem-solving capabilities
Response Schema - Structured output formatting

How glm-5p2 Pricing Compares

At $1.40 per 1M input tokens and $4.40 per 1M output tokens, glm-5p2 ranks 1670 out of 2292 chat models by input cost. It is more expensive compared to the median of $0.55 for chat models, and is cheaper than 27% of models in this category.

glm-5p2 is one of 272 Fireworks AI chat models, with support for function calling, reasoning, structured output. its 1,049K-token context window places it in the top 6% of chat models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs glm-5p2
gpt-5-2025-08-07Azure$1.38$11.00-2%
gpt-5.1Azure$1.38$11.00-1%
gpt-5.1-chatAzure$1.38$11.00-1%

Alternatives to glm-5p2

Similar chat models from other providers

Azure
gpt-5.1
$1.38/1M input
-1% vs glm-5p2
Azure
gpt-5.1-chat
$1.38/1M input
-1% vs glm-5p2
Azure
gpt-5
$1.25/1M input
-11% vs glm-5p2

Frequently Asked Questions

Is glm-5p2 cheaper than gpt-5-2025-08-07?

No. glm-5p2 costs $1.40 per 1M input tokens while gpt-5-2025-08-07 costs $1.38 per 1M input tokens, making gpt-5-2025-08-07 2% more affordable for input. However, glm-5p2 may offer different capabilities or performance characteristics that justify the price difference.

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

glm-5p2 input pricing is $1.40 per 1M tokens, which is 155% above the median of $0.55 for chat models. It ranks 1670 out of 2292 chat models by input cost, making it cheaper than 27% of models in this category. For output, it costs $4.40 per 1M tokens compared to the median of $1.50.

What makes glm-5p2 different from other Fireworks AI models?

Among Fireworks AI's 272 chat models, glm-5p2 ranks 258 by input cost.

What are the best alternatives to glm-5p2?

The most comparable chat models to glm-5p2 are: gpt-5-2025-08-07 from Azure ($1.38/1M input tokens); gpt-5.1 from Azure ($1.38/1M input tokens); gpt-5.1-chat from Azure ($1.38/1M input tokens); gpt-5.1-2025-11-13 from Azure ($1.25/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 large is glm-5p2's context window?

glm-5p2 supports up to 1,048,576 input tokens, placing it in the top 6% of chat models by context window size (rank 46 of 2159). This makes it suitable for processing long documents, extensive code repositories, or maintaining detailed conversation histories.

How do I check if Fireworks AI is down?

You can monitor Fireworks AI service health in real time on the Bifrost Fireworks AI Status page. It tracks current component status, active incidents, and historical reliability data pulled from the official status page every 60 seconds.

How do I calculate glm-5p2 costs?

glm-5p2 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.40 and generating 1M output tokens costs $4.40.