Z.AI (GLM)

Free Quotas

Zhipu AI's global platform for the GLM model family. GLM-4.5-Flash and GLM-4.7-Flash are free, rate-limited models with strong coding performance, served through an OpenAI-compatible endpoint.

3
Free Models
Community Verified
Truly Free Coding Fast OpenAI Compatible

Rate Limit

Maximum requests per time period
~1 request/second (Flash models)

Max Context

Maximum tokens the model can process
128,000

Cost

$0

.00

FREE Account required, no card

Quick Start

API Endpoint

https://api.z.ai/api/paas/v4

Z.AI (GLM) at a glance

  • Free tier: Permanent free tier
  • Sign-up: Account required, no card
  • Limits: ~1 request/second (Flash models)
  • Models: 3 free models listed

Example: Making Your First Request

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_ZAI_KEY",
    base_url="https://api.z.ai/api/paas/v4"
)

response = client.chat.completions.create(
    model="glm-4.6v-flash",
    messages=[
        {"role": "user", "content": "What makes the GLM Flash tier fast?"}
    ]
)

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

Free Models

Model Name ID Context Capabilities
GLM-4.6V-Flash (vision)
glm-4.6v-flash
Vision
GLM-4.5-Flash
glm-4.5-flash
128,000
GLM-4.7-Flash
glm-4.7-flash
128,000

Current Limits

Request Limits

  • Rate Limit
    ~1 request/second (Flash models)
  • Daily Limit
    ~1,000 requests/day (Flash tier)

Token Limits

Throughput

Varies by model

Monthly Cap

Free tier ongoing, subject to change

Key Features

GLM-4.5-Flash & GLM-4.7-Flash Free Access
Strong Coding Benchmarks
OpenAI-Compatible Endpoint
Optional Paid GLM Coding Plan for Higher Limits

Common Use Cases

Low-Cost Coding Assistants

Lightweight Chat Agents

High-Volume Prototyping

Known Limitations

  • Free Flash tier capped near 1 request/second
  • Flagship GLM-5.2 model requires a paid plan
  • Free-tier limits have changed more than once in the past year — verify on docs.z.ai

Quick Start Guide

1

Create Account

Sign up at z.ai/chat with your email.

2

Get API Key

Open your profile menu, select API Keys, and create a new key.

3

Configure

Use the OpenAI SDK with base_url='https://api.z.ai/api/paas/v4' and model glm-4.5-flash or glm-4.7-flash.

Frequently Asked Questions

How do I get an API key?

Getting your Z.AI (GLM) API key is simple:

  1. Visit the official Z.AI (GLM) website
  2. Sign up for a free account (no credit card required)
  3. Navigate to the API section in your dashboard
  4. Generate your API key and start using it immediately
Are there free quotas?

Yes! Z.AI (GLM) offers a generous free tier with no credit card required. Check the provider's website for current terms and conditions regarding free tier availability and duration.

What happens if I exceed the free limits?

If you reach the rate limit, your requests will be temporarily throttled. The limits reset automatically after the specified time period. You can always monitor your usage in the provider's dashboard.

Is my data secure?

Z.AI (GLM) takes security seriously. All API communications are encrypted via HTTPS. Check their privacy policy and terms of service for detailed information about data handling and retention policies.

Make your first call to Z.AI (GLM)

Create a key on the official site and make your first call with the examples on this page. Free limits can change, so check them before you ship.

Permanent free tier
Account required, no card
Get API Key