API reference · Public
Price and latency history for one model
GET/api/planet/historyNo key
Every observation of the model's published price, and its measured latency per UTC day over the last 30 completed days, with the minimum sample rule applied. Limited to 60 reads a minute per client address and cacheable at the edge for ten minutes.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (query)required | string | A catalog model id. At most 200 characters. |
Answer 200
The two series.
| Field | Type | What it is |
|---|---|---|
| modelrequired | string | |
| pricerequired | object | |
| price. | "USD per 1M tokens" | |
| price. | array of object | Oldest first. A row is written only when one of the four published rates changed, so a steady price is one row. The first is the first time this deployment saw the model priced; nothing before it is backfilled. |
| price. | string | |
| price. | number or null | USD per 1M tokens; null where unpublished. |
| price. | number or null | USD per 1M tokens; null where unpublished. |
| price. | number or null | USD per 1M tokens; null where unpublished. |
| price. | number or null | USD per 1M tokens; null where unpublished. |
| latencyrequired | object | |
| latency. | integer | The window, 30 completed UTC days. |
| latency. | integer | Samples a day needs before any figure is given (5). |
| latency. | array of object | One entry per UTC day, oldest first, ending yesterday. Samples are organic requests that reached an upstream (a 4xx or a caller hanging up is not a sample, a 5xx is a failed one) and the scheduled latency probe. |
| latency. | string | |
| latency. | integer | |
| latency. | boolean | False below minSamples; every figure is then null. |
| latency. | number or null | 0 to 1. |
| latency. | integer or null | Median time to first token over successful samples. |
| latency. | integer or null | Median time to the whole answer over successful samples. |
Errors
- 400OpenAI shaped error.
- 404OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.