Saifullah.
← Back to work

02 / Systems Integration & APIs

Shipped

LLM API Gateway

A provider-neutral FastAPI gateway for OpenAI and Gemini, with consistent interfaces, fallback policies, request tracing, and usage analytics.

Role · Backend development and provider integration

FastAPIPythonOpenAIGeminiSQLiteDockerPytest

Case study

What this project demonstrates

Built a consistent integration boundary for applications using OpenAI and Gemini. Model aliases, provider adapters, standardized errors, and fallback policies keep upstream differences out of application workflows. Structured JSON responses and embeddings support downstream features, while token/cost accounting, usage analytics, and request tracing provide evidence for integration decisions.

Architecture

Client → stable alias/router → provider adapter → retry/timeout policy → fallback provider → normalized response + usage ledger

Engineering highlights

Boundaries / limitations

Provider behavior and pricing still change externally; the gateway normalizes interfaces but cannot eliminate upstream availability or model-quality differences.