TensaHub › NVIDIA NIM

NVIDIA NIM

Free access for prototyping, 1 Modell(e) indexiert. Beispiele in curl, Python und JavaScript, Live-Test.

Im Katalog testen und bewerten

Typ
Anbieter
Anbieter
NVIDIA NIM
Preis
Kostenlos + bezahlt
Zugang ohne Schlüssel
Nein
Schlüsselvariable
NVIDIA_API_KEY
Basis-URL (OpenAI-kompatibel)
https://integrate.api.nvidia.com/v1
Eingaben
Text
Entwicklerbewertung
Noch nicht bewertet
Dokumentation
https://build.nvidia.com/models
Letzte Prüfung
2026-12-04T20:20:29+00:00

Codebeispiele

cURL

curl https://integrate.api.nvidia.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NVIDIA_API_KEY" \
  -d '{"model":"meta/llama-3.1-8b-instruct","messages":[{"role":"user","content":"Hallo, stell dich in einem Satz vor."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://integrate.api.nvidia.com/v1", api_key=os.environ["NVIDIA_API_KEY"])
r = client.chat.completions.create(
    model="meta/llama-3.1-8b-instruct",
    messages=[{"role": "user", "content": "Hallo, stell dich in einem Satz vor."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://integrate.api.nvidia.com/v1', apiKey: process.env.NVIDIA_API_KEY })
const r = await client.chat.completions.create({
  model: 'meta/llama-3.1-8b-instruct',
  messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)

Integrationscode erzeugen →

Beliebte Suchen

Häufige Fragen

Ist die API von NVIDIA NIM kostenlos?

NVIDIA NIM bietet ein begrenztes Gratiskontingent; darüber hinaus ist die Nutzung kostenpflichtig.

Wie rufe ich NVIDIA NIM aus meinem Code auf?

NVIDIA NIM bietet eine OpenAI-kompatible API unter https://integrate.api.nvidia.com/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.

Alternativen