deepseek-free-api  by LLM-Red-Team

Free API for DeepSeek V3 & R1 models

created 1 year ago
2,643 stars

Top 18.2% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a free, self-hostable API gateway for DeepSeek's large language models, specifically targeting developers and researchers who need to integrate advanced AI capabilities like high-speed streaming, multi-turn conversations, web search, and deep thinking into their applications. It offers a compatible interface with OpenAI's API, simplifying integration with existing tools and workflows.

How It Works

The project acts as a reverse proxy, intercepting requests and forwarding them to DeepSeek's official services using extracted user tokens. It supports various DeepSeek model configurations, including those with web search and deep thinking capabilities, and allows for the aggregation of multiple user tokens to distribute requests. The architecture prioritizes ease of deployment through Docker and other common hosting platforms, aiming for zero-configuration setup.

Quick Start & Requirements

  • Install/Run: Docker is the primary deployment method.
    docker run -it -d --init --name deepseek-free-api -p 8000:8000 -e TZ=Asia/Shanghai vinlic/deepseek-free-api:latest
    
    Alternatively, you can set the DEEP_SEEK_CHAT_AUTHORIZATION environment variable with your user token.
  • Prerequisites: A DeepSeek user token obtained from the official DeepSeek website is required. Users should be located in China or have reliable access to DeepSeek services.
  • Setup: Docker deployment is straightforward, with setup time depending on Docker installation and image download.
  • Links: DeepSeek Official Platform

Highlighted Details

  • Fully compatible with OpenAI's /v1/chat/completions API.
  • Supports high-speed streaming output and multi-turn conversations.
  • Enables web search and "deep thinking" modes for enhanced reasoning.
  • Allows for multi-account token aggregation for load distribution.

Maintenance & Community

The project is part of a larger initiative offering free APIs for various LLMs. Specific maintainer details or community links (like Discord/Slack) are not prominently featured in the README.

Licensing & Compatibility

The project's licensing is not explicitly stated, but the README strongly emphasizes that it is for personal testing and learning only. Commercial use or providing public services is strictly prohibited and may violate DeepSeek's User Agreement, with potential legal repercussions from DeepSeek.

Limitations & Caveats

This is a reverse-engineered API and is inherently unstable; users are strongly advised to use the official DeepSeek API for reliability and to avoid potential account bans. The project explicitly disclaims responsibility for any issues arising from its use, especially for non-personal or commercial purposes.

Health Check
Last commit

2 months ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
2
Star History
220 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.