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
This integration is for the Respan gateway.
Overview
OpenAI SDK provides the most robust integration method for accessing multiple model providers. Since most AI providers prioritize OpenAI SDK compatibility, you can seamlessly call all 250+ models available through the Respan platform gateway.Quickstart
Step 1: Install OpenAI SDK
- Get a Respan API key
- Add your provider credentials
- Install packages
Step 2: Initialize Client
Step 3: Make Your First Request
Step 4: See your log on platform
Switch models
See the full model list for all available models.
Supported parameters
OpenAI parameters
We support all the OpenAI parameters. You can pass them directly in the request body.Respan Parameters
Respan parameters can be passed for better handling and customization.Prompt composition
A variable in one prompt can reference another prompt. The child prompt is rendered first and injected into the parent. See Prompt composition for setup details.Prompt schema (v1 vs v2)
Theprompt object supports a schema_version field that controls how prompt configuration and request parameters are merged. See the full guide for details.
- Prompt schema v1 (default, legacy):
overrideflag controls which side wins for conflicts. - Prompt schema v2 (recommended,
schema_version=2): prompt config always wins. Supports apatchfield for non-message parameter overrides.
Azure OpenAI
To call Azure OpenAI models, instead of using azure OpenAI’s client, the easier way is to use the OpenAI client.View your analytics
Access your Respan dashboard to see detailed analytics