Obtaining Your API Key
Create or log in to your Obiguard account. Grab your account’s API key from a guardrail policy, or create a virtual key.Authentication with SDKs
Obiguard SDKs
- Python SDK
- cURL
OpenAI SDK
When integrating Obiguard through the OpenAI SDK, modify the base URL and add thex-obiguard-api-key header for authentication.
Here’s an example of how to do it:
We use the
createHeaders helper function from the Obiguard SDK here to easily create Obiguard headers.You can pass the raw headers (x-obiguard-api-key, x-obiguard-provider) directly in the defaultHeaders param as well.- Python

