Skip to content

GLM 5.1 · Incognito

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.

Pricing

Input
$1.27per 1M tokens
Output
$4.41per 1M tokens
Cache read
$0.63per 1M tokens
Max output
128,000tokens

Phala's price plus a 5% routing 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.1:incognito": { "limit": { "context": 202752, "output": 128000 } } }
    }
  }
}
OpenCode, set up for GLM 5.1 · Incognito