Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Overview
Most teams start with a single LLM provider. The Respan gateway lets you switch between 250+ models by changing one string — no code rewrites, no new SDKs. This cookbook shows how to migrate from direct OpenAI calls to a multi-model setup with automatic fallbacks.Before: Direct OpenAI calls
After: Respan gateway (2-line change)
Switch models
Now you can swap models by changing themodel string:
Add fallback models
If your primary model goes down, Respan automatically retries with fallback models:gpt-4o fails, Respan tries claude-sonnet-4-20250514, then gemini-2.0-flash. Your users never see an error.
Compare cost and quality
After running traffic through multiple models, use the Respan dashboard to compare:- Go to Dashboard
- Use the model breakdown to compare cost, latency, and token usage per model
- Filter logs by model to review output quality side-by-side
Add
metadata to tag requests by use case, so you can compare model performance per feature — not just globally.