Z.ai

GLM 4.7 API

An inexpensive GLM for everyday code and writing.

Input$0.06$0.6 per 1M tokensBalance rate: ×0.3
Output$0.22$2.2 per 1M tokensBalance rate: ×1.1
You save−90%Official price: $0.6 / $2.2KLINCH price: $0.06 / $0.22
01

Good for

Open-weight models by Z.ai (Zhipu): good at code and agents for a low price.

Code
Agents
Low price
Model IDglm-4.7
VendorZ.ai
FamilyGLM
Balance rate×0.3 / ×1.1
Cache read$0.011 per 1M tokens
02

Both API formats

The model answers in the Anthropic Messages format and in the OpenAI Chat Completions format. Only the address and the key change.

Terminal
curl https://api.klinch.cloud/v1/messages \
  -H "x-api-key: kl_live_…" \
  -H "content-type: application/json" \
  -d '{"model": "glm-4.7", "max_tokens": 1024,
       "messages": [{"role": "user", "content": "Hello"}]}'
Python
from openai import OpenAI

client = OpenAI(base_url="https://api.klinch.cloud/v1", api_key="kl_live_…")
r = client.chat.completions.create(
    model="glm-4.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)

API docs

FAQ

FAQ

How much does GLM 4.7 cost on KLINCH?

$0.06 per 1M input tokens and $0.22 per 1M output tokens. Z.ai’s list price is $0.6 and $2.2. The balance is charged ×0.3 per input and ×1.1 per output token.

How do I call GLM 4.7 through the API?

Use the KLINCH API address, your kl_live_… key and the model glm-4.7. The Anthropic SDK, the OpenAI SDK, Claude Code, Cursor and any client with a custom base URL work.

Is there a subscription?

No. You buy a token pack once and tokens are charged as you use them.

Is this the official Z.ai API?

No. KLINCH is not affiliated with Z.ai. We provide access to the model through our own gateway that speaks the Anthropic and OpenAI APIs.

More models of this family

One key, one balance, every top model

Claude, GPT, Gemini, DeepSeek and Grok at a tenth of the official price. No subscription, pay as you go.