glm-5-turbo API
Call glm-5-turbo through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.
Zhipu AIChatReasoningCoding26.6
Intelligence index
Pricing
Input$0.77 / 1M tokens (¥5.00)
Output$3.38 / 1M tokens (¥22.00)
Output multiplier×4.40
Context window200K tokens
Max output131K tokens
Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY
Zhipu AI
The GLM family combines aggressive pricing on the Flash tier with capable flagship variants, and has become one of the most widely deployed model lines on the platform. GLM models are also a common default inside coding agents because of their quality-per-yuan at high request rates.
When to use it
At $0.77 per 1M input tokens it sits in line with the catalogue median of $0.69 — a balanced choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.
Code
from openai import OpenAI
client = OpenAI(
base_url="https://starseaapi.com/v1",
api_key="sk-your-key"
)
r = client.chat.completions.create(
model="glm-5-turbo",
messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)