Status: [LIVE] Endpoints found: https://chat.deepseek.com Source: https://github.com/izaart95-jpg/DeepseekFreeAPI # DeepSeek Free API > A pure Go proxy for DeepSeek with Cloudflare bypass and OpenAI-compatible interface — no paid API key required. ![Go](https://img.shields.io/badge/Go-1.26+-blue?style=flat-square) ![OpenAI Compatible](https://img.shields.io/badge/OpenAI-Compatible-green?style=flat-square) ![Cloudflare Bypass](https://img.shields.io/badge/Cloudflare-Bypass-purple?style=flat-square) ![Free API](https://img.shields.io/badge/API-Free-orange?style=flat-square) --- ## Features - Full DeepSeek API implementation (pure Go, zero runtime dependencies) - Cloudflare protection detection with automatic retry - Proof of Work (PoW) challenge solving — WASM run in-process via wazero - OpenAI-compatible proxy server - **Real model registry** — `deepseek-v4.1-flash` (default, thinking + web search); the id maps to the actual upstream request (`model_type: "default"` — the v4.1 backend has no other model class) - Cookie management (loads `cookies.json`) - Streaming and non-streaming responses - Threaded conversation support - **Stealth session-reuse flow (default)** — with history disabled, all stateless traffic rides ONE lazily-created chat session; every request re-edits the same user message through `POST /chat/edit_message` (DeepSeek's own edit feature), so no conversation context ever accumulates and there is no per-request session create/delete churn — the traffic pattern that was getting accounts suspended for "bot-like behavior". The session rotates (deleted upstream, one fresh session lazily created) only when its edit budget (~6 edits per message) runs out. `--legacy-pool` / `SESSION_FLOW=pool` restores the old pre-warmed batch flow, `--sync-mode` / `SESSION_FLOW=sync` the legacy one-session-per-request flow - **Graceful shutdown** — CTRL+C drains in-flight requests, then clears every remaining session on DeepSeek before exiting (a second CTRL+C force-exits) - **Agent mode** (`--agent-mode` / `AGENT_MODE=true`) — OpenAI function/tool calling transla