Overview of qwen2API capabilities
mainqwen2API is a self-hosted gateway that converts Qwen Web capabilities into standard API protocols. It provides a local WebUI for managing upstream accounts, downstream API keys, runtime configurations, and testing models (chat, image, and video).
Supported API Protocols
- OpenAI Compatible:
/v1/chat/completions,/v1/responses,/v1/models,/v1/files,/v1/images/generations,/v1/videos/generations - Anthropic Compatible:
/v1/messages,/anthropic/v1/messages,/v1/messages/count_tokens - Gemini Compatible:
/v1beta/models/{model}:generateContent,/v1beta/models/{model}:streamGenerateContent
Core Features
- Account Pool: Supports multi-account polling, single-account concurrency control, and cooldown records for chat/image/video tasks.
- WebUI: Interface for account management, API key management, and various testing modes.
- Maintenance: Includes health checks (
/healthz), readiness checks (/readyz), and keepalive probes (/keepalive).