Chat2API enables zero-cost access to leading AI models by leveraging official web UIs. It supports providers such as DeepSeek, GLM, Kimi, MiniMax, Qwen, and Z.a
Chat2API enables zero-cost access to leading AI models by leveraging official web UIs. It supports providers such as DeepSeek, GLM, Kimi, MiniMax, Qwen, and Z.a
中文 | Official Website | Documentation
Multi-platform AI Service Unified Management Tool
Chat2API enables zero-cost access to leading AI models by leveraging official web UIs. It supports providers such as DeepSeek, GLM, Kimi, MiniMax, Qwen, and Z.ai, and seamlessly integrates with tools like openlcaw, Cline, and Roo-Code — making any OpenAI-compatible client work out of the box.
| Provider | Auth Type | OAuth | Models |
|---|---|---|---|
| DeepSeek | User Token | Yes | deepseek-v4-flash, deepseek-v4-pro |
| GLM | Refresh Token | Yes | GLM-5.1 |
| Kimi | JWT Token | Yes | Kimi-K2.6 |
| MiniMax | JWT Token | Yes | MiniMax-M2.7 |
| Mimo | Cookie | Yes | MiMo-V2.5-Pro, MiMo-V2.5, MiMo-V2-Flash |
| Perplexity | Cookie | Yes | Auto |
| Qwen (CN) | SSO Ticket | Yes | Qwen3.6, Qwen3.7-Max, Qwen3.5-Flash, Qwen3-Max, Qwen3-Max-Thinking-Preview, Qwen3-Coder |
| Qwen AI (Global) | JWT Token | Yes | Qwen3.7-Max, Qwen3.6-Plus, Qwen3.6-35B-A3B, Qwen3.6-27B, Qwen3-Coder |
| Z.ai | JWT Token | Yes | Temporarily unavailable due to frontend captcha risk control |
Provider adaptation notes and manual model-addition guides are in docs/providers.
Download the latest release from GitHub Releases:
| Platform | Download |
|---|---|
| macOS (Apple Silicon) | Chat2API-x.x.x-arm64.dmg |
| macOS (Intel) | Chat2API-x.x.x-x64.dmg |
| Windows | Chat2API-x.x.x-x64-setup.exe |
| Linux | Chat2API-x.x.x-x64.AppImage or .deb |
Requirements:
# Clone the repository
git clone https://github.com/xiaoY233/Chat2API.git
cd Chat2API
# Install dependencies
npm install
# Start development server
npx electron-vite dev 2>&1npm run build # Build the application
npm run build:mac # Build for macOS (dmg, zip)
npm run build:win # Build for Windows (nsis)
npm run build:linux # Build for Linux (AppImage, deb)
npm run build:all # Build for all platformsAfter installation, launch Chat2API. You'll see the main dashboard.
For example, to get a DeepSeek token:
F12 to open Developer ToolsuserToken and copy its valueUsing Python (OpenAI SDK):
from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="http://localhost:8080/v1"
)
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[
{"role": "user", "content": "Hello, who are you?"}
]
)
print(response.choices[0].message.content)For security, you can enable API Key authentication:
| Dashboard | Providers |
|---|---|
| Proxy Settings | API Keys |
|---|---|
| Models | Session |
|---|---|
…| Component | Technology |
|---|---|
| Framework | Electron 33+ |
| Frontend | React 18 + TypeScript |
| Styling | Tailwind CSS |
| State | Zustand |
| Build | Vite + electron-vite |
| Packaging | electron-builder |
| Server | Koa |
Application data is stored in ~/.chat2api/ directory:
config.json - Application configurationproviders.json - Provider settingsaccounts.json - Account credentials (encrypted)logs/ - Request logsDue to macOS security mechanisms, apps downloaded outside the App Store may trigger this warning. Run the following command to fix it:
sudo xattr -rd com.apple.quarantine "/Applications/Chat2API.app"Check for updates in the About page, or download the latest version from GitHub Releases.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)GNU General Public License v3.0. See LICENSE for details.
This means:
No open issues yet, or sync has not completed.