The Portkey model provides access to multiple AI providers through the Portkey AI Gateway.
ParameterTypeDefaultDescription
idstr"gpt-4o-mini"The id of the model to use through Portkey
namestr"Portkey"The name of the model
providerstr"Portkey"The provider of the model
portkey_api_keyOptional[str]NoneThe Portkey API key for authentication
virtual_keyOptional[str]NoneThe virtual key for model routing in Portkey
configOptional[Dict[str, Any]]NonePortkey configuration for routing, retries, and policies
base_urlstrPORTKEY_GATEWAY_URLThe Portkey gateway URL