Price on a date
price_onLook up the per-million-token input and output price for an AI model on a specific date, with cited source, to value past usage or track price changes.
Instructions
The input and output price per million tokens that was IN EFFECT on a given date (YYYY-MM-DD), with the source that proves it. This is the point-in-time lookup: use it to value past usage or to see how a price changed over time. covered=false means the date predates the model's recorded coverage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"date": "<date>"
},
"name": "price_on"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id or alias, e.g. "gpt-4". | |
| date | Yes | The date to price, as YYYY-MM-DD, e.g. "2024-01-01". | |
| provider | No | Optional provider slug to disambiguate a bare id. |