---
title: Z.ai: GLM 5 Turbo API | Text Generation | ModelsLab
description: Build with Z.ai: GLM 5 Turbo API by Z Ai. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/z-ai/z-ai-glm-5-turbo.md
canonical: https://modelslab.com/models/z-ai/z-ai-glm-5-turbo.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T00:22:52.229428Z
---

Z.ai: GLM 5 Turbo
---

 [LLMs.txt](https://modelslab.com/models/open_router/z-ai-glm-5-turbo/llms.txt) [.md](https://modelslab.com/models/z-ai/z-ai-glm-5-turbo.md)

z-ai-glm-5-turbo z-ai Closed Source Model $2.600000 / call

Z.ai: GLM 5 Turbo
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Z.ai: GLM 5 Turbo

z-ai z-ai-glm-5-turbo

Copy model ID

PricingInput $1.20 / 1M tokens

Output $4.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[![Gemini 3 Pro Preview](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/1846e76f-9d5c-4a35-a43a-82db45b7bb8b.png)](https://modelslab.com/models/google/gemini-3-pro-preview)[Google](https://modelslab.com/models/google)

 [Gemini 3 Pro Preview

Closed Source Model](https://modelslab.com/models/google/gemini-3-pro-preview)

[Q8](https://modelslab.com/models/together_ai/Qwen-Qwen3-8B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 8B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-8B)

[ER](https://modelslab.com/models/together_ai/essentialai-rnj-1-instruct)[Together AI](https://modelslab.com/models/together_ai)

 [EssentialAI Rnj-1 Instruct

Closed Source Model](https://modelslab.com/models/together_ai/essentialai-rnj-1-instruct)

[RR](https://modelslab.com/models/open_router/relace-relace-apply-3)[Open Router](https://modelslab.com/models/open_router)

 [Relace: Relace Apply 3

Closed Source Model](https://modelslab.com/models/open_router/relace-relace-apply-3)

[AC](https://modelslab.com/models/open_router/anthropic-claude-opus-4.1)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude Opus 4.1

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-opus-4.1)

[MC](https://modelslab.com/models/open_router/mistralai-codestral-2508)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Codestral 2508

Closed Source Model](https://modelslab.com/models/open_router/mistralai-codestral-2508)

[GG](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3n 4B

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it)

[MM](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M1-40k)[Together AI](https://modelslab.com/models/together_ai)

 [Minimax M1 40K

Closed Source Model](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M1-40k)

[GG](https://modelslab.com/models/open_router/google-gemma-3-27b-it)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3 27B

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3-27b-it)

[IG](https://modelslab.com/models/open_router/ibm-granite-granite-4.0-h-micro)[Open Router](https://modelslab.com/models/open_router)

 [IBM: Granite 4.0 Micro

Closed Source Model](https://modelslab.com/models/open_router/ibm-granite-granite-4.0-h-micro)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl-free)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 12B 2 VL (free)

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl-free)

[BS](https://modelslab.com/models/open_router/bytedance-seed-seed-1.6-flash)[Open Router](https://modelslab.com/models/open_router)

 [ByteDance Seed: Seed 1.6 Flash

Closed Source Model](https://modelslab.com/models/open_router/bytedance-seed-seed-1.6-flash)

[GG](https://modelslab.com/models/open_router/google-gemini-2.5-flash-lite)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 2.5 Flash Lite

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.5-flash-lite)

[GN](https://modelslab.com/models/open_router/google-gemini-2.5-flash-image)[Open Router](https://modelslab.com/models/open_router)

 [Google: Nano Banana (Gemini 2.5 Flash Image)

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.5-flash-image)

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-2024-11-20)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o (2024-11-20)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-2024-11-20)

[Q2](https://modelslab.com/models/together_ai/Qwen-Qwen2-72B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen 2 (72B)

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2-72B)

[G5](https://modelslab.com/models/together_ai/zai-org-GLM-5)[Together AI](https://modelslab.com/models/together_ai)

 [GLM 5 Fp4

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-5)

[AC](https://modelslab.com/models/open_router/anthropic-claude-3.5-haiku)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude 3.5 Haiku

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-3.5-haiku)

About Z.Ai: GLM 5 Turbo
---

GLM-5 Turbo is a new model from Z.ai designed for fast inference and strong performance in agent-driven environments such as OpenClaw scenarios. It is deeply optimized for real-world agent workflows...

### Technical Specifications

Model IDz-ai-glm-5-turboCategoryLLM ModelsTaskText GenerationPrice$2.600000 per million tokensAddedMarch 16, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Z.Ai: GLM 5 Turbo into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "z-ai-glm-5-turbo",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/z-ai/z-ai-glm-5-turbo/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Z.Ai: GLM 5 Turbo API costs $2.600000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Z.Ai: GLM 5 Turbo](https://modelslab.com/zai-glm-5-turbo) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Z Ai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Z.Ai: GLM 5 Turbo FAQ
---

### What is Z.Ai: GLM 5 Turbo?

GLM-5 Turbo is a new model from Z.ai designed for fast inference and strong performance in agent-driven environments such as OpenClaw scenarios. It is deeply optimized for real-world agent workflows...

### How do I use the Z.Ai: GLM 5 Turbo API?

You can integrate Z.Ai: GLM 5 Turbo into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "z-ai-glm-5-turbo" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Z.Ai: GLM 5 Turbo cost?

Z.Ai: GLM 5 Turbo costs $2.600000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Z.Ai: GLM 5 Turbo model ID?

The model ID for Z.Ai: GLM 5 Turbo is "z-ai-glm-5-turbo". Use this ID in your API requests to specify this model.

### Does Z.Ai: GLM 5 Turbo have a free tier?

Yes, ModelsLab offers a free tier that lets you try Z.Ai: GLM 5 Turbo and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*