API for GLM-4-Plus, enabling agentic capabilities
Top 48.9% on sourcepulse
This project provides a reverse-engineered API for Zhipu AI's GLM-4-Plus model, enabling users to access advanced features like streaming output, agent capabilities, video generation, AI art, web search, and long document analysis. It's designed for researchers and developers who need to integrate these capabilities into their applications without direct access to the official API, offering a zero-configuration deployment.
How It Works
The API acts as a proxy, intercepting requests intended for Zhipu AI's platform and translating them into a compatible format. It leverages a user's refresh_token
for authentication, extracting it from browser cookies. The project supports various models within the GLM family, including those for "thinking," "deep research," and agent-specific functionalities, by mapping specific model identifiers to the API calls. It aims for OpenAI compatibility for ease of integration.
Quick Start & Requirements
docker run -it -d --init --name glm-free-api -p 8000:8000 -e TZ=Asia/Shanghai vinlic/glm-free-api:latest
refresh_token
.refresh_token
.Highlighted Details
refresh_token
s.Maintenance & Community
The project is maintained by the LLM-Red-Team. Links to other similar "free-api" projects are provided, suggesting a community effort in reverse-engineering various LLM APIs.
Licensing & Compatibility
The project is explicitly stated as for research and learning purposes only. It prohibits commercial use or providing services to others, warning of risks and potential service pressure on the official platform. The specific license is not stated, but the usage restrictions are clear.
Limitations & Caveats
Reverse-engineered APIs are inherently unstable and subject to change or discontinuation by the official provider. The project disclaims responsibility for any risks, including account bans. It also notes that token usage statistics are not available as inference is handled externally.
2 months ago
1 day