GLM 5.2

Models

Model details

Model
accounts/fireworks/models/glm-5p2
Provider
fireworks
API
openai-completions
Base URL
https://api.fireworks.ai/inference/v1
Input
text
Reasoning
Yes
Context window
1,048,576
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": {
    "fireworks": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "accounts/fireworks/models/glm-5p2",
          "name": "GLM 5.2",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 1048576,
          "maxTokens": 131072,
          "cost": {
            "input": 1.4,
            "output": 4.4,
            "cacheRead": 0.26,
            "cacheWrite": 0
          },
          "compat": {
            "supportsStore": false,
            "supportsDeveloperRole": false
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://api.fireworks.ai/inference/v1"
    }
  }
}