API del modello nvidia/switchyard su OpenRouter, prezzo presso il fornitore, contesto 1.000.000 token. Esempi in curl, Python e JavaScript, test dal vivo.
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...
- Tipo
- Modello
- Fornitore
- OpenRouter
- ID del modello
nvidia/switchyard- Prezzo
- Prezzo non comunicato
- Accesso senza chiave
- No
- Variabile della chiave
OPENROUTER_API_KEY- URL di base (compatibile OpenAI)
https://openrouter.ai/api/v1- Contesto
- 1.000.000 token
- Input
- Testo
- Valutazione degli sviluppatori
- Non ancora valutato
- Documentazione
- https://openrouter.ai/nvidia/switchyard
Esempi di codice
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":"Ciao, presentati in una frase."}]}'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": "Ciao, presentati in una frase."}],
)
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: 'Ciao, presentati in una frase.' }],
})
console.log(r.choices[0].message.content)
Genera il codice di integrazione →
Ricerche popolari
Domande frequenti
L’API di NVIDIA: Switchyard è gratuita?
Il prezzo non è pubblicato in forma standard: consulta la pagina del fornitore.
Come chiamo NVIDIA: Switchyard dal mio codice?
NVIDIA: Switchyard offre un’API compatibile con OpenAI all’indirizzo https://openrouter.ai/api/v1: usa qualsiasi SDK OpenAI (Python, JavaScript…) con questo URL di base. Identificatore del modello: nvidia/switchyard. Codice pronto all’uso (streaming, JSON, nuovi tentativi) è disponibile nella cassetta degli attrezzi per sviluppatori.
Qual è la finestra di contesto di NVIDIA: Switchyard?
NVIDIA: Switchyard accetta fino a 1.000.000 token di contesto (messaggio e cronologia).
Quali sono le alternative a NVIDIA: Switchyard?
API simili nel catalogo: 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.
Alternative
- NVIDIA: Nemotron 3 Nano Omni (free) — Gratis, Senza chiave
- NVIDIA: Nemotron 3.5 Super VL (free) — Gratis, Senza chiave
- NVIDIA: Nemotron 3.5 Lightning (free) — Gratis, Senza chiave
- NVIDIA: Nemotron 3 Ultra (free) — Gratis, Senza chiave
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · CoreWeave — A pagamento
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · DeepInfra — A pagamento
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · Fireworks — A pagamento
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · Venice — A pagamento
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · BaseTen — A pagamento
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · CoreWeave — A pagamento
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · Crusoe — A pagamento
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · DeepInfra — A pagamento