GLM 5 Code

zai/glm-5-code
Chat
Zai|
Function CallingReasoning

GLM 5 Code (zai/glm-5-code) is an AI model from Zai with a 200,000-token context window and 128,000 max output tokens, priced at $1.20/1M input and $5.00/1M output tokens. Available via the haimaker.ai OpenAI-compatible API.

Context Window
200K
tokens
Max Output
128K
tokens
Input Price
$1.20
/1M tokens
Output Price
$5.00
/1M tokens
Cached Input
$0.30
/1M tokens
Cache Write
Free
/1M tokens

Overview

GLM 5 Code is a chat model by Zai. It supports a 200K token context window. Supports function calling, reasoning.

Features & Capabilities

ModeChat
Context Window200,000 tokens
Max Output128,000 tokens
Function CallingSupported
VisionNot supported
ReasoningSupported
Web SearchNot supported
Url ContextNot supported

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="zai/glm-5-code",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Frequently Asked Questions

What is the context window of GLM 5 Code?

GLM 5 Code (zai/glm-5-code) has a 200,000-token context window and supports up to 128,000 output tokens per request.

How much does GLM 5 Code cost?

GLM 5 Code is priced at $1.20 per 1M input tokens and $5.00 per 1M output tokens when accessed via the haimaker.ai OpenAI-compatible API.

What features does GLM 5 Code support?

GLM 5 Code supports function calling, reasoning.

How do I use GLM 5 Code via API?

Send requests to https://api.haimaker.ai/v1/chat/completions with model "zai/glm-5-code" using any OpenAI-compatible SDK. Authentication uses a Bearer API key from https://app.haimaker.ai.

Use GLM 5 Code with the haimaker API

Available via the haimaker.ai OpenAI-compatible API.

Get API Access

haimaker.ai 2026 - All Rights Reserved