Leverage DeepInfra’s powerful command models and more. DeepInfra supports a wide range of models. See their library of models here. We recommend experimenting to find the best-suited model for your use-case. Here are some general recommendations:Documentation Index
Fetch the complete documentation index at: https://agno-v2-shaloo-ai-support-link.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
deepseek-ai/DeepSeek-R1-Distill-Llama-70Bmodel is good for reasoning.meta-llama/Llama-2-70b-chat-hfmodel is good for basic use-cases.meta-llama/Llama-3.3-70B-Instructmodel is good for multi-step tasks.
Authentication
Set yourDEEPINFRA_API_KEY environment variable. Get your key from here.
Example
UseDeepInfra with your Agent:
View more examples here.
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "meta-llama/Llama-2-70b-chat-hf" | The id of the DeepInfra model to use |
name | str | "DeepInfra" | The name of the model |
provider | str | "DeepInfra" | The provider of the model |
api_key | Optional[str] | None | The API key for DeepInfra (defaults to DEEPINFRA_API_KEY env var) |
base_url | str | "https://api.deepinfra.com/v1/openai" | The base URL for the DeepInfra API |
DeepInfra also supports the parameters of OpenAI.