Optimal model routing directly in Claude, Codex and Cursor
LLM routing layer when LiteLLM and Portkey already handle multi-model failover and cost optimization.

Beats every individual open-weight model by routing prompts dynamically, not just chaining APIs.
Developers building AI apps who want to reduce inference costs without sacrificing quality
Fireworks AI · Together AI · Anyscale
It started with a simple experiment. I took a group of models, including GLM-5.2, Kimi K2.7 and others, and ran them on the same evaluations. Then I measured what would happen if, for each problem, you somehow knew in advance which models would be useful and how their outputs should be combined.
That hypothetical system performed substantially better than any individual model in the pool. Of course, it is not something you can actually deploy because it relies on knowing which decisions were good after seeing the result. Echo is my attempt to recover some of that advantage without having that information in advance.
For each request, Echo decides how much computation to allocate, which models should participate, and how their work should be combined. Some prompts may only need a relatively small amount of inference, while others benefit from multiple models working on different parts of the problem.
One thing that surprised me while building it was how complementary the models are. A model that is clearly weaker overall can still be extremely useful on particular problems or as part of a combination.
On my first evaluation mix, Echo consistently performed better than the best individual model in its pool. It also reached roughly the same aggregate result as Fable, which I used as one of the stronger comparison systems, at around one third of the inference cost.
There are still some cases where Echo makes the wrong allocation or combination decision. I’m currently spending a lot of time understanding those failures, as well as testing whether the same approach holds up on coding and agentic tasks where measuring the quality of each decision becomes much harder.
I built a chat interface (echo.tracerml.ai) and an OpenAI-compatible API (https://echo.tracerml.ai/docs/api) so the system can be tested outside the evaluation setup.
Here is a short/high level video on how it works: https://youtu.be/lJFJSvOdXhg
I wrote up the evaluation methodology, individual model results, costs and current limitations here: https://echo.tracerml.ai/eval
I would love for you to try it! Especially if you hit any weird failure cases or places where the allocation looks unintuitive.
LLM routing layer when LiteLLM and Portkey already handle multi-model failover and cost optimization.
Cache-aware LLM routing that doesn't burn prompts to save pennies.
Drop-in endpoint that cuts AI coding costs 40-70% with sub-50ms routing.
pydantic-ai structured routing decides cheapest model before litellm executes.
Four-tier AI model routing with $8.50/hr budget cap is genuinely clever engineering.
Model routing across 10+ providers when CrewAI and LangGraph already handle orchestration.