Skip to content

API Reference

This section documents the public CLI and Python APIs exposed by the llmrouter package.

Note

The docs site is built from the website branch, but the runnable implementation lives on main. Source links in this section point to main to reduce drift.

Conventions

  • CLI router names are lowercase strings (for example, knnrouter). See Routers for aliases.
  • Relative YAML paths resolve against the directory containing llmrouter/. See Config reference.
  • llmrouter infer reads/writes JSON. See Data formats for schemas.

Layout

Each page follows a consistent structure so you can scan quickly: - Summary of the object or command - Signature - Key responsibilities - Parameters and return values - Examples and notes