- Model
zai-org/GLM-4.7- Provider
huggingface- API
openai-completions- Base URL
https://router.huggingface.co/v1- Input
- text
- Reasoning
- Yes
- Context window
- 204,800
- Max tokens
- 131,072
- Cost / million input
- $0.6
- Cost / million output
- $2.2
- Cost / million cache read
- $0.11
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"huggingface": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "zai-org/GLM-4.7",
"name": "GLM-4.7",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 204800,
"maxTokens": 131072,
"cost": {
"input": 0.6,
"output": 2.2,
"cacheRead": 0.11,
"cacheWrite": 0
},
"compat": {
"supportsDeveloperRole": false
}
}
],
"api": "openai-completions",
"baseUrl": "https://router.huggingface.co/v1"
}
}
}