API des Modells nvidia/switchyard bei OpenRouter, Preis beim Anbieter, Kontext 1.000.000 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
Switchyard is an open-source model routing system that switches between multiple models to optimize the cost of requests. By default it will use OpenRouter market data to select the most...
- Typ
- Modell
- Anbieter
- OpenRouter
- Modell-ID
nvidia/switchyard- Preis
- Preis nicht angegeben
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
OPENROUTER_API_KEY- Basis-URL (OpenAI-kompatibel)
https://openrouter.ai/api/v1- Kontext
- 1.000.000 Tokens
- Eingaben
- Text
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://openrouter.ai/nvidia/switchyard
Codebeispiele
cURL
curl https://openrouter.ai/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-d '{"model":"nvidia/switchyard","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://openrouter.ai/api/v1", api_key=os.environ["OPENROUTER_API_KEY"])
r = client.chat.completions.create(
model="nvidia/switchyard",
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://openrouter.ai/api/v1', apiKey: process.env.OPENROUTER_API_KEY })
const r = await client.chat.completions.create({
model: 'nvidia/switchyard',
messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)
Beliebte Suchen
Häufige Fragen
Ist die API von NVIDIA: Switchyard kostenlos?
Der Preis ist nicht in einheitlicher Form veröffentlicht: siehe Seite des Anbieters.
Wie rufe ich NVIDIA: Switchyard aus meinem Code auf?
NVIDIA: Switchyard bietet eine OpenAI-kompatible API unter https://openrouter.ai/api/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: nvidia/switchyard. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von NVIDIA: Switchyard?
NVIDIA: Switchyard verarbeitet bis zu 1.000.000 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu NVIDIA: Switchyard?
Ähnliche APIs im Katalog: NVIDIA: Nemotron 3 Nano Omni (free), NVIDIA: Nemotron 3.5 Super VL (free), NVIDIA: Nemotron 3.5 Lightning (free), NVIDIA: Nemotron 3 Ultra (free), NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · CoreWeave.
Alternativen
- NVIDIA: Nemotron 3 Nano Omni (free) — Kostenlos, Ohne Schlüssel
- NVIDIA: Nemotron 3.5 Super VL (free) — Kostenlos, Ohne Schlüssel
- NVIDIA: Nemotron 3.5 Lightning (free) — Kostenlos, Ohne Schlüssel
- NVIDIA: Nemotron 3 Ultra (free) — Kostenlos, Ohne Schlüssel
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · CoreWeave — Kostenpflichtig
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · DeepInfra — Kostenpflichtig
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · Fireworks — Kostenpflichtig
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · Venice — Kostenpflichtig
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · BaseTen — Kostenpflichtig
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · CoreWeave — Kostenpflichtig
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · Crusoe — Kostenpflichtig
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · DeepInfra — Kostenpflichtig