Companies using LLMs face an uncomfortable reality: cost is out of control and invisible.
Today: A team uses GPT-4, Claude, and Gemini in production. They have no idea:
Which endpoints/features are expensive
Which requests are wasting money (repeated prompts, oversized models, errors)
How much they're spending per provider, per model, per feature
Without visibility, waste accumulates invisibly. Teams can't optimize what they can't measure. Costs drift from $100/month to $10K/month in months.
The Solution: ModelGate
ModelGate is a drop-in API gateway that sits between your application and LLM providers. It proxies every request, measures everything, detects waste, and generates actionable optimization recommendationsβautomatically.
What It Does
Proxies all requests (drop-in replacement for provider SDKs)
Logs usage & cost with exact precision (not estimates)
Your App β ModelGate API Gateway β Provider (OpenAI/Anthropic/Gemini/Azure)
β (intercept)
1. Authenticate API key
2. Load customer project config
3. Normalize request & prompt
4. Generate cryptographic hashes (for deduplication)
5. Check spending limits & quotas
6. Cache lookup (if enabled)
7. Routing decision (smart model selection)
8. Execute provider request
9. Extract usage (tokens)
10. Calculate exact cost
11. Analyze for waste patterns
12. Log with full metadata
13. Return response to app
14. Trigger async recommendation engine
Key design principle: Every step is deterministic, logged, and reversible. Optimizations never happen without reason and never crash your app.
Core Features & Capabilities
1. Cost Visibility
Exact cost calculation for every request (not estimates). Prices pulled from provider APIs and stored in the gateway. Tracks spend by:
Provider (OpenAI, Anthropic, Gemini, Azure)
Model (GPT-4o vs. GPT-4o-mini vs. Claude Sonnet, etc.)
Feature/endpoint (your app's logical groupings)
Time (daily, weekly, monthly trends)
2. Waste Detection Engine
Automatic waste analysis flags cost anomalies:
Repeated Prompts: Same prompt sent twice = waste (enable cache)
Expensive Model on Small Request: Using GPT-4 to classify text (downgrade to GPT-4o-mini)
Error Waste: Failed requests that still incur cost
Large Context: Unnecessary history or attachments
Low Output/Input Ratio: Paying for tokens not using the response
3. Recommendation Engine (Async Worker)
Runs continuously to generate actionable recommendations:
π CACHE_CANDIDATE
Enable exact-match cache for repeated prompts. Saves 100% of duplicate request cost.
π MODEL_DOWNGRADE
Downgrade model (e.g., GPT-4 β GPT-4o-mini) for small requests. Saves 80-95% per request.
βοΈ PROMPT_COMPRESSION
Remove redundant instructions or context. Saves tokens immediately.
π ERROR_WASTE
Fix failing requests. Reduces waste with zero cost increase.
π― MAX_TOKENS_REDUCTION
Lower max_tokens limit. Stops overallocation of output space.
π FAILOVER
Route to cheaper provider (e.g., Gemini Flash) when quality criteria allow.
4. Smart Routing
Automatic model selection (optional). When enabled, automatically downgrades expensive models to cheaper alternatives for non-critical tasks (respects your safety guardrails).
Configurable downgrades: GPT-4o β GPT-4o-mini, Claude Sonnet β Claude Haiku, etc.
Locked categories: Never downgrade legal, medical, financial, or security-critical requests
Why managed keys? Users trust us with their budget, not their credentials. We control access, enforce quotas, and guarantee no overspend. That's the value prop.
40β70%
Typical cost reduction
1β2 min
Time to integrate
0% App
Code change required
Current Status & Launch Timeline
β DONEPhase 1: Core API & Cost Engine All three providers integrated, exact cost calculation verified, e2e bugs flushed.
β DONEPhase 2: Auth & Spending Control Supabase auth, API key auth, dual-mode login, monthly spend caps, CORS.
β DONEPhase 3: Full Dashboard & E2E Tests Complete UI rebuild, all 8 dashboard pages, Playwright e2e suite (free + real-provider smoke test).
β PENDINGPhase 4: Deploy to Production Railway setup + custom domain (modelgatehq.com). ~1β2 weeks.
β PENDINGPhase 6: Public Launch Docs, marketing, first customers. Ready for demo.
Technical Maturity: Production-ready. Three-service architecture is deployed, tested, and running real traffic in dev. Database migrations, auth, cost calculation, and recommendation engine are all deterministic and well-tested.
Competitive Edge
Why ModelGate Wins
No credential management burden on users: We hold keys, users control quotas. That's new.
Exact cost (not estimates): Every request logged with precise provider billing. No guesswork.
Automated recommendations: Waste detection + optimization suggestions run 24/7. No manual analysis.
Multi-provider unified: OpenAI + Anthropic + Gemini + Azure in one dashboard. Switch anytime.
Fast to integrate: Drop-in API gateway. App code doesn't change (OpenAI SDK compatibility).
Built for safety: Every optimization is logged, reversible, and respects your guardrails (no legal/medical downgrade without consent).
For Buyers: What ModelGate Solves
π― If you're spending $X/month on LLMs:
ModelGate cuts that by 40β70% through automated waste elimination (caching, model downgrade, error fixing). And you sleep better knowing exactly where every dollar goes.
π If cost is your main blocker to LLM adoption:
ModelGate removes that blocker. Predictable spend, hard caps, intelligent routing = LLM features without runaway costs.
π If you're flying blind on LLM spend:
ModelGate gives you the dashboard and tooling to make informed decisions. See which features cost what, which are profitable, which need work.
Get started: Sign up at modelgatehq.com, create a project, get an API key (managed for you), and drop it in your app. First 1000 requests free. Then pay per tier.