Header requirements and options for the Obiguard API
Obiguard Authentication Header | Required | For Obiguard auth |
Provider Authentication Headers OR Cloud-Specific Headers | Required | For provider auth |
Custom Headers | Optional | To forward any other headers directly |
OBIGUARD_API_KEY
Example
openai
, anthropic
, vertex-ai
)."Bearer $TOKEN"
.x-api-key
or api-key
, you can pass the token with the Authorization
header directly and Obiguard will convert it into the provider-specific format.Example
Example
openai
."Bearer $TOKEN"
.x-api-key
or api-key
, you can pass the token with the Authorization
header directly and Obiguard will convert it into the provider-specific format.Example
Example
X-My-Custom-Header
, it should be sent as X_My_Custom_Header
in the SDKX-My-Custom-Header
, it should be sent as xMyCustomHeader
in the SDKAzure
, Google
, AWS
)Azure OpenAI
, Google Vertex AI
, or AWS Bedrock
x-obiguard-azure-resource-name
, x-obiguard-azure-deployment-id
, x-obiguard-azure-api-version
, Authorization
, x-obiguard-azure-model-name
x-obiguard-vertex-project-id
, x-obiguard-vertex-region
, X-Vertex-AI-LLM-Request-Type
x-obiguard-aws-session-token
, x-obiguard-aws-secret-access-key
, x-obiguard-aws-region
, x-obiguard-aws-session-token
Parameter | Type | Key |
---|---|---|
API Key Your Obiguard account’s API Key. | stringrequired | obiguard_api_key |
Provider The AI provider to use for your calls. (supported providers). | string | provider |
Base URL You can edit the URL of the gateway to use. | string | base_url |
Custom Host Route to locally or privately hosted model by configuring the API URL with custom host | string | custom_host |
Forward Headers Forward sensitive headers directly to your model’s API without any processing from Obiguard. | array of string | forward_headers |
Azure OpenAI Headers Configuration headers for Azure OpenAI that you can send separately | string | azure_resource_name azure_deployment_id azure_api_version azure_model_name |
Google Vertex AI Headers Configuration headers for Vertex AI that you can send separately | string | vertex_project_id vertex_region |
AWS Bedrock Headers Configuration headers for Bedrock that you can send separately | string | aws_access_key_id aws_secret_access_key aws_region aws_session_token |