Models
GET /api/models/catalog
Section titled “GET /api/models/catalog”Get Model Catalog
Return the platform’s enabled chat models, in display order.
Replaces the model array that used to be hardcoded in the web app. Only
enabled rows are exposed — a model switched off in the admin panel must
disappear from every picker, and is rejected server-side regardless.
Embedding models share the catalog (same pricing shape, same admin surface)
but are never conversational, so they are filtered out here.
Readable by any authenticated user; per-org narrowing happens on top of this
via GET /orgs/{id}/model-config.
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | CatalogModel[] |
| 422 | Validation Error | HTTPValidationError |
GET /api/models/pricing
Section titled “GET /api/models/pricing”Get Model Pricing
Return LLM model pricing in per-1-million-token units.
Served from the platform model catalog — the same numbers runs are billed on, so what a picker shows and what a chat costs cannot drift. A model whose catalog row has no input/output price is omitted; admins fill those in (or sync them from the LiteLLM dataset) in the admin panel.
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | object |
| 422 | Validation Error | HTTPValidationError |