← All models

glm-5

glm-5·Zhipu·Text

glm-5 is a text generation model from Zhipu, available through NovAPI's OpenAI-compatible API with the model ID glm-5. It takes text as input and returns text. Pricing is $1 per 1M input tokens and $3.2 per 1M output tokens.

Pricing

Input
$1 / 1M tokens
Output
$3.2 / 1M tokens
Cache read
$0.1 / 1M tokens
Cache write (5 min)
$1.25 / 1M tokens

You are billed in credits (1 USD = 100 credits); USD is shown for reference.

Quick start

Call glm-5 through the OpenAI-compatible endpoint POST /v1/chat/completions. Set model to glm-5 and send your API key as a Bearer token in the Authorization header.

from openai import OpenAI

client = OpenAI(base_url="https://api.novapi.ai/v1", api_key="sk-...")

resp = client.chat.completions.create(
    model="glm-5",
    messages=[{"role": "user", "content": "Explain quantum entanglement in three sentences."}],
)
print(resp.choices[0].message.content)

More languages and parameters are on the API tab →

Quick answers

How much does glm-5 cost?
Pricing is $1 per 1M input tokens and $3.2 per 1M output tokens. Prices are in USD (1 USD = 100 credits) and come from the live model catalog (https://api.novapi.ai/v1/models), the same source as the pricing page; any account discount applies at billing.
How do I call glm-5 through NovAPI?
Send a request to https://api.novapi.ai/v1/chat/completions with model set to "glm-5" and your API key as a Bearer token in the Authorization header.
What inputs and outputs does glm-5 support?
It takes text as input and returns text (from the architecture field of the model catalog).

Contact support about this model