SuperAPIAI Directory

ModelGate

modelgatehq.com · AI developer platforms

ModelGate is an OpenAI-compatible LLM gateway for observing and optimizing AI API call costs. It logs and prices every request, reducing overhead through caching, multi-model routing, and reviewable code changes. All optimization changes require user approval, and prompts are not stored by default. It is primarily aimed at developers and teams who want to control AI call expenses.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsWeb

About this tool

ModelGate is an OpenAI-compatible LLM gateway, with the core goal of helping users see the cost of AI API calls clearly and reduce spending through caching, multi-model routing, and reviewable code changes. It is officially described as "everything between your app and your bill"; it is not just a dashboard or a proxy, but can price, cache, route, and limit every request, and turn discovered issues into user-approved changes.

In terms of use, it is used to observe and manage the cost of all LLM requests. Users only need to point their client at the gateway's base URL to begin observing and controlling every LLM request. The system groups spending by task and gives a waste score; every call (including failures) is logged and priced.

Main capabilities include:

  1. Cost visibility: shows expensive models, duplicate requests, and calls that ordinary code can handle, and prices them per request.
  2. Gateway optimization: precise caching makes duplicate calls cost 0; simple calls are routed to cheaper models; PRs for models, output limits, and code replacement.
  3. Code replacement suggestions: when task answers follow rules, replace LLM calls with ordinary code or free local models, and verify using the model's own answers. For example, for the task of marking tickets as "urgent" or "normal", first generate rules from 20 recorded calls, then run them in a sandbox on 150 unseen calls, with 146 matches (97.3%). If below 95% (based on more than 30 unseen calls), no suggestion is made. TypeScript is the version actually tested; the Python version is a port, and ModelGate does not run it.
  4. Simpler checks: blank pages, image dimensions, dominant colors, QR codes, etc. use ordinary algorithms instead of models, with the same 95% threshold. Images can be inline or URLs, are fetched only from public addresses via HTTPS, and are not stored.
  5. Small open-source models: when rules cannot match model answers, try small open-source models for image labeling, classifiers trained on their own answers, translation, object counting, etc., using only permissive licenses, pinned to the exact version tested, with the same 95% threshold.
  6. Security controls: except for system prompts, user messages, tool results, and tool call parameters are all scanned. Requests over 35 tokens; in enforce mode (off by default, paid plans), requests over 50 are rejected. Events retain masked snippets, never raw text. Heuristics can catch common attack families, but not every wording.
  7. Spend and safety controls: rate, token, and monthly spend limits.

How to use it: in three steps. Step one, connect your AI app by pointing the client at an OpenAI-compatible gateway to observe and manage every LLM request. Step two, discover where the money goes by seeing expensive models, duplicate requests, and calls that ordinary code could handle, priced per request. Step three, optimize with control: turn on routing and caching when ready, or review suggested code changes before merging. Caching, routing, and enforce mode are paid-plan features.

Data privacy: prompts and responses are not stored by default, only when enabled per project. Provider keys are encrypted with AES-256-GCM; API keys are stored as salted hashes. Repositories are read in memory and never stored; PRs are only created against new branches. There is currently no SOC 2, ISO 27001, or external audit.

When it fits: suitable for developers and teams who want to control LLM call costs and are willing to review optimization changes. Narrow tasks (fixed labels, extraction, reshaping, arithmetic, image checks, and tasks small open-source models can do reliably) are good candidates to replace with code or open-source models; most LLM work does not meet this condition.

Limitations: caching, routing, and enforce mode are paid features; reliability checks may be an optional add-on. Some optimizations are estimates rather than measured values. Custom model training is a future direction and is not currently available.

Pricing: there is a base fee plus a share of savings. Adding a card starts a 14-day free trial, cancel anytime. Includes 1 project, additional projects are $29 per month; includes 5 clients, additional clients are $29 per month. 30% of caching and routing savings is metered per request; 30% of savings from suggested changes, for 3 months each time. Reliability add-on is optional: $49 per month plus $0.50 per run after more than 20 monthly active tests.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools