← All models

glm-5

glm-5·Zhipu·Text
How much does glm-5 cost?+

Input $1 / 1M tokens, Output $3.2 / 1M tokens. You are billed in credits — 1 USD = 100 credits; these are list prices and any account discount applies at billing.

How do I call glm-5?+

Use any OpenAI-compatible SDK against POST /v1/chat/completions with model set to glm-5. The API tab has curl / Python / TypeScript examples.

What happens when my balance runs out?+

Requests return HTTP 402 (insufficient_quota). Top up and retry; async tasks that were already submitted and pre-paid are not affected.

What is the context window, and how is caching billed?+

The context window is not published for this model yet. Cached input tokens are billed at a separate cache price (shown on the Overview tab when available).

Is streaming supported?+

Yes — add "stream": true to receive SSE. Once a streamed response has started, it will not switch providers.

Does it support tool calling and image input?+

Check Supported parameters and input modalities on the Overview tab; unsupported parameters are ignored or return 400.

Is my request content stored?+

Yes. Request parameters and responses are stored under your account so you can review them in Activity — do not submit secrets or sensitive personal data. The request is also forwarded to the upstream provider that serves it. See the Privacy Policy.

Contact support about this model