List available models
Returns models available to the tenant. Each item includes its provider, context limit, and usage fields. An empty library returns an empty array.
A bounded keyset page ordered by normalized model_id, then normalized provider, then an opaque row identity. Every comparison runs under COLLATE "C", so the order is byte-wise and stable across locales. Follow next_cursor to read the whole catalogue; a client that reads only the first page silently loses every model past it.
The response is conditionally revalidated. Every answer carries an ETag over the exact bytes served, plus Cache-Control: private, no-cache and Vary: Authorization. Send the tag back as If-None-Match and a match answers 304 with no body and the same headers. private is what stops a shared proxy handing one tenant’s response to another even though the payload is identical for every authorized caller.
Authorizations
Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub OAuth
Query Parameters
Rows per page, 1..100. Defaults to 50.
1 <= x <= 100Opaque cursor from a previous page's next_cursor. Bound to the filters and page size that produced it. A cursor this endpoint never issued is UZ-LIBRARY-001. A real cursor carrying different filters or a different page size is UZ-LIBRARY-002, rather than a silently different page. Only the sort boundary is read from it — the filters applied are always the request's.
Exact match on the normalized provider. At most 128 bytes once normalized; empty after normalization is treated as absent.
128Response
One page of the model library catalogue.
Date of the most recently updated model, formatted as YYYY-MM-DD in UTC.
The page's rows. Named models rather than items because renaming a shipped /v1 field is a breaking change. total and next_cursor are added beside it, so the page is navigable without breaking an existing client.
Always null. Counting a keyset page costs the scan this pagination exists to avoid. The key is present rather than omitted, so no client need special-case its absence.
Cursor for the next page, or null on the last.