Last updated 11 months ago
Was this helpful?
openai
azure-openai
ai21
anthropic
anyscale
bedrock
cohere
deepinfra
fireworks-ai
google
groq
hugging-face
jina
lingyi
mistral-ai
monsterapi
moonshot
nomic
novita-ai
open-ai
openrouter
palm
perplexity-ai
predibase
reka-ai
segmind
stability-ai
together-ai
vertex-ai
workers-ai
zhipu
optional, needed when using organisation admin API keys
{"credit_limit":10,"periodic_reset":"monthly","alert_threshold":8}
from portkey_ai import Portkey # Initialize the Portkey client portkey = Portkey( api_key="PORTKEY_API_KEY", ) # Add a new virtual key new_virtual_key = portkey.virtual_keys.create( name="openaiVKey", provider="openai", key="PROVIDER_API_KEY" ) print(new_virtual_key)
Successful response
{ "success": true, "data": { "slug": "text" } }