Packet Router, animated React component
A live diagram of requests flowing from a router to four AI models along curved paths. Switch between Cost, Balanced and Quality and the traffic re-balances while each model's share and the blended price roll to their new values.
- Pro
- AI Components
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
RouterBalanced
Nano25%0
Mini40%0
Pro30%0
Ultra5%0
Blended price$1.92/ 1M tokens
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| defaultStrategy | "Cost" | "Balanced" | "Quality" | "Balanced" | Strategy selected on mount. |
| onStrategyChange | (strategy: RouterStrategy) => void | — | Called when someone picks a strategy. |
| autoplay | boolean | false | Cycles Cost, Quality, Balanced every 2.8s until someone touches it. |