Authentication
Last updated
Was this helpful?
Last updated
Was this helpful?
To ensure secure access to Portkey's APIs, authentication is required for all requests. This guide provides the necessary steps to authenticate your requests using the Portkey API key, regardless of whether you are using the SDKs for Python and JavaScript, the OpenAI SDK, or making REST API calls directly.
or to your Portkey account. Grab your account's API key from the "Settings" page.
Based on your access level, you might see the relevant permissions on the API key modal - tick the ones you'd like, name your API key, and save it.
When integrating Portkey through the OpenAI SDK, modify the base URL and add the x-portkey-api-key
header for authentication. Here's an example of how to do it:
Read more .