StarSeaStarSea
Ready to build?Get an API key — all models at 50% of the official price →
Home › Models › glm-5.1

glm-5.1 API

Call glm-5.1 through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.

Zhipu AIChatReasoningCoding
26.1
Intelligence index
55.8
Coding index
23.9
Agentic index

Pricing

Input$0.92 / 1M tokens  (¥6.00)
Output$3.69 / 1M tokens  (¥24.00)
Output multiplier×4.00
Context window200K tokens
Max output128K 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.92 per 1M input tokens it sits above the catalogue median of $0.69 — a capability-first 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.1",
  messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)

Integrations · Quickstart

Other models from this provider

ModelsInput $/MOutput $/MIntelligence indexCoding index
glm-5.3-flash$0.12$0.4341.871.5
glm-4.7$0.31$1.2322.245.3
glm-4.5$0.60$2.2012.8—
glm-4.6$0.60$2.2018.545.8
glm-5$0.62$2.7727.9—
glm-5-turbo$0.77$3.3826.6—
glm-5.2$1.23$4.3133.768.8
glm-5.3$1.23$4.3144.874.8

Capabilities