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
export ANTHROPIC_BASE_URL="https://deference.si"
export ANTHROPIC_AUTH_TOKEN="$DEFERENCE_API_KEY"
export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY="1"
claude --model z-ai/glm-5.1:incognitomodel = "z-ai/glm-5.1:incognito"
model_provider = "deference"
web_search = "disabled"
[model_providers.deference]
name = "Deference"
base_url = "https://deference.si/v1"
wire_api = "responses"
env_key = "DEFERENCE_API_KEY"# Cursor › Settings › Models
OpenAI API Key: your sk-df-… key
Override OpenAI Base URL: https://deference.si/v1
Add model: z-ai/glm-5.1:incognito{
"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 } } }
}
}
}curl https://deference.si/v1/chat/completions \
-H "Authorization: Bearer $DEFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.1:incognito",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'import os
from openai import OpenAI
client = OpenAI(base_url="https://deference.si/v1", api_key=os.environ["DEFERENCE_API_KEY"])
completion = client.chat.completions.create(
model="z-ai/glm-5.1:incognito",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(completion.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://deference.si/v1", apiKey: process.env.DEFERENCE_API_KEY });
const completion = await client.chat.completions.create({
model: "z-ai/glm-5.1:incognito",
messages: [{ role: "user", content: "Say hello in one sentence." }],
});
console.log(completion.choices[0].message.content);