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

Parameters

ParameterTypeDefaultDescription
idstr"meta-llama/Llama-2-70b-chat-hf"The id of the DeepInfra model to use
namestr"DeepInfra"The name of the model
providerstr"DeepInfra"The provider of the model
api_keyOptional[str]NoneThe API key for DeepInfra (defaults to DEEPINFRA_API_KEY env var)
base_urlstr"https://api.deepinfra.com/v1/openai"The base URL for the DeepInfra API
DeepInfra extends the OpenAI-compatible interface and supports most parameters from OpenAI.
I