AI Cloud Architect

Cost per task: Using cheap classifiers to route across Gemini models and thinking levels

GoogleHow-to by Sergio VillaniGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows a cheap classifier (Jev) can route coding-agent tasks between Flash-Lite and Gemini Flash on low thinking, matching the accuracy of always using low thinking while reducing cost and latency in its 50-task test.

Who it is for

Teams running coding agents on Gemini that want to cut cost per successful task without losing accuracy.

Key points

  • Benchmark was 50 prompts, one run per setup, with hand-assigned difficulty and automatic grading; the authors list these as limits.
  • Lowering maxOutputTokens did not reduce thinking on easy tasks and broke 7 of 25 hard tasks.
  • Context caching is per model, so switching models between turns can lose the cache discount (vendor says 75% to 90% savings).
  • The post states Google has no partnership with TypeSafe; Jev is one example classifier.

The same at other vendors