Engineering Blog

LLM infrastructure, in depth.

Cost anatomy, latency benchmarks, provider comparisons, and the engineering decisions that come with running LLMs in production — written by the Framewren team.

All posts

Cost

The anatomy of an LLM cost spike

Six real patterns that cause unexpected API spend. With each one: the root cause, how it looks in cost-over-time data, and how to fix it before the billing cycle ends.

8 min read
Latency

P99 latency: OpenAI vs Claude vs Gemini

Two weeks of latency data across three major providers. How P99 differs from P50, which provider shows the widest tail, and what it means for user-facing features.

11 min read
Optimization

Token throughput optimization without quality loss

Practical techniques — prompt compression, context trimming, model tier selection — that reduce token spend by 30–60% without degrading output quality for most use cases.

9 min read
Strategy

Build vs buy: LLM observability tooling

When rolling your own cost tracking makes sense, when it doesn't, and what the hidden maintenance cost of a homegrown solution actually looks like six months in.

7 min read
Providers

LLM provider migration: a cost-first analysis

Moving from one provider to another changes more than the API client. Token counts, context limits, latency profiles, and pricing structures all shift. How to model the real cost before you migrate.