TensaHub › OpenRouter

NVIDIA: Switchyard

API del modelo nvidia/switchyard en OpenRouter, precio en el proveedor, contexto 1.000.000 tokens. Ejemplos en curl, Python y JavaScript, prueba en directo.

Probar y valorar en el catálogo

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
Modelo
Proveedor
OpenRouter
ID del modelo
nvidia/switchyard
Precio
Precio no publicado
Acceso sin clave
No
Variable de clave
OPENROUTER_API_KEY
URL base (compatible con OpenAI)
https://openrouter.ai/api/v1
Contexto
1.000.000 tokens
Entradas
Texto
Valoración de desarrolladores
Aún sin valorar
Documentación
https://openrouter.ai/nvidia/switchyard

Ejemplos de código

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":"Hola, preséntate en 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": "Hola, preséntate en 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: 'Hola, preséntate en una frase.' }],
})
console.log(r.choices[0].message.content)

Generar el código de integración →

Búsquedas populares

Preguntas frecuentes

¿Es gratuita la API de NVIDIA: Switchyard?

El precio no se publica de forma estándar: consulta la página del proveedor.

¿Cómo llamo a NVIDIA: Switchyard desde mi código?

NVIDIA: Switchyard ofrece una API compatible con OpenAI en https://openrouter.ai/api/v1: usa cualquier SDK de OpenAI (Python, JavaScript…) con esta URL base. Identificador del modelo: nvidia/switchyard. Hay código listo para usar (streaming, JSON, reintentos) en la caja de herramientas para desarrolladores.

¿Cuál es la ventana de contexto de NVIDIA: Switchyard?

NVIDIA: Switchyard acepta hasta 1.000.000 tokens de contexto (mensaje e historial).

¿Qué alternativas hay a NVIDIA: Switchyard?

API similares del catálogo: 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.

Alternativas