API do modelo nvidia/switchyard na OpenRouter, preço no provedor, contexto 1.000.000 tokens. Exemplos em curl, Python e JavaScript, teste ao 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
- Modelo
- Provedor
- OpenRouter
- ID do modelo
nvidia/switchyard- Preço
- Preço não divulgado
- Acesso sem chave
- Não
- Variável da chave
OPENROUTER_API_KEY- URL base (compatível com OpenAI)
https://openrouter.ai/api/v1- Contexto
- 1.000.000 tokens
- Entradas
- Texto
- Avaliação dos desenvolvedores
- Ainda sem avaliação
- Documentação
- https://openrouter.ai/nvidia/switchyard
Exemplos 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":"Olá, apresente-se em uma 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": "Olá, apresente-se em uma 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: 'Olá, apresente-se em uma frase.' }],
})
console.log(r.choices[0].message.content)
Gerar o código de integração →
Buscas populares
Perguntas frequentes
A API do NVIDIA: Switchyard é gratuita?
O preço não é publicado de forma padronizada: consulte a página do provedor.
Como chamar o NVIDIA: Switchyard no meu código?
O NVIDIA: Switchyard oferece uma API compatível com OpenAI em https://openrouter.ai/api/v1: use qualquer SDK da OpenAI (Python, JavaScript…) com essa URL base. Identificador do modelo: nvidia/switchyard. Há código pronto (streaming, JSON, novas tentativas) na caixa de ferramentas do desenvolvedor.
Qual é a janela de contexto do NVIDIA: Switchyard?
O NVIDIA: Switchyard aceita até 1.000.000 tokens de contexto (mensagem e histórico).
Quais são as alternativas ao NVIDIA: Switchyard?
APIs semelhantes no 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
- NVIDIA: Nemotron 3 Nano Omni (free) — Grátis, Sem chave
- NVIDIA: Nemotron 3.5 Super VL (free) — Grátis, Sem chave
- NVIDIA: Nemotron 3.5 Lightning (free) — Grátis, Sem chave
- NVIDIA: Nemotron 3 Ultra (free) — Grátis, Sem chave
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · CoreWeave — Pago
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · DeepInfra — Pago
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · Fireworks — Pago
- NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 · Venice — Pago
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · BaseTen — Pago
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · CoreWeave — Pago
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · Crusoe — Pago
- NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16 · DeepInfra — Pago