Z.ai (GLM API)

Z.ai's API and GLM Coding Plan for its GLM models, including GLM-5.3 and GLM-5.3-Flash with up to 1M tokens of context, function calling, structured output and context caching; GLM-5.4 (Nov 23), its first Loop Transformer flagship, is available now in the GLM Coding Plan for Claude Code, Codex, OpenCode, Cline and other agents, with the API to follow after a security review.

Official website
Pricing
Free (API pay-as-you-go: GLM-5.3 $1.40 input / $4.40 output per 1M tokens, GLM-5.3-Flash $0.15 / $0.50; GLM-4.7-Flash is free. GLM Coding Plan (includes GLM-5.4) from $18/mo)
Best for
Cheap, strong coding models for your own agent or for Claude Code and OpenCode on a flat monthly plan
Rank
Unranked · listed 10 of 12 in Models & APIs
Last updated
Nov 24, 2026

Buyer's guides

Add a “Listed on Rankholt” badge to your site or README
Z.ai (GLM API) Rankholt badge, lightZ.ai (GLM API) Rankholt badge, dark
HTML
<a href="https://rankholt.com/tool/z-ai-glm-api" target="_blank" rel="noopener"><img src="https://rankholt.com/badge/z-ai-glm-api.svg" alt="Z.ai (GLM API): listed in Models &amp; APIs on Rankholt" width="191" height="54" /></a>
Markdown (README)
[![Z.ai (GLM API): listed in Models & APIs on Rankholt](https://rankholt.com/badge/z-ai-glm-api.svg)](https://rankholt.com/tool/z-ai-glm-api)

The badge updates itself if the ranking changes. Free to use; no tracking scripts.

Own this tool?Suggest an updateSponsor

Alternatives in Models & APIs

  1. 1

    Claude models via API, from Haiku 5.5 and Sonnet 5.5 to Opus 5.5 and the new Claude Fable 5.2 (Nov 9) for the hardest long-running engineering work

    Why it ranks · Top-tier coding and tool-use models; Fable 5.2 adds a frontier tier at $8/$40 per 1M tokens

    PaidCoding and agentic tasks

  2. 2

    GPT models via API, including GPT-6.2 Astra for the hardest reasoning and coding and GPT-6.2 Sol for everyday coding and agents with a 1.05M-token context (both Nov 17), plus image and audio models

    Why it ranks · Broadest model and feature lineup; GPT-6.2 Astra (Nov 17) is 20% cheaper per token than GPT-6 Astra, and Sol stays at $2/$10 per 1M tokens

    PaidGeneral-purpose AI features

  3. 3

    Gemini models via Google AI Studio and the Gemini API: frontier Gemini 4 Carbon and Argon, plus Gemini 4 Hydrogen (Nov 12), a fast 1M-context model for everyday coding and agent work, and Gemini 4 Neon (Nov 18), a mid-sized frontier model for complex coding and long agent runs at $3 input / $15 output per 1M tokens (paid tier)

    Why it ranks · Gemini 4 Hydrogen (Nov 12) adds a fast, strong coding model at $1.50/$7.50 per 1M tokens flat across a 1M context, on top of a free tier in AI Studio

    FreeLong context, fast agentic coding and a generous free tier

  4. 4

    One API for hundreds of models

    FreeSwitching between models

  5. 5

    Ultra-fast inference for open models

    FreeLow-latency apps

  6. 6

    European open and commercial models via API, plus the Mistral Vibe coding agent, which since Nov 17 also has a desktop app for macOS and Windows that runs coding sessions locally or in a Mistral cloud sandbox

    FreeOpen-weight / EU hosting needs

  7. 7

    Moonshot's OpenAI- and Anthropic-compatible API for Kimi models, including Kimi K3.1 Pro, a 1M-context agentic coding model whose open weights are on Hugging Face

    PaidStrong agentic coding at lower token prices, or self-hosting open weights

  8. 8

    Open-weights 145B sparse mixture-of-experts model built to run on a laptop (Edge0 reports 29GB peak memory and 80+ tokens/s), with an open-source inference framework and a desktop app for local coding and agent work on macOS, Windows and Linux

    FreeRunning a large coding and agent model locally, offline and with no per-token fees

  9. 9

    Open-weights (Apache-2.0) model from Thinking Machines Lab: a 26.4B-parameter mixture-of-experts looped transformer (3.4B active) that takes text and images, is about 20GB on disk and runs on a 32GB Mac or a DGX Spark; Thinking Machines reports it leads open-weights models under 100B parameters on agentic coding benchmarks such as DeepSWE v1.1 (48.2%)

    FreeRunning a strong coding and agent model locally, or fine-tuning a small open model

  10. 11

    Open-weights (Apache-2.0) ternary-quantized model from PrismML, based on Qwen3.8 27B, that fits in a 5.9 GB footprint and runs locally via llama.cpp on NVIDIA and Intel GPUs and via MLX on Macs, iPhones and iPads; PrismML reports 75.6 on SWE-bench Verified (up from 60.8 for Bonsai 2) and stronger multi-turn tool use for agentic coding

    FreeRunning a capable coding and agent model on a laptop or consumer GPU with no per-token fees

  11. 12

    Membership from the Command Code team that sells open models (GLM-5.3, DeepSeek V4.1 Flash, Kimi K3, MiniMax M3 and 100+ others) at discounted per-token prices with no router fee and no 5-hour or weekly caps, through OpenAI- and Anthropic-compatible endpoints you can point Claude Code, Codex, OpenCode, Pi, Cursor or Cline at

    PaidHeavy users of open models who want an OpenRouter alternative with lower per-token prices