LaurentVoanh/freetiers-api-ai — reverse-engineered prompt
Reverse engineered prompt
Build me a self hosted PHP app called FreeLLMAPI that lets me put all my free AI provider keys in one place and use one simple chat API instead of juggling lots of different services.
It should have a clean futuristic cyberpunk style web interface with a home chat page, a setup guide for getting provider keys, an admin area where I can add and manage encrypted API keys, and an API docs page. It should support providers like Groq, Cerebras, SambaNova, Mistral, OpenRouter, GitHub Models, Cohere, Cloudflare, Zhipu, HuggingFace, and NVIDIA NIM.
The app needs to automatically pick the best available provider, respect each provider’s rate limits, track usage in SQLite, and fall back to another provider if one is down or rate limited. Store API keys securely with AES encryption, expose a unified chat endpoint with streaming support, plus endpoints for models and stats.
Keep it easy to run on a basic PHP server with SQLite, cURL, and OpenSSL. Look up current provider API docs online if needed.
Want more depth? Deep Reverse