Skip to main content
Use open-source models hosted on DeepInfra with Agno agents. 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:
  • deepseek-ai/DeepSeek-R1-Distill-Llama-70B model is good for reasoning.
  • meta-llama/Llama-2-70b-chat-hf model is good for basic use-cases.
  • meta-llama/Llama-3.3-70B-Instruct model is good for multi-step tasks.
DeepInfra has rate limits. See the rate limit docs.

Authentication

Set your DEEPINFRA_API_KEY environment variable. Get your key from here.

Example

Use DeepInfra with your Agent:
View more examples here.

Params

DeepInfra also supports the parameters of OpenAI.