v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-304917042.1 MB
model-router

List selectable models plus per-role runtime model defaults

Selectable models + the code-default model each runtime role falls back to.

The role defaults mirror the runtime constants (single-sourced via src.runtime.model_defaults.ROLE_DEFAULTS, which imports the SAME constants the runtime applies) so the UI can show what's actually used — model + effort + max_tokens + temperature + thinking budget — when an entity leaves a setting unset. Imported lazily inside the handler: model_router deliberately never imports src.runtime at module scope (the runtime imports model_router.service — a top-level import here risks a cycle).

get/v1/model-router/catalog

Response

Successful Response