cheapest
Rank LLM API models by combined cost per 1M input and output tokens, then filter results by minimum context window and provider keyword.
Instructions
Return the cheapest models, ranked by cost of 1M input + 1M output tokens.
Args: min_context: Only models with at least this context window (tokens). keyword: Optional provider/keyword filter, e.g. "qwen". limit: How many models to return (default 10). include_free: Include $0 models (often rate-limited); default False.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cheapest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| keyword | No | ||
| min_context | No | ||
| include_free | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||