GLM-5.1

Models

Model details

GLM-5.1

Model
zai-org/GLM-5.1
Provider
together
API
openai-completions
Base URL
https://api.together.ai/v1
Input
text
Reasoning
Yes
Context window
202,752
Max tokens
131,072
Cost / million input
$1.4
Cost / million output
$4.4
Cost / million cache read
$0
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "together": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "zai-org/GLM-5.1",
          "name": "GLM-5.1",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 202752,
          "maxTokens": 131072,
          "cost": {
            "input": 1.4,
            "output": 4.4,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "compat": {
            "supportsStore": false,
            "supportsDeveloperRole": false,
            "supportsReasoningEffort": false,
            "maxTokensField": "max_tokens",
            "supportsStrictMode": false,
            "supportsLongCacheRetention": false,
            "thinkingFormat": "together"
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://api.together.ai/v1"
    }
  }
}