For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList available models
      • GETGet grouped models
      • GETList search-capable models
      • GETList configured search providers
      • GETList model configurations
      • POSTCreate model configuration
      • PUTUpdate model configuration
      • DELDelete model configuration
      • PATCHEnable or disable model configuration
      • PATCHSet default model configuration
      • GETGet model configuration usage
      • GETList distinct models in use
Dashboard
LogoLogo
Runtype APIModel Configs

Get model configuration usage

GET
/v1/model-configs/usage
GET
/v1/model-configs/usage
$curl https://api.runtype.com/v1/model-configs/usage \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "data": [
3 {
4 "provider": "openai",
5 "modelId": "gpt-4-turbo",
6 "usageCount": 152,
7 "lastUsedAt": "2024-06-10T16:45:30Z"
8 }
9 ],
10 "total": 1
11}

Get usage counters and last-used timestamps for the authenticated user’s model configurations.

Was this page helpful?
Previous

List distinct models in use

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Response

Model configuration usage statistics
datalist of objects
totalinteger

Errors

401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error