Skip to content
English

Switch theme

// Software stack

Model gateway & cost control

One endpoint for every model: budgets and rate limits per team, automatic fallback, and clear spend per person and project.

5 pieces4 setup stepsscenario: Control AI costs and usage limits

What goes in it

  1. 1

    litellm Model gateways, routing & usage Open source

    Self-hosted OpenAI-compatible gateway with budgets and limits

    The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

    ★ 62k
  2. 2

    OpenRouter optional Model gateways, routing & usage Closed / commercial

    Hosted multi-model routing, pay as you go

    Unified API gateway to hundreds of models with pay-as-you-go billing.

  3. 3

    Portkey-AI/gateway optional Model gateways, routing & usage Open source

    Open-source gateway with retries, caching and fallbacks

    A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.

    ★ 13k
  4. 4

    helicone Observability & tracing Open source

    Request logging and cost analytics

    🧊 Open source LLM observability platform. One line of code to monitor, evaluate, and experiment. YC W23 🍓

    ★ 6.2k
  5. 5

    ccusage Model gateways, routing & usage Open spec

    Usage stats for coding-agent subscriptions

How to set it up

  1. 01Decide hosted (OpenRouter: pay as you go, no ops) or self-hosted (LiteLLM / Portkey)
  2. 02Issue a virtual key per person or project with a monthly budget and per-minute rate limit
  3. 03Configure fallbacks to a backup model on timeouts or rate limits
  4. 04Track spend per person and project with Helicone or the gateway dashboard; use ccusage for coding-agent subscriptions

✓ Good fit

  • Many people and projects share API keys and the bill is opaque

✗ Look elsewhere if

  • A single person on one subscription

Similar stacks: what’s different

  • Multi-model gatewayThat is a short list of trending tools; this gives the full budget, rate-limit and fallback setup

Data updated: AI software & hot ranks · Solutions & stack guides(UTC+8)