get_model_history
Retrieve historical price trends for any AI model over time, enabling cost analysis and trend monitoring. Access past input, output, and blended pricing per million tokens.
Instructions
Get HISTORICAL price data / trends for one model.
This is InferenceIndexer's differentiator: aggregators like OpenRouter expose only current price; this returns the price over time (input, output, blended $/M), enabling trend analysis.
Args: model_id: Canonical model id, e.g. 'openai/gpt-5.6'. days: History window in days (1-365, default 30; plan-dependent). Returns: historical price series for the model.
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_id": "<model_id>"
},
"name": "get_model_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| model_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||