Respan API
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
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
Overview
The Respan gateway provides an OpenAI-compatible API endpoint that gives you access to 250+ models from all major providers through a single API key and base URL.
Environment Switching: Respan doesn’t support an env parameter in API calls. To switch between environments (test/production), use different API keys — one for your test environment and another for production. Manage keys in API Keys settings.
Quickstart
Step 1: Set environment variables
Step 2: Make a request
Step 3: Verify
Open the Logs page to see your gateway requests.
Switch models
Change the model parameter to use any supported provider through the same endpoint:
Browse the full model list to see all available models.
OpenAI-compatible parameters
All standard OpenAI chat completion parameters are supported:
Respan parameters
Pass Respan-specific parameters in the request body alongside OpenAI parameters. When using the OpenAI SDK, pass them via extra_body.