nvidia のファビコン

NVIDIA: Switchyard

nvidia/switchyard

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 popular low and high cost models. You can pass in two choices in the models parameter as well as specify any of the routing algorithms Switchyard offers. Details in the Switchyard docs. OpenRouter then applies its normal provider routing, fallbacks and billing for the chosen model.

API

このモデルを呼び出すために、そのまま使えるコードです。OpenRouter の API は OpenAI 互換のため、ほとんどの SDK はベース URL を変更するだけで動作します。モデル間で変わるのは、下記のモデルスラッグだけです。

現在、EU 域内ルーティングでは利用できません。 リージョン内ルーティングのドキュメント

ドキュメント

OpenRouter で NVIDIA: Switchyard を使った開発に役立つガイド、クックブック、ブログ記事、ツールです。

よくある質問