← all simulations
Cookbook 06 The Python 06_model_router.py

Picking the right brain

You pay for several AI models. They are not equally good, fast, or expensive. Jev reads each incoming request, works out what it actually needs, and sends it to the cheapest thing that can do the job — sometimes that is no AI at all.

The request being read

Press Play.

The bill

Requests
0
routed
No AI
0
pure code
Routed cost
$0.00
this way
Top model only
$0.00
no routing

Routing by what the task needs — rather than by whichever key you configured first — is what makes the cheap branches reachable.