GLM Latest is available from 2 provider(s). Cheapest: OpenRouter at $0.070 per 1M input tokens and $1.40 per 1M output tokens. Context window: up to 1 048 576 tokens. Developer: Z.ai.
| Provider | Input $/1M | Output $/1M | Context | |
|---|---|---|---|---|
| OpenRouter ~z-ai/glm-latest | $0.070 | $1.40 | 1.05M | Go to provider ↗ Set up |
| NanoGPT z-ai/glm-latest | $0.600 +758 % | $1.10 | 1.05M | Go to provider ↗ Set up |
Sorted by price only – there are no paid placements. Data as of 2026-11-25 09:03 UTC. Prices in USD, excluding taxes. No guarantee.
Reference price: $0.070 / $1.40 per 1M tokens (input / output), OpenRouter · How we compare → · Wrong price? Report it
Price history is recorded daily – the chart appears after the first price change.
from openai import OpenAI
import os
client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
model="~z-ai/glm-latest",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)
Currently at OpenRouter ($0.070 / 1M). Prices are updated daily; the provider’s website is authoritative.
All listed providers offer an OpenAI-compatible API. See the setup guide for Hermes Agent, VS Code, Cursor and more.