🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Get a specific provider
provider = portkey.providers.retrieve(
slug="PROVIDER_SLUG",
workspace_id=""
)
print(provider){
"name": "Open AI Workspace",
"integration_id": "<string>",
"note": "randomness",
"status": "active",
"usage_limits": {
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
},
"reset_usage": 0,
"created_at": "2023-11-07T05:31:56Z",
"slug": "<string>",
"rate_limits": [
{
"type": "requests",
"unit": "rpd",
"value": 123
}
],
"expires_at": "2023-11-07T05:31:56Z",
"object": "provider"
}from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Get a specific provider
provider = portkey.providers.retrieve(
slug="PROVIDER_SLUG",
workspace_id=""
)
print(provider){
"name": "Open AI Workspace",
"integration_id": "<string>",
"note": "randomness",
"status": "active",
"usage_limits": {
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
},
"reset_usage": 0,
"created_at": "2023-11-07T05:31:56Z",
"slug": "<string>",
"rate_limits": [
{
"type": "requests",
"unit": "rpd",
"value": 123
}
],
"expires_at": "2023-11-07T05:31:56Z",
"object": "provider"
}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Provider slug
optional, needed when using organisation admin keys
Successful response
"Open AI Workspace"
"randomness"
active, exhausted, expired Show child attributes
{
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
}0
Show child attributes
provider Was this page helpful?