Skip to main content
Use NVIDIA Nemotron 3 and other NIM-hosted models with a single environment variable.

Quick Start

1

Simplest usage

2

With a tool


Models

Short aliases map to the catalog slugs verified against GET /v1/models on 2026-10-15.

Environment Variables

Set one key for hosted NIM, and optionally override the key or endpoint.
Key order: explicit api_key= → NVIDIA_NIM_API_KEY → NVIDIA_API_KEY. OPENAI_API_KEY is never used for NIM. Base-URL order: explicit base_url= → NVIDIA_NIM_API_BASE → https://integrate.api.nvidia.com/v1.
If NVIDIA_API_KEY is unset and no base_url is given, hosted calls raise ValueError. Get a key at build.nvidia.com, or pass base_url= for a local NIM.
Your base_url must end in /v1. Without it, requests go to /chat/completions and NIM returns 404.

Reasoning Mode

Nemotron 3 thinks by default, and reasoning_effort switches it on or off.
This mapping only applies to Nemotron 3 (and nemotron-nano-3) via the NIM route. Nemotron served by other providers and non-Nemotron NIM models use the standard reasoning_effort path.

Override chat_template_kwargs

Your own chat_template_kwargs always wins over the reasoning_effort translation.
When you set chat_template_kwargs yourself, reasoning_effort is not translated.

Local NIM Container

Point base_url at your container and skip the key.
The passthrough flags are only needed if you want tool calling and reasoning in the container. Without them, basic chat still works.

Streaming

Stream tokens as they arrive.
Streaming works with and without tools.

YAML

Set the model by name, with optional reasoning control.
String form:

CLI

Pass the model with --llm.

Sampling

NVIDIA recommends temperature=1.0 and top_p=0.95 for Nemotron 3; these are not PraisonAI defaults.

Common Pitfalls

Not any more. As of PraisonAI PR #5832, OPENAI_API_KEY is never read for nvidia/ or nvidia_nim/ models. Set NVIDIA_API_KEY instead.
Your base_url must end in /v1. Use http://localhost:8000/v1, not http://localhost:8000.
Hosted NIM works with the defaults. For a local NIM container, start it with NIM_PASSTHROUGH_ARGS="--enable-auto-tool-choice --tool-call-parser qwen3_coder --reasoning-parser nemotron_v3".

OpenAI-Compatible Providers

Use any OpenAI-compatible endpoint

TypeScript NVIDIA NIM

JS SDK equivalent