Provider: Custom / Self-hosted
Call your own self-hosted or custom LLM endpoint through Respan Gateway.
Bring your own OpenAI-compatible endpoint and call it through Respan Gateway to get unified observability (logs, cost, latency, reliability) alongside the rest of your models.
Quick setup
Add your custom provider
Go to Gateway › API keys › Bring your own key and click New custom provider. Fill in Provider ID, Provider name, and Base URL, click Add provider, then add your endpoint’s key with Add deployment.
Create a custom model
Go to Gateway › Models, click New custom model, and pick your custom provider. Use the model name your endpoint expects.
Call your custom model
The base URL is https://api.respan.ai/api and the only key needed is your RESPAN_API_KEY. Replace MY_CUSTOM_MODEL_ID with the model ID you created and verified in your project. This placeholder is intentional: custom model IDs are project-specific and are not entries in the public model catalog.
OpenAI SDK
Respan API
Point the OpenAI SDK at the Respan gateway and call your custom model.
More integrations
Custom models work with every Respan gateway integration over the OpenAI-compatible API:
Override credentials per model (Optional)
Use credential_override when a single request should route to a different endpoint or API key than the one configured on your custom provider.
Log without proxying (Optional)
Already calling your endpoint directly? Send logs to Respan asynchronously to track cost, latency, and performance for those external calls.
See the logging guide for the full setup.