Connect your app
Point your SDK, framework or coding agent at the gateway by changing its base URL.
To send your app’s calls through respan-gateway, change the base URL in your client. Your code and model names stay the same.
Base URLs
Use your gateway’s address in place of localhost:8080. For the API key, send a client key. With no client keys set, any value works.
Examples
OpenAI (Python)
OpenAI (TypeScript)
Anthropic
Google GenAI
Claude Code
Use an integration guide
The guides under Gateway integrations work with respan-gateway too. Follow a guide, then make two changes:
- Replace its base URL, such as
https://api.respan.ai/api/, with the gateway’s from the table above. - Replace
RESPAN_API_KEYwith your client key.
Features of the hosted Respan gateway, such as respan_params, prompt management, caching and span-router, aren’t part of respan-gateway. To log your calls in Respan, turn on Respan tracing.