FreeQwenApi  by y13sint

Local API proxy for Qwen Chat with multimodal AI

Created 1 year ago
273 stars

Top 94.3% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

FreeQwenApi provides a local, browser-based API proxy for Qwen Chat, transforming a Qwen web account into an OpenAI-compatible REST API endpoint. It targets developers and users needing to integrate Qwen AI models (text, image, video) locally without running models on their own hardware or using official APIs. The benefit is seamless local development and experimentation with Qwen's capabilities via a familiar OpenAI interface.

How It Works

This project acts as a proxy by authenticating with Qwen Chat via a browser, saving session tokens, and exposing a local API (http://localhost:3264/api). It bridges your tools to the Qwen Chat service without hosting models locally. This browser-based approach allows it to leverage Qwen Chat's features, including advanced multi-modal generation, while maintaining an OpenAI-compatible interface for broad tool compatibility.

Quick Start & Requirements

  • Install: Clone the repo, run npm install, npm run auth (opens browser for Qwen Chat login), npm run models:sync, and SKIP_ACCOUNT_MENU=true npm start. Docker users can run docker compose up --build -d after initial local authentication.
  • Prerequisites: Node.js, npm, a Qwen Chat account, and a web browser.
  • Links: Repository: https://github.com/ForgetMeAI/FreeQwenApi. Further docs in docs/.

Highlighted Details

  • OpenAI-Compatible API: Offers /api/chat/completions endpoint, usable with OpenAI SDKs, Open WebUI, and LiteLLM.
  • Image & Video Generation: Supports generating images (/api/images/generations) and videos (/api/videos/generations) directly through Qwen Chat, negating the need for separate API keys like DASHSCOPE_API_KEY.
  • Multi-Account Management: Manages multiple Qwen Chat accounts with automatic round-robin rotation.
  • Integrations: Includes pre-configured examples for Open WebUI, Hermes Agent, and LiteLLM.

Maintenance & Community

The project includes t.me/forgetmeai branding, suggesting a developer contact point. No explicit links to community channels (Discord/Slack) or a public roadmap are provided.

Licensing & Compatibility

The repository's license is not explicitly stated, requiring further investigation for commercial use or integration into closed-source projects. It is designed for local workflows, experiments, and demos.

Limitations & Caveats

As an unofficial, browser-based proxy, FreeQwenApi is susceptible to Qwen Chat's internal API changes. Session tokens expire and require re-authentication. Image/video generation success and URL stability depend on Qwen Chat's current capabilities and account status. The project is explicitly cautioned against for production use due to its experimental nature.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
3
Issues (30d)
2
Star History
59 stars in the last 30 days

Explore Similar Projects

Starred by Sebastian Raschka Sebastian Raschka(Author of "Build a Large Language Model (From Scratch)"), Pawel Garbacki Pawel Garbacki(Cofounder of Fireworks AI), and
16 more.

chainlit by Chainlit

0.1%
12k
Framework for rapid conversational AI app development
Created 3 years ago
Updated 4 weeks ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Yaowei Zheng Yaowei Zheng(Author of LLaMA-Factory).

AstrBot by AstrBotDevs

0.8%
36k
LLM chatbot/framework for multiple platforms
Created 3 years ago
Updated 18 hours ago
Feedback? Help us improve.