z-ai/glm-5.1 — Free API

Created by Z AI ⭐ Score: 88 Verified
nvidia-nim/z-ai-glm-5-1
chat

What is z-ai/glm-5.1?

Z.AI GLM 5.1 is Zhipu AI's latest model, free on NVIDIA NIM with up to 40 RPM and no daily token cap. GLM 5.1 brings Zhipu AI's newest advances in bilingual (Chinese-English) performance and general reasoning. NVIDIA's OpenAI-compatible API makes it accessible from standard toolchains. Requires free NVIDIA Developer Program membership and phone verification.

Model ID
z-ai/glm-5.1
Base URL
https://integrate.api.nvidia.com/v1

z-ai/glm-5.1 API Code Example

Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.

from openai import OpenAI

client = OpenAI(
    base_url="https://integrate.api.nvidia.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="z-ai/glm-5.1",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://integrate.api.nvidia.com/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "z-ai/glm-5.1",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://integrate.api.nvidia.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from NVIDIA NIM

More About NVIDIA NIM

How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up NVIDIA NIM as a free LLM API backend.

View NVIDIA NIM full guide →