LLM gateway
One API in front of three LLM providers that keeps answering when one fails.
A REST API in front of three LLM providers (Groq, Gemini and OpenRouter) with automatic failover. When one provider fails, the request moves to the next, and every attempt is logged with its latency and error.
Result
Built and tested while providers retired a model, moved a free model to paid only and returned overload errors. The gateway kept answering without any change for its users.
Tools
- Python
- FastAPI
- REST API
- LLMs
- Docker
- pytest
- GitHub Actions