glm-5-code
zai · chat model
glm-5-code is listed here as a chat model from zai. This page shows simple API pricing, token limits, and capability flags so you can compare it with similar options.
Input
$1.2000 / 1M tokens
Output
$5.0000 / 1M tokens
Cached input
$0.3000 / 1M tokens
Context
N/A
Quick read
Best for
Use this page when you need a fast view of cost, context size, and supported features before testing the model in your own workload.
Things to verify
Always check the provider page for discounts, cache pricing, region rules, and any model limits that may not appear in public metadata.
Pricing
| Item | Price |
|---|---|
| Input | $1.2000 / 1M tokens |
| Output | $5.0000 / 1M tokens |
| Cached input | $0.3000 / 1M tokens |
| Cache write | N/A 0 in raw data; semantics unverified |
| Embedding | $1.2000 / 1M tokens |
Token limits
Max input tokens
200.0K
Max output tokens
128.0K
Capabilities
| Capability | Supported |
|---|---|
| Vision | — |
| Function calling | ✅ |
| Parallel function calling | — |
| Tool choice | ✅ |
| Prompt caching | ✅ |
| Reasoning | ✅ |
| Response schema | — |
| System messages | — |
| Audio input | — |
| Audio output | — |
| Web search | — |
| PDF input | — |
| Video input | — |
Benchmarks
Most benchmark rows are attached to the base model family rather than this provider route. Open benchmark explorer
| Benchmark | Score | Metric | Scope | Checked | Source |
|---|---|---|---|---|---|
| Humanity's Last Exam | 30.5 | Score | Base model: GLM-5 (GLM-5) | 2026-05-31 | Link |
| GPQA Diamond | 86.0 | Score | Base model: GLM-5 (GLM-5) | 2026-05-31 | Link |
| SWE-bench Verified | 77.8 | Score | Base model: GLM-5 (GLM-5) | 2026-05-31 | Link |
| MMLU | 74.7 | score | Base model: GLM (GLM-4-9B) | 2026-05-31 | Link |
| C-Eval | 77.1 | score | Base model: GLM (GLM-4-9B) | 2026-05-31 | Link |
| GPQA | 34.3 | score | Base model: GLM (GLM-4-9B) | 2026-05-31 | Link |
| GSM8K | 84.0 | score | Base model: GLM (GLM-4-9B) | 2026-05-31 | Link |
| MATH | 30.4 | score | Base model: GLM (GLM-4-9B) | 2026-05-31 | Link |
| HumanEval | 70.1 | score | Base model: GLM (GLM-4-9B) | 2026-05-31 | Link |
Sources
| Source links | |
| Pricing data | LiteLLM model cost map |
| Synced at | 2026-05-28 |
Similar models
This list is ranked by overall similarity. Use filters to emphasize the lens that matters most for the replacement you are making.
Comparing from
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| glm-5-code zai | In $1.2000 / 1M tokens Out $5.0000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | N/A | Current model Reference row |
| Model | Cost | Input shape | Features | Context | Why it is close |
|---|---|---|---|---|---|
| deepseek-v3.1-maas vertex_ai-deepseek_models | In $1.3500 / 1M tokens Out $5.4000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 32.8K | Partial I/O overlap Overall 43% |
| deepseek-r1-0528-maas vertex_ai-deepseek_models | In $1.3500 / 1M tokens Out $5.4000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 8.2K | Partial I/O overlap Overall 43% |
| glm-5-maas vertex_ai-zai_models | In $1.0000 / 1M tokens Out $3.2000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 128.0K | Partial I/O overlap Overall 40% |
| glm-5 zai | In $1.0000 / 1M tokens Out $3.2000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | N/A | Same provider Overall 40% |
| o3-mini-2025-01-31 Azure | In $1.2100 / 1M tokens Out $4.8400 / 1M tokens | text
Output: text | Tool choicePrompt cachingReasoning | 100.0K | Partial I/O overlap Overall 38% |
| o3-mini-2025-01-31 Azure | In $1.2100 / 1M tokens Out $4.8400 / 1M tokens | text
Output: text | Tool choicePrompt cachingReasoning | 100.0K | Partial I/O overlap Overall 38% |
| o4-mini-2025-04-16 Azure | In $1.2100 / 1M tokens Out $4.8400 / 1M tokens | imagetext
Output: text | Function callingTool choicePrompt cachingReasoning | 100.0K | Partial I/O overlap Overall 36% |
| o1-mini Azure | In $1.2100 / 1M tokens Out $4.8400 / 1M tokens | text
Output: text | Function callingPrompt cachingReasoning | 65.5K | Partial I/O overlap Overall 35% |
| glm-4.7 zai | In $0.6000 / 1M tokens Out $2.2000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | N/A | Same provider Overall 34% |
| glm-4.6 zai | In $0.6000 / 1M tokens Out $2.2000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | N/A | Same provider Overall 34% |
| deepseek-r1 DeepSeek | In $0.5500 / 1M tokens Out $2.1900 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 8.2K | Partial I/O overlap Overall 34% |
| deepseek-v3.2 azure_ai | In $0.5800 / 1M tokens Out $1.6800 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 163.8K | Partial I/O overlap Overall 33% |
| deepseek-v3.2-speciale azure_ai | In $0.5800 / 1M tokens Out $1.6800 / 1M tokens | text
Output: text | Function callingTool choicePrompt cachingReasoning | 163.8K | Partial I/O overlap Overall 33% |
| glm-4.5-airx zai | In $1.1000 / 1M tokens Out $4.5000 / 1M tokens |
Output: unknown | Function callingTool choice | N/A | Same provider Overall 31% |
| o1-mini-2024-09-12 Azure | In $1.2100 / 1M tokens Out $4.8400 / 1M tokens | text
Output: text | Function callingPrompt caching | 65.5K | Partial I/O overlap Overall 30% |
| o1-mini-2024-09-12 Azure | In $1.2100 / 1M tokens Out $4.8400 / 1M tokens | text
Output: text | Function callingPrompt caching | 65.5K | Partial I/O overlap Overall 30% |
| deepseek-v3.2 DeepSeek | In $0.2800 / 1M tokens Out $0.4000 / 1M tokens |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 163.8K | Partial I/O overlap Overall 28% |
| deepseek-v3-2-251201 volcengine | In N/A Out N/A |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 32.8K | Partial I/O overlap Overall 25% |
| glm-4-7-251222 volcengine | In N/A Out N/A |
Output: unknown | Function callingTool choicePrompt cachingReasoning | 131.1K | Partial I/O overlap Overall 25% |
| glm-4.5-x zai | In $2.2000 / 1M tokens Out $8.9000 / 1M tokens |
Output: unknown | Function callingTool choice | N/A | Same provider Overall 24% |
| glm-4.5 zai | In $0.6000 / 1M tokens Out $2.2000 / 1M tokens |
Output: unknown | Function callingTool choice | N/A | Same provider Overall 22% |
No models match this filter.