Gateway quickstart
Send your model calls through Respan by changing one base URL.
The Respan gateway is one endpoint for 1000+ models. Point your LLM client at it, and every call is logged in Respan, with fallbacks, caching, and limits ready when you need them.
Set up with your coding agent
Paste this prompt into Claude Code, Cursor, Codex, or any coding agent:
Help me set up the Respan gateway: fetch and follow https://respan.ai/docs/agent-setup.md
Step by step
Create an API key
In the platform , go to Gateway › API keys and click New key. Keep Gateway checked, pick Production or Test, and click Create.


Click Copy, then Done. You won’t see the key again, so save it now:
export RESPAN_API_KEY="your-respan-api-key"Choose who pays the provider
Each call needs Respan credits or your own provider key:
- Credits: go to Gateway › Credits and add credits. See Billing and credits.
- Your own key: on Gateway › API keys, click Bring your own key and add your provider’s key. See Provider keys.
Point your client at Respan
Set the base URL to Respan’s and use your Respan API key. The rest of your code stays the same.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.respan.ai/api/",
api_key=os.environ["RESPAN_API_KEY"],
)
response = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Using a framework? Find its guide in Integrations.
Check the request in Logs
Run your code, then open Gateway › Logs. Your request is at the top.


Click the row to see the full request and response. See Logs.