Discover and explore top open-source AI tools and projects—updated daily.
YuJunZhiXueQwen chat and image generation API gateway
New!
Top 54.8% on SourcePulse
A project that bridges the gap between the Qwen web interface and standard AI API protocols, qwen2API offers a self-hosted gateway for developers needing OpenAI, Anthropic Claude, or Gemini compatible endpoints. It empowers users to leverage Qwen's capabilities, including advanced tool calling and image generation, within their existing AI workflows without direct reliance on proprietary SDKs. The primary benefit is enhanced flexibility and integration for applications interacting with Qwen models.
How It Works
The system employs a FastAPI backend and a React/Vite frontend, architected around a hybrid engine that can utilize browser automation (Camoufox) or HTTPX for interacting with the chat.qwen.ai web service. This approach allows for compatibility with various API standards by translating requests and responses. Key features include an account pool for managing multiple Qwen logins, dynamic rate limiting, automatic retries, and a robust tool-calling parser, aiming to mimic real user interactions for greater stability and feature support.
Quick Start & Requirements
shm_size configurable, default 256m). Local development setup involves installing backend and frontend dependencies.Highlighted Details
/v1/chat/completions), Anthropic Messages (/anthropic/v1/messages), and Gemini GenerateContent (/v1beta/models/{model}:generateContent) interfaces./v1/images/generations) powered by Qwen's underlying capabilities.hybrid, httpx, and browser modes, with hybrid recommended for balancing speed and fidelity.Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or roadmap are provided in the README.
Licensing & Compatibility
The project is released under the MIT License, permitting broad use, modification, and distribution. However, the project explicitly states it is not an official service and users are responsible for adhering to upstream service terms, legal regulations, and data security requirements. Commercial use is permitted under MIT terms, but users must ensure compliance with Qwen's terms of service.
Limitations & Caveats
This project acts as a compatibility layer and does not provide official Qwen commercial services. Users bear full responsibility for any account restrictions, legal issues, or data loss resulting from its use. The effectiveness and stability depend on the underlying Qwen web interface and the user's account status.
1 week ago
Inactive