Skip to content

GLM 5.3

GLM-5.3 is a large-scale reasoning model from Z.ai, built for complex software engineering and long-horizon agent tasks.

Pricing

Input
$0.083per 1M tokens
Output
$1.47per 1M tokens
Cache read
$0.0819per 1M tokens
Max output
943,718tokens

OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.

opencode.json

{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "z-ai/glm-5.3": { "limit": { "context": 1048576, "output": 943718 } } }
    }
  }
}
OpenCode, set up for GLM 5.3

Find us on