glm-5-code
zai · chat model
Input
$1.2000 / 1M tokens
Output
$5.0000 / 1M tokens
Cached input
$0.3000 / 1M tokens
Context
N/A
Pricing
| Item | Raw value (per token) | Normalized |
|---|---|---|
| Input | 0.0000012 | $1.2000 / 1M tokens |
| Output | 0.000005 | $5.0000 / 1M tokens |
| Cached input | 3e-7 | $0.3000 / 1M tokens |
| Embedding | 0.0000012 | $1.2000 / 1M tokens |
Token limits
Max input tokens
200.0K
Max output tokens
128.0K
Capabilities
| Capability | Supported |
|---|---|
| Vision | No |
| Function calling | Yes |
| Parallel function calling | No |
| Tool choice | Yes |
| Prompt caching | Yes |
| Reasoning | Yes |
| Response schema | No |
| System messages | No |
| Audio input | No |
| Audio output | No |
| Web search | No |
| PDF input | No |
| Video input | No |
Similar models
Models with comparable pricing in the same mode (chat).
| Model | Provider | Input | Output | Context | Coding | Features |
|---|---|---|---|---|---|---|
| o1-mini-2024-09-12 | Azure | $1.2100 / 1M tokens | $4.8400 / 1M tokens | 65.5K | N/A | Tools Cache |
| o3-mini-2025-01-31 | Azure | $1.2100 / 1M tokens | $4.8400 / 1M tokens | 100.0K | N/A | Cache Reasoning |
| o1-mini | Azure | $1.2100 / 1M tokens | $4.8400 / 1M tokens | 65.5K | N/A | Tools Cache Reasoning |
| o1-mini-2024-09-12 | Azure | $1.2100 / 1M tokens | $4.8400 / 1M tokens | 65.5K | N/A | Tools Cache |
| o3-mini-2025-01-31 | Azure | $1.2100 / 1M tokens | $4.8400 / 1M tokens | 100.0K | N/A | Cache Reasoning |
| o4-mini-2025-04-16 | Azure | $1.2100 / 1M tokens | $4.8400 / 1M tokens | 100.0K | N/A | Vision Tools Cache Reasoning |
Sources
| Pricing source | LiteLLM model cost map |
| Synced at | 2026-05-27 |
| Manual review | Not reviewed |
Raw LiteLLM fields
{
"cache_creation_input_token_cost": 0,
"cache_read_input_token_cost": 3e-7,
"input_cost_per_token": 0.0000012,
"output_cost_per_token": 0.000005,
"litellm_provider": "zai",
"max_input_tokens": 200000,
"max_output_tokens": 128000,
"mode": "chat",
"supports_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_tool_choice": true,
"source": "https://docs.z.ai/guides/overview/pricing"
}