Fallbacks and retries
When a provider fails, the next one answers.
Use any model with one API key.
1,000+ models, 0% fee. Up to 70% off tokens. Open source.
import osfrom openai import OpenAIclient = OpenAI( base_url="https://gateway.respan.ai/v1/", api_key=os.environ["RESPAN_API_KEY"],)response = client.chat.completions.create( model=, messages=[ {"role": "user", "content": "Hi"}, ],)print(response.choices[0].message.content)import osfrom anthropic import Anthropicclient = Anthropic( base_url="https://gateway.respan.ai", api_key=os.environ["RESPAN_API_KEY"],)message = client.messages.create( model=, max_tokens=1024, messages=[{"role": "user", "content": "Hi"}],)print(message.content[0].text)import { createOpenAI } from "@ai-sdk/openai";import { generateText } from "ai";const respan = createOpenAI({ baseURL: "https://gateway.respan.ai/v1/", apiKey: process.env.RESPAN_API_KEY!,});const result = await generateText({ model: respan.chat(), prompt: "Hi",});console.log(result.text);import osfrom langchain_openai import ChatOpenAIllm = ChatOpenAI( base_url="https://gateway.respan.ai/v1/", api_key=os.environ["RESPAN_API_KEY"], model=,)response = llm.invoke("Hi")print(response.content)curl https://api.openai.com/v1/chat/completions \curl https://gateway.respan.ai/v1/chat/completions \ -H "Authorization: Bearer $RESPAN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": , "messages": [{"role": "user", "content": "Hi"}] }'No match. Browse all 1,000+ models
Browse all 1,000+ modelsBulk rates, passed on. 0% fee.
Example bill
~$3Ka month
$5K of gpt-6.1-sol at list price
OpenRouter~$5.3K+5.5% fee
Respan~$3Kup to 40% off0% fee
Save about $2.3K a month vs OpenRouter · ~$27K a year
Monthly spend at list price
When a provider fails, the next one answers.
Split traffic across models, providers or keys.
Masks personal data before the model sees it.
Refund order 8841 for Jane Doe, card 4242 4242 4242 4242, receipt to jane@acme.com.
Refund order 8841 for Jane DoeName, card 4242 4242 4242 4242Card, receipt to jane@acme.comEmail.
3 masked · name, card, emailnone reached the model
Memory, web search, code and MCP.
Calls stop at each customer's budget.
Yes. Claude Code speaks the Anthropic Messages API, and the gateway serves that API for every model, translating streaming, tool calls, and reasoning. Set ANTHROPIC_BASE_URL to the gateway and pick a GPT or Gemini model. To keep Claude and log every call instead, run respan-gateway proxy --anthropic in front of Claude Code.
Respan's gateway is one. OpenRouter is a hosted service you cannot run yourself; Respan's gateway is open source under MIT and Apache-2.0 and runs as a single binary on your own machine or cluster, calling OpenAI, Anthropic, Gemini, xAI, DeepSeek, Mistral, Groq, Ollama, vLLM, and more with your own keys. If you want it hosted after all, the same gateway runs managed on Respan with 1,000+ models on one bill.
For the proxy, yes. It does the same job, one OpenAI-compatible endpoint for every vendor, as a single Rust binary instead of a Python server, and it also serves the Anthropic Messages and Gemini APIs natively, translating between all of them. Routing, fallback, retries, hedged requests, and per-call cost tracking are built in.
In our benchmarks it adds 0.07 ms of latency at the median, serves 56,734 requests per second, and uses 31 MB of memory. On the same setup Bifrost added 0.16 ms at 18,182 requests per second and 488 MB, Portkey 0.17 ms at 4,187 per second and 350 MB, and LiteLLM with one worker 4.34 ms at 268 per second and 418 MB.
Yes. List MCP servers in gateway.toml, over HTTP or stdio, and the gateway serves each one at /mcp/{name} behind the same client keys as everything else, with bearer, OAuth, or one-time login auth. It can also run those tools inside chat requests, so any model can use them from a plain chat call.
“We scaled from 5M to 500M+ monthly API calls quickly. Respan gave us the debugging layer to resolve production issues 10x faster.”Read story
“This one felt pretty nice.”
“Imagine jumping to a log immediately after every LLM call. This is the dream for debugging.”
Watch film“Respan legit has some of the best UX/DX I’ve ever seen in my life. I truly don’t think I’ve ever integrated a product that was as easy.”
“Respan has been key in helping us scale to hundreds of millions of requests with reliable observability into our LLM calls and failure rates.”Read story
“Great product, really love the metrics dashboard.”