NVIDIA NIM (build.nvidia.com) API keys

25 community-sourced NVIDIA NIM (build.nvidia.com) keys, re-checked against the API. Copy a key below, export it as NVIDIA_API_KEY, and send requests to https://integrate.api.nvidia.com/v1.

Keys

Using your NVIDIA NIM (build.nvidia.com) key

Export the key as NVIDIA_API_KEY, then call the API at https://integrate.api.nvidia.com/v1.

export NVIDIA_API_KEY="your-key-here"

curl

curl https://integrate.api.nvidia.com/v1/chat/completions \
  -H "Authorization: Bearer $NVIDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta/llama-4-scout-17b-16e-instruct",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Python (OpenAI SDK)

from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["NVIDIA_API_KEY"],
    base_url="https://integrate.api.nvidia.com/v1",
)

resp = client.chat.completions.create(
    model="meta/llama-4-scout-17b-16e-instruct",
    messages=[{"role": "user", "content": "Say hello"}],
)
print(resp.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.NVIDIA_API_KEY,
  baseURL: "https://integrate.api.nvidia.com/v1",
});

const resp = await client.chat.completions.create({
  model: "meta/llama-4-scout-17b-16e-instruct",
  messages: [{ role: "user", content: "Say hello" }],
});
console.log(resp.choices[0].message.content);