feat: add zai/glm-5 model configuration

Add pricing and configuration for zai/glm-5:
- 200k input, 128k output tokens
- Supports reasoning, prompt caching, function calling, and tool choice
- Cache read cost: 2e-05 per token
- Input cost: 1e-04 per token
- Output cost: 3.2e-04 per token

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
liangjie.wanglj 2026-02-13 16:38:14 +08:00
parent 9a2410be71
commit b99124971f
2 changed files with 30 additions and 0 deletions

View file

@ -31946,6 +31946,21 @@
"supports_tool_choice": true,
"source": "https://docs.z.ai/guides/overview/pricing"
},
"zai/glm-5": {
"cache_creation_input_token_cost": 0,
"cache_read_input_token_cost": 2e-05,
"input_cost_per_token": 1e-04,
"output_cost_per_token": 3.2e-04,
"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"
},
"zai/glm-4.6": {
"cache_creation_input_token_cost": 0,
"cache_read_input_token_cost": 1.1e-07,

View file

@ -31946,6 +31946,21 @@
"supports_tool_choice": true,
"source": "https://docs.z.ai/guides/overview/pricing"
},
"zai/glm-5": {
"cache_creation_input_token_cost": 0,
"cache_read_input_token_cost": 2e-05,
"input_cost_per_token": 1e-04,
"output_cost_per_token": 3.2e-04,
"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"
},
"zai/glm-4.6": {
"cache_creation_input_token_cost": 0,
"cache_read_input_token_cost": 1.1e-07,