Providers

Providers Overview

Chat2API supports multiple AI service providers. Each provider requires authentication credentials to access their API.

Built-in Providers

ProviderDescriptionAuth TypeModels
DeepSeekDeepSeek AI assistant with deep thinkingUser TokenDeepSeek-V3.2
GLMZhipu Qingyan AI assistantRefresh TokenGLM-5
KimiKimi AI assistant with long contextJWT Tokenkimi-k2.5
MiniMaxMiniMax Hailuo AI assistantJWT TokenMiniMax-M2.5
QwenAlibaba Qwen (China)SSO TicketQwen3.5-Plus, Qwen3-Max, etc.
Qwen AIQwen AI InternationalJWT TokenQwen3.5-Plus, Qwen3-Max, etc.
Z.aiZ.ai free AI chatbotJWT TokenGLM-5, GLM-4.7, etc.

Provider Management

Adding a Provider

  1. Navigate to Providers from the sidebar
  2. Click Add Provider button
  3. Select a built-in provider from the list
  4. Enter your authentication credentials
  5. Click Validate to verify credentials
  6. Save the provider

Provider Status

Each provider shows:

  • Online/Offline: Whether the provider API is accessible
  • Active Accounts: Number of active accounts configured
  • Latency: Response time from the provider

Account Management

Each provider can have multiple accounts:

  • Add multiple accounts for load balancing
  • Set daily limits per account
  • Monitor account status and usage

Authentication Methods

Different providers use different authentication methods:

Auth TypeDescriptionStorage Location
User TokenDirect user authentication tokenLocal Storage
Refresh TokenLong-lived refresh tokenCookies
JWT TokenJSON Web TokenLocal Storage / Cookies
SSO TicketSingle Sign-On ticketCookies

Getting Your Credentials

For detailed instructions on obtaining credentials for each provider, see the specific provider documentation pages.

The general process is:

  1. Log in to the provider's web interface
  2. Open browser Developer Tools (F12)
  3. Navigate to Application tab
  4. Find the token in Local Storage or Cookies
  5. Copy the token value

Account Status Types

StatusDescription
ActiveAccount is working normally
InactiveAccount is disabled
ExpiredToken has expired
ErrorAuthentication failed

Best Practices

  1. Multiple Accounts: Configure multiple accounts per provider for load balancing
  2. Daily Limits: Set reasonable daily limits to avoid rate limiting
  3. Regular Validation: Periodically validate tokens to ensure they're still valid
  4. Secure Storage: Credentials are encrypted locally in ~/.chat2api/accounts.json

On this page