LLM Gateway

One API in front of several Claude models. Each request is scored as easy or hard and sent to Claude Haiku 5.5 or Claude Opus 5.5. Repeats come from a SQLite cache. If a model times out, is rate limited, overloaded, errors or refuses, the next model in the chain answers. Every request is priced.

request -> router (easy | hard + reasons) -> cache (exact; normalized key opt-in)
        miss -> easy: haiku -> sonnet -> opus     hard: opus -> sonnet
             -> price tokens -> store in cache -> log for /stats

Try the router

This runs in your browser: the same rule file and scorer as the Python service (ported to JS and checked against it in the test suite). No model is called here.

-
-
-

Why

    Cache key

    Opt-in normalized key (on in the recorded run): ASCII case and whitespace, and a trailing . or ? after a word.

    normalized text

    sha-256

    Recorded run

    Loading recorded run...

    Timeline

    One cell per request, in arrival order. Click a cell or a row to read the real answer.

    Misroute check

    Every unique prompt was also answered by the model the router did not pick, and Opus graded whether Haiku's answer was good enough. Routed easy but Haiku failed = under-routed (quality loss). Routed hard but Haiku passed = over-routed (paid Opus prices for nothing).

    How the numbers were made