Discover and explore top open-source AI tools and projects—updated daily.
DeepSeek API for local inference
Top 98.7% on SourcePulse
This project provides a reverse-engineered API for DeepSeek models, enabling users to interact with advanced AI capabilities through a familiar OpenAI-compatible interface. It is designed for researchers and developers who want to leverage DeepSeek's models, including those with advanced reasoning and web-searching features, without direct integration with the official DeepSeek platform. The primary benefit is offering a flexible and accessible way to utilize these powerful models.
How It Works
The project acts as a proxy, intercepting requests and forwarding them to DeepSeek's services. It supports multiple DeepSeek accounts to circumvent rate limits and manage access. The API is designed to be fully compatible with the OpenAI API specification, allowing seamless integration with existing tools and workflows. It supports features like high-speed streaming output, multi-turn conversations, and DeepSeek's R1 "deep thinking" capability.
Quick Start & Requirements
pip install -r requirements.txt
are needed.config.json
file is used to manage API keys and DeepSeek account credentials (email/password or mobile/password).Highlighted Details
/v1/chat/completions
.deepseek-chat
, deepseek-reasoner
, deepseek-chat-search
, deepseek-reasoner-search
.Maintenance & Community
The project is available on GitHub. No specific community channels (like Discord or Slack) or active maintainer information are detailed in the README.
Licensing & Compatibility
The README does not explicitly state a license. However, it includes a strong disclaimer stating the API is for research and learning purposes only, and prohibits commercial use or providing services to others due to potential risks and to avoid placing a burden on the official DeepSeek service.
Limitations & Caveats
This is a reverse-engineered API, which inherently carries the risk of instability and being blocked by DeepSeek. The README explicitly warns against relying on it for critical applications and recommends using the official DeepSeek API. Vercel deployment may encounter 504 timeouts due to the 10-second response limit on free accounts. Multi-turn conversations are implemented via message merging, which may degrade performance and is subject to single-turn token limits.
3 weeks ago
Inactive