GLM 5 Turbo API

GLM 5 Turbo on AIMLAPI.

Modalities
Image, TextText
In / Out price
$1.2/$4per 1M
Context window
256K tokens
Released
Mar 15, 2026

GLM 5 Turbo overview

GLM 5 Turbo specs

Model ID
z-ai/glm-5-turbo
Developer
Zhipu AI
Context window
262,144 tokens
Max output
131,072 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.

Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

GLM-5 Turbo is documented as suited to complex, automated agent workflows in OpenClaw scenarios, where it is optimized for tool invocation, command following, timed and persistent tasks, and long-chain execution.

It is also suited to agent-driven work that requires complex instruction decomposition, repeated tool use, and stable execution across extended tasks.

The model is documented as useful for information search and gathering, office and daily tasks, data analysis, development and operations, and automation.

It is also described as suitable for complex business-process execution, including end-to-end workflows that orchestrate writing, image generation, and video-production tools.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

GLM 5 Turbo benchmarks by Artificial Analysis

See how GLM 5 Turbo scores on independent evaluations. Data retrieved Nov 3, 2026.

Benchmark results

Compare 13 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

GLM 5 Turbo API pricing

GLM 5 Turbo pricing in US dollars
UsagePriceUnit
Input$1.21M tokens
Output$41M tokens
Cached input$0.241M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GLM 5 Turbo vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GLM 5 Turbo$1.2$4
GLM-5.3-Flash$0.15$0.5
GLM 5.3 FlashX$0.37$1.25
GLM-5.3$1.4$4.4
GLM 5.2 Fast Preview$3.5$11

How to use the GLM 5 Turbo API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "z-ai/glm-5-turbo",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GLM 5 Turbo FAQ

What is the context window of GLM 5 Turbo?

GLM 5 Turbo has a 262,144 tokens context window and can return up to 131,072 tokens.

What inputs and outputs does GLM 5 Turbo support?

GLM 5 Turbo takes image, text as input and returns text.

What is the model ID for GLM 5 Turbo?

Use z-ai/glm-5-turbo as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does GLM 5 Turbo cost?

GLM 5 Turbo costs $1.2 input and $4 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GLM 5 Turbo support streaming?

Yes, GLM 5 Turbo can stream responses as they are generated.

Can GLM 5 Turbo read images?

Yes, GLM 5 Turbo accepts image input alongside text.

Who created GLM 5 Turbo?

GLM 5 Turbo was built by Zhipu AI.

Start building with GLM 5 Turbo

GLM 5 Turbo API

z-ai/glm-5-turbo

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "z-ai/glm-5-turbo",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'