OpenAI compatible HTTP API built on Python + FastAPI. Instead of the paid APIs it talks to the internal APIs of the free web clients.
A public instance is already running in production (BYOK_MODE=1):
- API base URL:
https://danyapi.cloudpub.ru/v1/
Point any OpenAI compatible client at API base URL with a valid tokens, unauthenticated requests are rejected with 401. The API key should be the raw token (e.g. "token1,token2", same in .env).
curl -X POST https://danyapi.cloudpub.ru/v1/chat/completions \
-H "Authorization: Bearer token1,token2,token3" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-thinking",
"messages": [
{"role": "user", "content": "Hi from example request!"}
]
}'Requires Python 3.10+.
Windows (PowerShell):
irm https://raw.githubusercontent.com/FANATFANATA/DanyAPI/prod/docs/install.ps1 | iexLinux/macOS:
curl -fsSL https://raw.githubusercontent.com/FANATFANATA/DanyAPI/prod/docs/install.sh | bashDocker:
docker run -d -p 8000:8000 \
-e DEEPSEEK_TOKENS="token1,token2" \
-e QWEN_TOKENS="token3" \
ghcr.io/fanatfanata/danyapi:latest