Skip to content

How to Get a GLM API Key for Free

Updated 27 October 2026.

In short: Z.ai's GLM API is paid per token; the "Limited-time Free" label on its pricing page is for cached-input storage, not the models. GLM-5.3 and GLM-5.3-Flash are free on NVIDIA's API catalog after phone verification, and GLM-5.3-Flash is free inside the OpenCode app.

The Z.ai GLM API: paid per token

Z.ai's pricing page lists every GLM model with a price:

ModelInput, per 1M tokensOutput, per 1M tokens
GLM-5.3$1.40$4.40
GLM-5.3-Flash$0.15$0.50
GLM-4.7$0.60$2.20

The column marked "Limited-time Free" is cached-input storage.

Where GLM models are free

WhereGLM modelFree allowanceWhat it needs
NVIDIA (build.nvidia.com)z-ai/glm-5.3, z-ai/glm-5.3-flashUp to 40 requests a minute, no daily limit statedPhone verification, not offered in every country
OpenCodeglm-5.3-flash-freeFree inside the OpenCode appNothing; it only works in OpenCode, not as an API key
Easy GonkaAI APIzai-org/GLM-5.3-Flash10 million tokens once, for a new accountA free account; no card, no phone check
Perplexity Agent APIperplexity/glm-5.3, perplexity/glm-5.3-flashA one-time $10 signup credit for some new accounts, 60 daysA Perplexity API account; no card

OpenCode's docs say its free models work only inside OpenCode, not from other apps. The full list of free AI APIs, with each limit and source, is on how to get AI API keys for free.

Use a free GLM model in an app made for OpenAI

In the app, enter the service's key, its base URL and its GLM model name:

ServiceBase URLModel name
NVIDIAhttps://integrate.api.nvidia.com/v1z-ai/glm-5.3
Easy GonkaAI APIhttps://hskyauefqcgbvgvxkluj.supabase.co/functions/v1/gonkazai-org/GLM-5.3-Flash

To put several free keys behind one address on your own computer, the open-source OmniRoute gateway switches to the next key when one runs out.

Words to know

  • API key: the password an app uses to call a model. See what is an API key.
  • GLM: the model family from Z.ai (Zhipu AI); GLM-5.3-Flash is its fast, low-cost model.
  • Base URL: the address an app sends its requests to.
  • Token: a piece of a word; the unit models read and write. See tokens and context windows.

Frequently asked questions

Is the GLM API free?+

No. Z.ai bills GLM models per token: GLM-5.3 costs $1.40 per million input tokens and $4.40 per million output tokens. Only cached-input storage is marked Limited-time Free.

Where can I use GLM for free?+

GLM-5.3 and GLM-5.3-Flash are in NVIDIA's free API catalog (z-ai/glm-5.3, z-ai/glm-5.3-flash) after phone verification. GLM-5.3-Flash is also free inside the OpenCode app, with no API key.

What is the NVIDIA base URL for GLM?+

https://integrate.api.nvidia.com/v1 with the model name z-ai/glm-5.3 and an NVIDIA API key.

More free API key tutorials

By model: DeepSeek · OpenAI (GPT) · Claude · Grok · Perplexity · Mistral · Kimi · Qwen · MiniMax · Llama · Nemotron · Gemma · gpt-oss

Want to use these APIs in a desktop app? OpenCode is a free, open-source AI coding app for Windows, Mac and Linux. How to add free API keys to OpenCode and pick a model.