Authentication
Set yourNVIDIA_API_KEY environment variable. Get your key from Nvidia here.
Example
UseNvidia with your Agent:
View more examples here.
Params
Nvidia also supports the params of OpenAI.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
Learn how to use Nvidia models in Agno.
NVIDIA_API_KEY environment variable. Get your key from Nvidia here.
export NVIDIA_API_KEY=***
setx NVIDIA_API_KEY ***
Nvidia with your Agent:
from agno.agent import Agent, RunResponse
from agno.models.nvidia import Nvidia
agent = Agent(model=Nvidia(), markdown=True)
# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story")
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "meta/llama-3.3-70b-instruct" | The specific model ID used for generating responses. |
name | str | "Nvidia" | The name identifier for the Nvidia agent. |
provider | str | "Nvidia" + id | The provider of the model, combining "Nvidia" with the model ID. |
api_key | Optional[str] | - | The API key for authenticating requests to the Nvidia service. Retrieved from the environment variable NVIDIA_API_KEY. |
base_url | str | "https://integrate.api.nvidia.com/v1" | The base URL for making API requests to the Nvidia service. |
Nvidia also supports the params of OpenAI.Was this page helpful?