AI platform backend
11ai
An AI backend exploring how inference, identity and usage tracking fit together.
How it flows
- Django accounts
- FastAPI
- Ollama
- Usage log
The problem
Serving a model is one part of an AI platform. Access, verification and usage also need a clear place in the architecture.
How I built it
The local Docker setup brought together Django, FastAPI, PostgreSQL and Ollama. Django held account and subscription models, FastAPI exposed inference, and Ollama ran generation. The project also covered JWT, hashed one-time codes, rate limits and usage history.
Decisions and trade-offs
A separate inference boundary lets the model-serving interface evolve independently. It also requires clear authentication and error handling across services.
What I’d do next
Payment integration was planned. The next engineering questions are inference capacity, tier enforcement and failure recovery.