Respan Gateway is an open-source LLM gateway: a single Rust binary that sits between your code and every AI API. Point the SDK you already use at it, and it connects you to everything: chat models, images, video and voice from every major provider; tools for any model, from web search and memory to code sandboxes and any MCP server; and traffic control (format translation, fallback, retries and hedged requests), with a live log of every call. ▶ Watch the demo
[!TIP] Starring the repo helps more developers find Respan Gateway.
LLM gateway features
Any client, any model
OpenAI Chat Completions, OpenAI Responses, Anthropic Messages and Gemini API clients can all call any model, with streaming, tools, images and reasoning translated.Multimodal
Realtime voice across vendors (an OpenAI Realtime client talks to Gemini Live, and back), plus images, speech, transcription, embeddings and video through OpenAI's or Gemini's APIs, to any vendor that has them.MCP gateway and tools for every model
Put MCP servers or built-in tool vendors behind the gateway, from web search to code sandboxes. It runs their tools inside chat requests, so a plain chat call can use them, whatever the client or model.Traffic control
Named routes, globs andprovider/model; fallback, retries, cheapest or fastest; and hedged requests that race a slow call against a second provider.Observability
A live request log with cost, latency and tokens for every call, and traces in Respan, where span-02 analyzes how your agents behave.Best-in-class performance
0.07 ms of added latency, 56,000 requests per second and 31 MB of memory in our benchmarks: about 3× the throughput of the next fastest gateway we tested.Write your own plugin in minutes
Every feature above is a plugin, built on the same public Rust API you can use: one trait with four hooks. Start from the plugin guide or an example such as guardrails, PII masking o