Documentation
Get up and running with ModelRoute in minutes.
Quick Start
Install the SDK and route your first request in under 5 minutes.
Configuration
Providers, strategies, budgets, and fallback chains.
Analytics
Track costs, latency, routing decisions, and model performance.
Budget Limits
Per-project, per-team, and per-request budget enforcement.
API Reference
Complete SDK reference for all methods and options.
Quick Start
$ npm install @modelroute/sdk
import { ModelRoute } from '@modelroute/sdk';
const router = new ModelRoute({ strategy: 'cost-optimized' });
const response = await router.chat({ messages: [...] });
const router = new ModelRoute({ strategy: 'cost-optimized' });
const response = await router.chat({ messages: [...] });