Unified LLM API gateway with routing, cost tracking and observability
One API compatible with the OpenAI format that routes requests to hundreds of models across providers, with fallbacks, caching, per-key budgets, usage analytics and logs, paid by developers and AI startups through a markup on credits or a platform fee.
Dev Toolsdev-toolsllmapi-gatewayai-infrastructureusage-basedobservabilityrouting
The problem
AI products now call many models: a cheap one for classification, a frontier model for reasoning, a voice or image model, and open-weight models for cost. Each provider has its own SDK, billing, rate limits, outages and price changes. Teams struggle to track spend per customer or per feature, fail over when a provider is down, or try a new model without code changes. Why now: agent workloads multiply token use. The largest independent router reported passing a 10 quadrillion annualised token run rate in November 2026, with agents consuming several times more tokens than humans. Its revenue is estimated at about $160M annualised in August 2026 (Sacra estimate), up from about $19M at the end of 2025.
Who pays
- ICP: AI startups and indie developers shipping LLM features, agencies building agents for clients, and mid-size companies' platform teams that need governance (budgets, logs, PII redaction) across many internal apps.
- Willingness to pay: developers accept a small markup for convenience. Platform teams pay subscription fees for governance and observability.
- Pricing architecture seen at this scale (estimate): pass-through model prices plus a 5 to 10% fee on credit purchases (the market leader's fee is 5.5% on credit purchases, per
openrouterin the provider catalog); or a free bring-your-own-key (BYOK) gateway with paid tiers ($49 to $499/month) for logs, caching, budgets and team features; plus enterprise self-hosted licences. Note that credit resale makes gross volume look large. $100k+/month of net revenue (fees and subscriptions) can sit on top of $5M+ in pass-through spend (estimate).
Proof it works
Plivko's 252-business random sample of revenue-verified startups contains nothing above $250k/month. The median is $0 and the 99th percentile is around $45k. On the public top-100 list (Nov 2026), only 4 revenue-verified startups exceed $250k/month. Two LLM routing and gateway businesses sit lower down, between about $30k and $80k/month. Developer tools dominate the top of the market in public data. The leading independent router raised $113M at a $1.3B valuation in May 2026. $100k+/month is plausible for a focused gateway, but it is above anything verified in this exact type.
Competitors and moat
- Independent routers (OpenRouter) have the broadest model catalogue and the network effects of public usage rankings.
- Open-source gateways and proxies (LiteLLM, Portkey, Helicone, similar) are free self-hosted, with paid cloud.
- Cloud and edge vendors' AI gateways (Cloudflare AI Gateway, AWS Bedrock, Azure AI Foundry, Vercel AI Gateway) are bundled into existing bills.
- Model providers' own consoles, single-vendor.
How small players win: do not out-catalogue the leader. Pick a wedge: compliance-first gateways (EU data residency, PII redaction, audit logs for regulated industries), a gateway for one modality (voice agents, image and video models with job queues), or cost-optimisation as the product (automatic cheaper-model routing with measured quality). The moat is integration into customers' code paths (high switching cost once every call goes through you), usage data that improves routing, and trust on uptime.
Market and regions
Customers are global and self-serve. US startups are the largest spenders, and EU companies want EU-hosted gateways with data processing agreements and no US-only inference. India, Brazil, Southeast Asia and MENA have many developers who cannot easily get accounts with several US model providers (card or KYC issues), so a single prepaid account is a real value proposition there. No independent market-size figure for LLM gateways was found. Token-volume growth is the best evidence.
Getting customers
- Open-source SDKs and a drop-in OpenAI-compatible endpoint: change one base URL and you're live.
- Public model leaderboards and price-comparison pages that rank on Google and get shared.
- Integrations with agent frameworks, IDE coding agents and no-code tools, and listing as a provider in them.
- Developer content: benchmark posts, cost-cutting case studies.
- CAC (estimate): under $50 per developer account. Revenue concentrates in a few heavy users, so account-manage the top 50.
- Time to first $1k/month in net revenue: 2 to 4 months. Credit fees are thin, so you need volume or paid features.
What it takes to build
MVP stack (provider ids from data/providers.yaml):
- Edge proxy:
cloudflare-workersPaid $5/mo (10M requests, 30M CPU-ms included). Streaming proxies are mostly I/O, which fits the Workers model. - Usage ledger:
cloudflare-d1(included) ortursoDeveloper $5.99/mo for per-key counters.neonPostgres for billing. - Logs:
axiom$25/mo (1 TB included, then $0.12/GB) for request logs and analytics. - Upstream models:
anthropic,openai,google-gemini,mistral,deepseek(watch data residency),groq,together-aiandxai. Each needs its own account and prepaid balance. - Auth:
clerkPro $25/mo. - Monitoring:
better-stack$34/mo with a public status page, essential for an infrastructure product. - Payments: prepaid credits through
stripe(2.9% + 30c). Card fees on top-ups are a large share of a 5% margin, so set minimum top-ups and a fee. Merchants of record (paddle,polar) work for subscription tiers. Reselling model credits through a merchant of record may not be allowed, so check. Founders in Algeria, Egypt or Morocco should usecreemorpaddlefor subscriptions and get a foreign entity for credit resale. (paddleeligibility for Algeria is unverified.) Avoidlemon-squeezy.
Entry cost: about $120/mo plus upstream prepayments.
At $100k+/month: a team of 8 to 20 (infrastructure engineers on 24/7 on-call, DevRel, 1 to 2 enterprise sales, support). Infra runs $20k to $60k/mo excluding pass-through model spend. Working capital matters, because you prepay providers. Fraud is the big risk: stolen cards buying credits to resell tokens. Compliance: provider terms on reselling access, export-control and sanctions screening (some model providers bar certain countries), GDPR DPAs and EU data residency options, SOC 2 Type II, zero-retention logging options, and abuse monitoring.
30-day MVP plan
- Days 1 to 4: choose a wedge (for example EU-hosted, PII-redacting gateway, or a voice-agent model router).
- Days 5 to 14: build an OpenAI-compatible proxy with streaming, 3 upstream providers, fallbacks, per-key budgets and usage logs.
- Days 15 to 20: add a dashboard showing cost per key, model and customer, plus a prompt-cache hit-rate view.
- Days 21 to 26: publish a price and latency comparison page and SDK snippets. Launch on developer communities.
- Days 27 to 30: offer a BYOK free tier and a $49/month pro tier with logs and budgets. Onboard 10 teams by hand.
Risks
- Thin margins on credit resale, eaten by card fees and fraud.
- Provider dependency: price cuts, policy changes or bans of resellers.
- Bundling by cloud vendors at zero cost.
- Outages directly break customers' products and destroy trust.
- Security: a leaked key or logged sensitive data is catastrophic.