🚀 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",
)
# Add a new provider
new_provider = portkey.providers.create(
name="openai provider",
integration_id="",
workspace_id=""
)
print(new_provider){
"id": "<string>",
"slug": "<string>"
}from portkey_ai import Portkey
# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)
# Add a new provider
new_provider = portkey.providers.create(
name="openai provider",
integration_id="",
workspace_id=""
)
print(new_provider){
"id": "<string>",
"slug": "<string>"
}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.
Integration slug used for the provider creation.
optional, needed when using organisation admin API keys
Slug for the provider. If not passed, slug will be created by adding a random suffix to the name.
Show child attributes
{
"credit_limit": 10,
"periodic_reset": "monthly",
"alert_threshold": 8
}Show child attributes
Was this page helpful?