- How is the glm-5 API billed?
- glm-5 is pay-as-you-go from ¥5.0041 / M. The exact rate is listed in the pricing table on this page and billed at EasyAPI's public price, with no subscription required.
- How do I call glm-5 through the API?
- EasyAPI exposes an OpenAI-compatible API: create an API key in the console, set base_url to https://token.easyapi.com and model to zai/glm-5, then send requests to /v1/chat/completions. The Quick Start on this page includes cURL, Python and TypeScript examples; official OpenAI SDKs only need the base_url swapped.
- Which request formats does glm-5 support?
- OpenAI Chat Completions format including streaming (stream). Official OpenAI and Anthropic SDKs work by swapping base_url; see the Parameters table on this page for the full list.
- How do I get started with glm-5?
- Sign up for EasyAPI, create an API key in the console and top up your balance to call glm-5 pay-as-you-go, no subscription needed. You can also try it in the online Playground first, then copy the Quick Start example.