glm-5 API

Z.ai glm-5 for chat and coding; Flatkey routes this model through /v1/chat/completions. $0.8/$2.56 per 1M tokens 204,800-token context window.

Chat and codingLong contextTool workflows
Input /M
Reference price: $1
$0.8-20%
Cache /M
Reference price: $0.2
$0.16-20%
Output /M
Reference price: $3.2
$2.56-20%
Provider
Z.ai

glm-5 API performance

glm-5 API reliability and uptime

Live Flatkey request telemetry for glm-5 appears here when enough production traffic is available.

Avg. provider uptime
96.8%
last 30 days
Latency
9.00s
last 30 days
Requests
373
30-day window
Successful inference trend

glm-5 API activity

glm-5 API usage and request activity

Track request volume and successful inference activity for glm-5 over the latest reporting window.

Requests
373
30-day window
Latency
9.00s
last 30 days
Uptime
96.8%
last 30 days
Successful inference trendActivity

glm-5 pricing

glm-5 API pricing and billing

Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.

Flatkey price

Input /M

Live catalog model
$0.8
Input /M
$0.8$1
Cache /M
$0.16$0.2
Output /M
$2.56$3.2
View API
Shared balance

Add credits

Add credits

Use the same Flatkey balance and API key across image, video, audio, and text models.

Model catalog
Model Type
Text
API
/v1/chat/completions
Billing basis
1M tokens

glm-5 chat and coding: core capabilities

Z.ai's glm-5 route supports text · file. Catalog categories: Programming, Roleplay, Marketing.

glm-5 chat and coding API

Call glm-5 through /v1/chat/completions for chat, coding or agent workflows supported by the model's listed modalities.

glm-5 long-context work

glm-5 is listed with 204,800-token; use that catalog value as an integration planning reference and validate limits for your account.

glm-5 tool and agent workflows

Keep tool calls, structured output and streaming behavior aligned with the endpoint contract instead of assuming every provider feature is interchangeable.

glm-5 production routing

Use one Flatkey key for glm-5, usage controls and model routing while retaining the exact model id in your SDK configuration.

Compare

glm-5 API comparison: capabilities and access

Compare the catalog facts for glm-5 with the previous-generation baseline before changing your integration.

CapabilityPrevious generationglm-5
ProviderNot verified in this catalog snapshotZ.ai
ModalitiesNot verified in this catalog snapshottext · file
ContextNot verified in this catalog snapshot204,800-token
EndpointNot verified in this catalog snapshot/v1/chat/completions
BillingNot verified in this catalog snapshot$0.8/$2.56 per 1M tokens

Why Flatkey

Why use Flatkey for glm-5?

OpenAI-compatible migration path

Chat Completions-style payloads reduce switching friction from existing model stacks.

Production routing

Keep usage, keys, quotas, and model routing in one Flatkey account.

Unified API access

Use one account and API key across image, video, audio, and language models.

Routing across upstream channels

Requests are spread across the channels serving this model, with 30-day uptime published above.

API Gateway

Supported endpoint coverage in our pricing API.

Call this model through the same OpenAI-compatible router and API key as the rest of the Flatkey catalog.
Use your existing SDK and set its base URL to the Flatkey router origin.
Keep prompts and request files in your terminal workflow with the Flatkey CLI.
Use the same key with your coding agent and route model jobs from a script.
curl https://router.flatkey.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-..." \
  -d '{
  "model": "glm-5",
  "messages": [
    {
      "role": "user",
      "content": "You are a senior backend engineer. In 3 sentences, explain why developers should use an LLM gateway instead of calling each official API directly."
    }
  ]
}'
Docs

FAQ

glm-5 API
pricing, features, and usage FAQs

Answers about glm-5 pricing, capabilities, endpoint access and catalog limits.

What is glm-5 used for?
glm-5 is listed by Z.ai for chat and coding; the catalog lists these modalities: text · file.
How is glm-5 priced?
Use the pricing section above for current Flatkey prices from our pricing API.
Which API endpoint calls glm-5?
Flatkey routes this model through /v1/chat/completions. Set the model field to glm-5 and follow the fields supported by that endpoint.
What context or input limits does glm-5 have?
glm-5 is listed with 204,800-token. Other limits depend on the route and current account availability, so verify them before production use.