NVIDIA Hosts a Free GLM-5.2 API Endpoint Compatible with OpenAI Toolchains
GLM-5.2's free API is not provided directly by Zhipu, but is hosted on NVIDIA's build.nvidia.com developer platform. It supports registration with Chinese mainland phone numbers, is compatible with the OpenAI format, and can be integrated into mainstream development tools such as Claude Code, Cursor, and VS Code. This article details the complete process from registration to integration, and provides code examples and a comparison of various integration methods.
build.nvidia.com Platform Overview
NVIDIA's developer platform build.nvidia.com currently hosts 141 AI models, 77 of which provide free API endpoints.
These free models cover the current mainstream open-source and commercial models, including DeepSeek-V4-Pro, Kimi-K2.6, MiniMax-M2.7, Qwen3.5, and others. GLM-5.2 is also among them, labeled as Free Endpoint + Downloadable, with the provider listed as Z.ai and the model identifier as z-ai/glm-5.2.
GLM-5.2 was listed on the NVIDIA NIM (NVIDIA Inference Microservices) catalog on July 2, 2026, and surpassed 2 million downloads within just one day of its release. This model is based on a 744B parameter MoE (Mixture of Experts) architecture, supports a 1 million token context window, and is open-sourced under the MIT license, with no restrictions for commercial or non-commercial use.
Unlike Meituan CatPaw (500 free uses) or Alibaba QoderWork (2000 credits / 30-day validity), what NVIDIA provides is not a model call wrapped inside a product, but a bare API interface. It is compatible with OpenAI's Chat Completions format and can be integrated into any development tool that supports this protocol, including Claude Code, Cursor, GitHub Copilot, VS Code plugins, and even self-developed applications.
Registration and Obtaining a Free API Key
The entire process takes about five minutes, requires no VPN, and Chinese mainland phone numbers work normally.
Visit build.nvidia.com. You can log in directly with a Google or GitHub account, or register a new account with an email. After logging in, enter your personal center; the system will ask you to verify a phone number. A domestic phone number can receive the verification code without issue.
Many people assume this platform does not support Chinese phone numbers, but in fact, it works perfectly fine.
Then, go to the API Keys management page in your personal center and click Generate API Key. Give the key a recognizable name (e.g., free-glm), and the system will generate a key string starting with nvapi-.
⚠️ This key is displayed only once. After closing the page, it cannot be viewed again, so be sure to copy and save it immediately.
Regarding validity, you can currently set it for up to one year (there is also a never-expire option). The official page states Unlimited API requests without daily limits, with no explicit daily request cap.
Three Key Parameters
Open the GLM-5.2 model page on the NVIDIA platform to see the three parameters required for integration:
| Parameter | Value |
|---|---|
| Base URL | https://integrate.api.nvidia.com/v1 |
| API Key | Key starting with nvapi- |
| Model | z-ai/glm-5.2 |
These three parameters apply to all tools and SDKs compatible with the OpenAI format.
Integration Method 1: Direct Code Calls
For developers, you can directly use the OpenAI-compatible SDK for calls.
Python Example
from openai import OpenAI
client = OpenAI(
base_url="https://integrate.api.nvidia.com/v1",
api_key="nvapi-your-key"
)
response = client.chat.completions.create(
model="z-ai/glm-5.2",
messages=[
{"role": "user", "content": "Write a quicksort algorithm in Python"}
],
temperature=0.6,
max_tokens=4096
)
print(response.choices[0].message.content)
cURL Example
curl https://integrate.api.nvidia.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer nvapi-your-key" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [
{"role": "user", "content": "Explain the TCP three-way handshake"}
],
"temperature": 0.6,
"max_tokens": 4096
}'
Node.js Example
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://integrate.api.nvidia.com/v1",
apiKey: "nvapi-your-key",
});
const response = await client.chat.completions.create({
model: "z-ai/glm-5.2",
messages: [
{ role: "user", content: "Write an HTTP server in TypeScript" }
],
temperature: 0.6,
max_tokens: 4096,
});
console.log(response.choices[0].message.content);
Integration Method 2: Accessing Claude Code via CC Switch
CC Switch is an open-source graphical management tool (ccswitch.io) specifically designed to switch the underlying models and API providers for AI programming tools like Claude Code, Codex, and Gemini CLI. You can configure it through CC Switch.
After configuration, Claude Code's interface, interaction methods, and Agent workflows (multi-file editing, automated execution, context management, tool calls) all remain unchanged; only the underlying inference engine is replaced with NVIDIA's freely provided GLM-5.2.
Integration Method 3: Unified Management via ServBay AI Gateway
Besides CC Switch, there is another solution more suitable for individuals, teams, and multi-model management scenarios: using ServBay AI Gateway.
ServBay is an AI-native integrated tool, and AI Gateway is its built-in unified AI provider gateway module. It runs a proxy service locally, consolidating APIs from multiple AI providers under a single entry point for management.
Why Use AI Gateway to Access NVIDIA's Free API
Security: ServBay AI Gateway introduces a Virtual Key mechanism. The real
nvapi-key is saved and encrypted locally in the gateway, not scattered across project configuration files. You can issue independent virtual keys for different projects or tools, and revoke them individually if needed without affecting other projects.Multi-Provider Management: NVIDIA's free API experiences queuing and rate limiting during peak hours (detailed later). Through AI Gateway's intelligent routing, you can configure multiple API channels as backups. For example, set the primary channel to NVIDIA's free endpoint and the backup to another provider. When NVIDIA returns a 429 error, the gateway automatically switches the request to the backup channel, preventing workflow interruption.
Usage Statistics: AI Gateway records real-time token usage, cost, and latency data for all requests, making it easy to assess the actual consumption rate of the free quota.
Configuration Method
- Install ServBay and enable the AI Gateway module.
- On the "Channels" page, add the NVIDIA provider, entering the
nvapi-key and Base URL.
Issue a virtual key.
Point the Base URL of Claude Code, Cursor, or other tools to
http://127.0.0.1:11580, and fill in the virtual key for the API Key.
# Using Claude Code as an example, configure via environment variables
export ANTHROPIC_BASE_URL=http://127.0.0.1:11580
export ANTHROPIC_API_KEY=your-virtual-key
This method is especially suitable for scenarios where multiple AI models are used simultaneously.
Comparison of Three Integration Methods
| Comparison Item | Direct Code Call | CCSwitch | ServBay AI Gateway |
|---|---|---|---|
| Target User | Developers | Claude Code Users | Team Development / Multi-Model Management |
| Configuration Difficulty | Requires programming basics | Graphical interface, low barrier | One-click install, low barrier |
| Key Management | Manual | Single tool level | Virtual Key + Encrypted Storage |
| Failover | None | Yes (partial support) | Multi-channel intelligent routing |
| Usage Monitoring | Self-implemented | Basic statistics | Built-in detailed statistics panel |
| Tool Coverage | Unlimited | Claude Code / Codex, etc. | Any compatible tool |
Actual Experience and Known Limitations of the Free API
Free does not mean without cost. NVIDIA's free tier has several known limitations that are worth understanding before deciding to use it.
Peak Hour Queuing and Rate Limiting
This is currently the most frequently reported issue. During weekday daytime, especially during North American time zone working hours, request latency can increase from a few seconds to over ten seconds or more. In severe cases, it directly returns an HTTP 429 (Too Many Requests) error.
Feedback from overseas developer communities confirms this; some on Threads bluntly state that queuing is required during peak hours.
The experience during off-peak hours (late night, weekends) is significantly better. If you primarily use it during these times, the speed and stability are acceptable.
Rate Limit
Based on actual testing, the free tier's request frequency cap is around 40 requests per minute. This is sufficient for daily coding and prototyping, but may not be enough for batch processing tasks (batch document generation, batch codebase analysis, etc.).
Differences Between GLM-5.2 and Claude
After integrating GLM-5.2 into Claude Code via CC Switch or ServBay AI Gateway, the interface and interaction are identical, but the model's performance differs. GLM-5.2 has decent capabilities in code generation and Agent workflows (it is specifically optimized for these scenarios), but there is a gap compared to Claude's native model in complex long-range reasoning and system prompt adherence.
Which specific tasks perform well and which show significant gaps needs to be verified gradually in actual projects. Others' benchmark scores cannot replace the experience of using it in real projects.
The Business Logic Behind Free
If you look at NVIDIA's free API, Meituan CatPaw, and Alibaba QoderWork together, a clear three-layer structure is forming around GLM-5.2.
Application Layer
Meituan and Alibaba are building end-user products. Meituan integrates GLM-5.2 into the CatPaw IDE, and Alibaba integrates it into the QoderWork desktop application. Users interact with the product itself; the model is encapsulated within. For Meituan and Alibaba, the free model is a means to attract users to their own products.
Infrastructure Layer
NVIDIA is doing compute distribution. It deploys GLM-5.2 on its GPU cloud and provides it to developers as a free API. NVIDIA doesn't care what products developers build with this model; it cares about getting more developers to build prototypes and test models on NVIDIA's computing infrastructure.
When these projects move from the prototype stage to production deployment, the most natural choice is to purchase NVIDIA's GPUs (AI chips like the H200, B200, costing tens of thousands of dollars each) or use NVIDIA's paid inference services. The customer acquisition cost of a free API is far lower than traditional marketing, and once a developer has made a technical selection within the ecosystem, migration costs become a retention moat.
Model Layer
Zhipu (Z.ai) is the water source. GLM-5.2 is fully open-sourced under the MIT license, with no restrictions on commercial use or distribution. Meituan uses it for an IDE, Alibaba for an office tool, and NVIDIA for a free API to attract users. Everyone is using the same model to compete for user entry points in their own tracks, but no single company "owns" this model.
Zhipu does not compete with these companies for end-users. It does only one thing—ensures that the water flowing through everyone's products comes from the same river. The more companies participate in distribution, the more irreplaceable this river becomes. This is the biggest divergence in business logic between open-source and closed-source models.
FAQ
Does NVIDIA's free API require a VPN to access?
The registration and API Key generation pages on build.nvidia.com require network environment support. The API calls themselves go through integrate.api.nvidia.com, which needs to be accessible. If proxied through a local gateway like ServBay AI Gateway, network issues can be handled uniformly at the gateway level.
Is the free quota truly unlimited?
The official page states "Unlimited API requests without daily limits," and current testing hasn't encountered quota exhaustion prompts. However, free services can adjust their policies at any time; it's advised not to rely on free quotas in production environments.
What scenarios is GLM-5.2 suitable for?
According to Zhipu's official description and actual testing, GLM-5.2 is specifically optimized for Agentic workflows, software engineering, code generation, and debugging. The 744B MoE architecture plus a 1 million token context window performs well in understanding the context of large codebases.
Should I choose CC Switch or ServBay AI Gateway?
If you're an individual using Claude Code and want to quickly switch to a free model, CC Switch is sufficient. If, besides using Claude Code, you also need to manage API Keys from multiple AI providers, require failover and usage statistics, or collaborate within a team, ServBay AI Gateway is more suitable. The two are not mutually exclusive; they can be used together, with ServBay AI Gateway acting as an extension of CC Switch.
How long can this free API be used?
It's impossible to say. NVIDIA has not currently announced an end date for the free tier, but historical experience suggests that platform-based free strategies typically last until a sufficient developer ecosystem is established before adjustments are made. It's recommended to register early and get a key, just in case.
Summary
NVIDIA is offering a free API endpoint for GLM-5.2 on build.nvidia.com. If you're interested, you can give it a try. The registration process supports Chinese phone numbers, the API is compatible with the OpenAI format, and it can be integrated into existing development toolchains through various methods such as direct code calls, graphical configuration via CC Switch, or unified management through ServBay AI Gateway.
The free tier does have issues with peak-hour latency and rate limits, and GLM-5.2 cannot fully replace models like Claude for long-range reasoning tasks. However, as an entry point for prototype development, daily coding assistance, or low-cost experience with AI programming workflows, this solution offers high enough value for its cost.
Top 1 from juejin.cn, machine-translated. The original thread is authoritative.
In VS Code's Claude Code, is it unusable? I tried and it didn't work. I'm not even sure if I'm the one using it wrong. It keeps throwing an error: There's an issue with the selected model (deepseek-v4-pro). It may not exist or you may not have access to it.