v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
analytics

Get Used Models

Return the distinct models the user has run inference against.

One entry per distinct inferences.model_id for the authenticated user, ordered by most-recently-used first and carrying the last-used timestamp plus a lifetime call count. LLM-as-Judge calls (source = 'llmaj') are excluded so the list reflects user-driven usage. The service filters inferences.user_id explicitly because the service_role async engine bypasses Postgres RLS.

Args: limit: Maximum number of models to return. auth: Authentication result carrying the user id used to scope the aggregate.

Returns: UsedModelsResponse with the recency-ordered model list. Empty when the user has no qualifying inferences.

get/analytics/used-models

Query parameters

limitinteger

Maximum number of distinct models to return, ordered by most-recently-used first.

Maximum number of distinct models to return, ordered by most-recently-used first.

Response

Successful Response