- Model
glm-5.2- Provider
opencode-go- API
openai-completions- Base URL
https://opencode.ai/zen/go/v1- Input
- text
- Reasoning
- Yes
- Context window
- 1,000,000
- Max tokens
- 131,072
- Cost / million input
- $1.4
- Cost / million output
- $4.4
- Cost / million cache read
- $0.26
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"opencode-go": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "glm-5.2",
"name": "GLM-5.2",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 1000000,
"maxTokens": 131072,
"cost": {
"input": 1.4,
"output": 4.4,
"cacheRead": 0.26,
"cacheWrite": 0
},
"compat": {
"maxTokensField": "max_tokens"
}
}
],
"api": "openai-completions",
"baseUrl": "https://opencode.ai/zen/go/v1"
}
}
}