New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
Model/Details
Loading…
Home / Pricing / Models / glm-5

glm-5 API Pricing & Access

GLM-5 is Zhipu's next-generation flagship base model built for Agentic Engineering, delivering reliable productivity in complex systems engineering and long-horizon Agent tasks.

Pricing by group

USD per 1M tokens. Price = base price × group ratio.

GroupInputOutputAbout this group
Self-Deployed-2$0.50$1.60Moderate price with good availability. Suitable for general reasoning, document reading
Self-Deployed-3$0.75$2.40Higher price. It excels at long-document sorting, logical reasoning and complex multi-turn image-text tasks with stable availability

Long-context tiers

Using the lowest-priced public group, Self-Deployed-2, as the example (USD per 1M tokens); other groups scale by their own ratio. Ranges are token counts per request.

Input range (tokens)InputOutputCache multiplier
[0 , 32000]$0.50$1.601x
(32000 , 1000000]$0.75$1.921.5x

Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.

Capabilities

Provider
ChatGLM
Features
Conversation · Tools
API formats
OpenAI Chat Completions

Quick start

Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.

curl · /v1/chat/completions
curl https://api.openlux.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
    model="glm-5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Full parameters in the API docs

FAQ

How do I call the glm-5 API?

Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use glm-5 as the model name.

How is the glm-5 API billed?

Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.50 per 1M input tokens and $1.60 per 1M output tokens. Top-ups start at $1.

Is there a Batch API?

Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.

Which API formats does glm-5 support?

OpenAI Chat Completions.

More

More ChatGLM models

  • glm-5.3-flash
  • glm-5.3
  • glm-5.2
  • glm-5.1
  • glm-4-airx
  • glm-4-long
  • glm-4-flash
  • glm-4.5
  • glm-4.5-air
  • Model directory
  • All model pricing
  • Sign up and get an API key

Other languages: 中文 · 日本語 · 한국어

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |