Glm 5 Code
Glm 5 Code is available via Zai with a 200K context window and up to 128,000 output tokens. Pricing: $1.20/1M input tokens, $5.00/1M output tokens.
Glm 5 Code Pricing & Specifications
What is Glm 5 Code?
Glm 5 Code is a large language model by Zai with a 200K context window and up to 128,000 output tokens. It costs $1.20 per 1M input tokens and $5.00 per 1M output tokens. Glm 5 Code is available via Zai with a 200K context window and up to 128,000 output tokens. Pricing: $1.20/1M input tokens, $5.00/1M output tokens.
Capabilities
text function calling reasoning
Glm 5 Code Cost Examples
Short prompt (500 tokens)
$0.000600
Medium prompt (2K tokens)
$0.00240
Long output (4K tokens)
$0.02000
Count tokens for Glm 5 Code
Paste your prompt to see exact token counts and API cost estimates.
Open Token CounterSimilar Models to Glm 5 Code
Frequently Asked Questions
How much does Glm 5 Code cost per token? +
Glm 5 Code costs $1.20 per 1M input tokens and $5.00 per 1M output tokens. For a typical 1,000-token request with a 500-token response, that works out to roughly $0.003700.
What is the context window for Glm 5 Code? +
Glm 5 Code supports a context window of 200,000 tokens (200K). This determines the maximum combined length of your prompt and conversation history in a single API call.
What is the maximum output length for Glm 5 Code? +
Glm 5 Code can generate up to 128,000 tokens in a single response. If you need longer outputs, you can make multiple API calls and concatenate the results.
Is Glm 5 Code good for coding tasks? +
Yes, Glm 5 Code supports capabilities well-suited for coding tasks including code generation, debugging, and refactoring.