Z.ai
Z.ai GLM 5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
- Context window
- 205Ktokens
- Max output
- 131Ktokens
- Input
- $1.40/ 1M
- Output
- $4.40/ 1M
Quick start
from openai import OpenAI
client = OpenAI(
base_url="https://neurongate.net/v1",
api_key="sk-ng-your-api-key",
)
completion = client.chat.completions.create(
model="z-ai/glm-5.1",
messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)Cost
| Example request | Tokens | Cost |
|---|---|---|
| Short prompt | 1K in | $0.0014 |
| Typical chat turn | 1K in · 500 out | $0.0036 |
| Document analysis | 10K in · 2K out | $0.0228 |
| Long context | 100K in · 10K out | $0.184 |
Prices in USD. Billed per token actually used, from a balance prepaid in USDT, USDC, ETH or BTC.
Frequently asked questions
What is Z.ai GLM 5.1?
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
How much does Z.ai GLM 5.1 cost?
Z.ai GLM 5.1 is priced at $1.4 per 1 million input tokens and $4.4 per 1 million output tokens when accessed via NeuronGate. You pay per token — no subscriptions required. Top up with crypto (USDT, USDC, ETH, BTC).
Does Z.ai GLM 5.1 support streaming?
Yes, Z.ai GLM 5.1 supports streaming responses via NeuronGate's API. Use the standard "stream": true parameter in your request.
What is the context window of Z.ai GLM 5.1?
Z.ai GLM 5.1 has a context window of 205K tokens (~154K words). Maximum output is 131K tokens.
Does Z.ai GLM 5.1 support function calling (tools)?
Yes, Z.ai GLM 5.1 supports function calling / tool use via NeuronGate's standard API.
How do I use Z.ai GLM 5.1 with NeuronGate?
Create a NeuronGate account, top up your balance with crypto, generate an API key, and use the model id z-ai/glm-5.1 in your requests. NeuronGate uses the OpenAI-compatible API format — set your base URL to https://neurongate.net/v1.