Data & Engineering
LLM API Gateway with Observability
A unified gateway fronting multiple LLM providers with built-in observability, request logging, and cost tracking via LangFuse.
The challenge
Why it exists
Teams integrating LLMs needed to manage separate SDKs and connection logic for each provider. There was also no visibility into how those LLM calls were performing across the different integrations.
The approach
How it works
Built a set of dedicated AWS Lambda functions, one per LLM provider (Gemini and OpenAI), each acting as a clean API wrapper around that provider's SDK. Any frontend or backend can freely switch between models simply by calling the relevant Lambda Fn URL, without needing to manage provider-specific SDKs or credentials directly. After the initial build, I used LLM-assisted code generation (before having access to Claude or Cursor) to plan and implement LangFuse observability into the Lambda functions adding prompt tracing, latency monitoring, and usage logging. This project was also my first real experiment with using LLMs to generate and integrate code into an existing working codebase, giving me hands-on experience with prompt engineering for code tasks and iterating with AI on real deployments.
Key capabilities
What it does
Built a set of dedicated AWS Lambda functions, one per LLM provider (Gemini and OpenAI), each acting as a clean API wrapper around that provider's SDK.
Any frontend or backend can freely switch between models simply by calling the relevant Lambda Fn URL, without needing to manage provider-specific SDKs or credentials directly.
After the initial build, I used LLM-assisted code generation (before having access to Claude or Cursor) to plan and implement LangFuse observability into the Lambda functions adding prompt tracing, latency monitoring, and usage logging.
This project was also my first real experiment with using LLMs to generate and integrate code into an existing working codebase, giving me hands-on experience with prompt engineering for code tasks and iterating with AI on real deployments.
Typically used by
Engineering / AI teams
Business impact
Reduces integration effort when switching or comparing LLM providers. Any team can plug into one endpoint instead of managing multiple SDKs. LangFuse observability enables cost tracking and debugging, which is critical before scaling LLM usage in production.
Built with
Technology
Tools & Frameworks
Integrations
More in Data & Engineering
Related applications
Data & Engineering
Database Field Mapping & Discovery Tool
Connects to any database, extracts schemas and relationships, and generates documentation, ER diagrams, and a chat interface for exploring the data.
ViewData & Engineering
SQL Standardization & Optimization Bot
Enforces SQL coding standards across teams — formats queries to a chosen style guide, flags optimization opportunities, and reduces PR-review overhead.
ViewData & Engineering
Conversational Data Profiler
Upload a CSV, Excel, or database export and ask questions in plain English — get distributions, correlations, and quality scores without writing Python.
ViewWant something like this for your team?
We'll map your workflow and scope a working prototype — typically in three weeks, not three months.
Talk to us