GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution.
A range is the low and high price across our routes: you pay the price of the route that answers, and the cheapest goes first. Struck through is the developer's official price.
$0.30–$0.50
official price $1.00 official
$0.06–$0.10
official price $0.20 official
$0.96–$1.60
official price $3.20 official
How fast the model answers over every route we serve it from: throughput is tokens written per second, time to first token is how soon the answer starts, end-to-end latency is the whole request.
Share of requests served without a server error. Client errors (4xx) do not count.
Works with the OpenAI SDK pointed at our base URL. Every parameter is in the API reference.
Tokens processed per day on NagaAI.
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models.
On NagaAI, GLM 5 costs from $0.30 per 1M input tokens and from $0.96 per 1M output tokens. You pay only for what you use, with no subscription.
GLM 5 reads up to 202.8k tokens in one request, counting the prompt and the answer together.
Yes. GLM 5 can call your functions as tools and can answer in a JSON schema you give it.
It takes text as input and returns text.
Create an API key, copy the model ID from the top of this page and send requests with the OpenAI or Anthropic SDK pointed at NagaAI. The API section on this page has a ready example.