Z.ai · 205K context

GLM 5.1 API

Chat with GLM 5.1

Use GLM 5.1 in the Synaps chat or through one OpenAI-compatible API key. Pay per message from a balance you top up with ETH or USDC. No subscription, no card.

No training
Input / 1M tokens$1.68list $1.40
Output / 1M tokens$5.28list $4.40
Typical message≈ $0.00521.5K in · 500 out
Context window205Ktokens

Prices include the 20% Synaps fee and update automatically. “List” is what the provider charges.

Call GLM 5.1 from code

Synaps speaks the OpenAI Chat Completions format. Point any OpenAI SDK at Synaps and set model to z-ai/glm-5.1.

cURL
curl https://www.synaps.chat/api/v1/chat/completions \
  -H "Authorization: Bearer $SYNAPS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'
Python
from openai import OpenAI

client = OpenAI(base_url="https://www.synaps.chat/api/v1", api_key="syn_...")

reply = client.chat.completions.create(
    model="z-ai/glm-5.1",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

Quickstart · API reference · Create an API key

Privacy

Synaps routes this model only to providers that don't store or train on your prompts.

Questions

How much does GLM 5.1 cost on Synaps?

$1.68 per million input tokens and $5.28 per million output tokens, including the 20% Synaps fee. A typical chat message costs about $0.0052. You only pay for what you use.

Can I pay for GLM 5.1 with crypto?

Yes. Top up your Synaps balance with ETH on Robinhood Chain or Base, or USDC on Base, from $1. Each message is deducted from that balance. There is no subscription or card.

Is there a GLM 5.1 API?

Yes. Create an API key on Synaps and call z-ai/glm-5.1 through the OpenAI-compatible endpoint https://www.synaps.chat/api/v1/chat/completions. Any OpenAI SDK works by changing the base URL.

What can GLM 5.1 do?

It accepts text and produces text, with a context window of 205K tokens.

More from Z.ai

← All models

GLM 5.1 API — pay per message with crypto · Synaps