Coding GLM 5.1

coding-glm-5.1 · Z.AI

Only supports OpenAI-compatible formats.

API Pricing

Input$0.06 / 1M tokens
Output$0.22 / 1M tokens

Specifications

Context200K tokens
Max output131K tokens
Modalitiestext
CapabilitiesThinking, Streaming, Tool calling, Structured outputs, Prompt caching

Frequently asked questions

What is Coding GLM 5.1?

Only supports OpenAI-compatible formats.

What is the context length of Coding GLM 5.1?

Coding GLM 5.1 has a 200,000 token context window. It supports up to 131,072 output tokens.

How much does Coding GLM 5.1 cost?

On AIHubMix, Coding GLM 5.1 costs $0.06 per million input tokens and $0.22 per million output tokens.

What modalities does Coding GLM 5.1 support?

Coding GLM 5.1 accepts text input.

What capabilities does Coding GLM 5.1 support?

Coding GLM 5.1 supports thinking, tool calling, function calling and structured outputs. Per-protocol parameter support is listed in the capability table on this page.

How do I call Coding GLM 5.1 via API?

Coding GLM 5.1 is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to coding-glm-5.1 — no other code changes needed.

Who created Coding GLM 5.1?

Coding GLM 5.1 is developed by Z.AI. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

Free version: Coding GLM 5.1 (free)

More models from Z.AI

See all Z.AI models →

GLM 5.3 Flash

by Z.AI

GLM-5.3-Flash is a high-efficiency multimodal model from Z.AI. It supports a context…

$0.113 $0.056/1M in · $0.394 $0.197/1M out
50% off
1,000,000 tokens context

GLM 5.3

by Z.AI

GLM-5.3 is Z.AI’s coding and agentic reasoning model, built for complex software…

$1.127 $1.014/1M in · $3.944 $3.549/1M out
10% off
1,000,000 tokens context

Coding GLM 5.3

by Z.AI

GLM-5.3 is Z.ai’s reasoning model for coding and agentic workflows, designed for complex…

$0.06/1M in · $0.22/1M out

Coding GLM 5.3 Flash (free)

by Z.AI

coding-glm-5.3-flash-free is the open and free version of coding-glm-5.3-flash. To ensure…

Coding GLM 5.3 Flash

by Z.AI

Coding GLM 5.3 Flash is a dedicated version of GLM 5.3 Flash built for AI coding and…

$0.028/1M in · $0.099/1M out
1,000,000 tokens context

Coding GLM 5.3 (free)

by Z.AI

coding-glm-5.3-free is the open and free version of coding-glm-5.3. To ensure stable…

Use Coding GLM 5.1 via the AIHubMix unified API — one interface for every major LLM.