Skip to content

GLM 4.5

GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications.

Per 1M tokens
$0.63 · $2.31
Context
131Ktokens
Supports
  • Calls tools
  • Thinks before it answers
opencode.json
{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "z-ai/glm-4.5": { "limit": { "context": 131072, "output": 98304 } } }
    }
  }
}
Needs an API keyGet one

Pricing and limits

  • Cache read$0.1155per 1M tokens
  • Max output98,304tokens

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