Gateway to Other APIs
Access any custom provider endpoint through Portkey API
This feature is available on all Portkey plans.
Portkey API has first-class support for monitoring and routing your requests to 10+ provider endpoints, like /chat/completions
, /audio
, /embeddings
, etc. We also make these endpoints work across 250+ different LLMs.
However, there are still many endpoints like Cohere’s /rerank
or Deepgram’s /listen
that are uncommon or have niche use cases.
With the Gateway to Other APIs feature, you can route to any custom provider endpoint using Portkey (including the ones hosted on your private setups) and get complete logging & monitoring for all your requests.
How to Integrate
- Get your Portkey API key
- Add your provider details to Portkey
- Make your request using Portkey’s API or SDK
1. Get Portkey API Key
Create or log in to your Portkey account. Grab your account’s API key from the “API Keys” page.
2. Add Provider Details
Choose one of these authentication methods:
3. Make Requests
Construct your request URL:
- Portkey Gateway base URL remains same:
https://api.portkey.ai/v1
- Append your custom endpoint at the end of the URL:
https://api.portkey.ai/v1/{provider-endpoint}
End-to-end Example
Caveats & Considerations
- Response objects are returned exactly as received from the provider, without Portkey transformations
- REST API supports all HTTP methods
- SDK currently supports
POST
only (more methods coming soon) - There are no limitations on which provider endpoints can be proxied
- All requests are logged and monitored through your Portkey dashboard
Support
Need help? Join our Developer Forum for support and discussions.
Was this page helpful?