This is an early release preview. You may encounter bugs.
AI Gateway logo
Unclaimed

Tool inference monitoring

AI Gateway

Rust AI gateway exposing 100+ models through one OpenAI-compatible API with routing, caching, and rate limiting

D 41/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
No votes yet

01 / About

What AI Gateway is.

Helicone AI Gateway is a Rust service that fronts many LLM providers behind a single OpenAI-compatible API. Your application keeps using the OpenAI SDK in any language, changes its base URL to the gateway, and names models as provider/model (for example openai/gpt-4o-mini or anthropic/claude-3-5-sonnet); the gateway holds the provider keys and forwards the request. It is available as a hosted service or self-hosted with npx @helicone/ai-gateway or Docker.

Routers are defined in a YAML config. Each router sets a load-balancing strategy over a list of models, rate limits, and cache directives, and a request targets a router by path (/router/ ). Routing strategies include model-latency, provider-latency (power-of-two-choices with PeakEWMA), weighted, and cost-based selection, with fallbacks when a provider is down or rate-limited. The hosted version provides a configuration wizard instead of hand-written YAML.

Reported figures for the gateway itself are a P95 latency under 5 ms, about 64 MB of memory, roughly 3,000 requests per second, a binary of about 30 MB, and a cold start around 100 ms. Tracing goes to Helicone's observability platform and to OpenTelemetry for logs, metrics, and traces.

Features

  • Unified interface: OpenAI-style requests to OpenAI, Anthropic, Google, AWS Bedrock, Google Vertex, and 20+ providers, 100+ models
  • Load balancing: model-latency, provider-latency, weighted, and cost strategies, aware of provider uptime and your rate limits
  • Fallbacks: automatic failover across providers within a router
  • Rate limiting: per user, team, or global, by request count, token usage, or dollar amount
  • Response caching: in-memory, Redis, or S3 backends with cache directives such as max-age and max-stale
  • Observability: built-in Helicone integration plus OpenTelemetry export
  • Authentication: optional control-plane API key for the self-hosted gateway
  • Deployment: hosted at ai-gateway.helicone.ai, or self-hosted via npx, Docker, Kubernetes, and cloud platform guides

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with AI Gateway.

Browse the catalogue for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get AI Gateway →

Browse the catalogue