ds-free-api  by NIyueeE

OpenAI & Anthropic compatible API proxy for DeepSeek

Created 2 months ago
337 stars

Top 81.6% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This project offers a zero-cost API proxy for DeepSeek's web interface, providing compatibility with OpenAI Chat Completions and Anthropic Messages APIs. It targets developers and power users needing to integrate DeepSeek models into existing LLM workflows without official API keys or direct costs, enabling access via familiar API standards with enhanced features.

How It Works

Developed in Rust, DS-Free-API translates requests between OpenAI/Anthropic formats and DeepSeek's web protocol. It manages multiple DeepSeek accounts, rotating them to mitigate rate limits with exponential backoff. The system supports OpenAI function calling with a three-layer self-repair mechanism, handles inline file uploads (images, text), and enables web URL fetching. A single Rust executable with TOML configuration ensures high performance and cross-platform deployment.

Quick Start & Requirements

  • Installation: Download pre-compiled binaries or use Docker Compose (docker compose -f docker-compose.yaml up -d).
  • Configuration: Populate config.toml with DeepSeek accounts or manage via the web admin panel at http://127.0.0.1:22217/admin.
  • Prerequisites: Standard OS environment or Docker.
  • Docs: Detailed development guides in docs/development.md.

Highlighted Details

  • Zero-Cost Access: Utilizes DeepSeek's free web interface, bypassing paid API keys.
  • Dual API Compatibility: Supports OpenAI Chat Completions and Anthropic Messages API protocols.
  • Advanced Features: Robust tool calling with self-repair, inline file uploads, and automatic web search.
  • High Performance & Portability: Rust-based single binary with TOML configuration.
  • Web Management Panel: UI for account, API key, log management, and status monitoring.
  • Multi-Account Management: Intelligent account pool rotation for stability.

Maintenance & Community

No specific details on contributors or community channels were found in the provided text.

Licensing & Compatibility

  • License: GNU General Public License v3.0 (GPL-3.0).
  • Compatibility: GPL-3.0 is a strong copyleft license. Commercial use is explicitly prohibited ("严禁商用").

Limitations & Caveats

Commercial use is strictly forbidden. The project's stability depends on the DeepSeek web interface, which is subject to change or rate limiting by DeepSeek. Users assume all risks.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
12
Issues (30d)
61
Star History
272 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.