Management

Get API key usage

Returns paginated usage details for this API key.

get/v1/management/api-keys/{keyId}/usage

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/management/api-keys/{keyId}/usage
  • Auth: HTTP bearer

Path parameters

keyIdstring required

Query parameters

pageinteger

1-based page number. Default is 1.

limitinteger

Page size. Default is 50 and the maximum is 100.

modelstring

Filter by requested model name. Maximum length 100.

modelVendorstring

Filter by public model vendor. Maximum length 100.

scene'chat' | 'image' | 'audio' | 'video' | 'embedding' | 'rerank' | 'translation' | 'music' | '3d' | 'realtime' | 'systemone'

Filter by public request scene.

startDatestring

Inclusive date filter. Accepts either RFC3339 with timezone (for example 2026-03-28T00:00:00+08:00) or YYYY-MM-DD.

endDatestring

Inclusive date filter. Accepts either RFC3339 with timezone (for example 2026-03-28T00:00:00+08:00) or YYYY-MM-DD.

Response

API key usage details

Changes

No recorded changes to this operation across all 1 revision of this API.