A hilariously over-engineered Go REST API that uses Gemini Model gemini-2.5-flash to tell you what year it is from a photo of a clock or calendar.
- AI Vision: Uses Gemini Model - gemini-2.5-flash to extract years from images.
- Cost Tracking: Tracks every cent wasted on API calls (approx. $0.02/req).
- Production Ready:
- Structured JSON Logging (slog)
- Rate Limiting (Token Bucket)
- CORS Middleware
- Request ID Tracing
- Graceful Shutdown
- Panic Recovery
- Configurable Timeouts
- Dockerized: Full container support.
- Go 1.21+
- Google Gemini API Key
- Docker (optional)
- Clone the repository
- Configure Environment:
cp .env.example .env # Edit .env and set your GEMINI_API_KEY
make runmake docker-build
make docker-runSee docs/API.md for full endpoint details.
./scripts/test-api.shSee docs/OVERKILL.md.