The DeepInfra model provides access to DeepInfra’s hosted language models.

ParameterTypeDefaultDescription
idstr"meta-llama/Llama-2-70b-chat-hf"The specific model ID used for generating responses.
namestr"DeepInfra"The name identifier for the DeepInfra agent.
providerstr"DeepInfra" + idThe provider of the model, combining "DeepInfra" with the model ID.
api_keyOptional[str]-The API key for authenticating requests to the DeepInfra service. Retrieved from the environment variable DEEPINFRA_API_KEY.
base_urlstr"https://api.deepinfra.com/v1/openai"The base URL for making API requests to the DeepInfra service.