OhMyGPT
Models

Get weekly model usage

GET
/v1/rankings/models/weekly

Each public model's share of the tokens served in each ISO week (Monday 00:00 UTC start) for a stacked "top models" chart, plus this week's leaderboard. The chart draws the 10 models with the most tokens over the window and folds every other public model into other_share. The leaderboard lists the 20 models with the most tokens this week so far, with their rank and share, each compared with last week over the same span (Monday 00:00 UTC up to as_of), so a week in progress is not mistaken for a decline. change_pct is null until both spans have at least 20 requests. Same scope as /v1/rankings/models. Refreshed about once an hour.

查询参数

weeks?integer

Number of weeks to chart, ending with the current week.

范围1 <= value <= 52
默认12

响应主体

Successful response

application/json
  1. response
as_of*string

When the numbers were computed; the current week and the leaderboard cover Monday 00:00 UTC up to this time.

格式date-time
data*array<>

One entry per ISO week, oldest first, ending with the current week (in progress). Weeks without traffic are included with every share 0.

leaderboard*array<>

Up to 20 models with the most tokens this week so far, sorted by rank.

weeks*integer

Number of weeks in data.

示例请求
curl -X GET 'https://api.ohmygpt.com/v1/rankings/models/weekly'
示例响应
{  "as_of": "2019-08-24T14:15:22Z",  "data": [    {      "models": [        {          "model": "string",          "share": 0        }      ],      "other_share": 0,      "week_start": "2019-08-24"    }  ],  "leaderboard": [    {      "change_pct": 0,      "model": "string",      "previous_rank": 1,      "previous_share": 0,      "rank": 1,      "share": 0    }  ],  "weeks": 0}