Find Cheapest Models
tokencost_find_cheapestCompare and identify the most cost-effective LLM models by filtering providers, context window requirements, and sorting by input, output, or combined pricing.
Instructions
Find the cheapest LLM models, optionally filtered by provider or minimum context window.
Args:
provider (string, optional): Filter by provider (e.g., "OpenAI", "Anthropic", "Google")
min_context (number, optional): Minimum context window size in tokens
sort_by (string, optional): Sort by "input", "output", or "combined" cost (default: "combined")
limit (number, optional): Number of results to return (default: 10, max: 30)
Returns: Ranked list of cheapest models with pricing details.
Examples:
{} → Top 10 cheapest models overall
{ provider: "OpenAI" } → Cheapest OpenAI models
{ min_context: 200000, sort_by: "input" } → Cheapest 200K+ context models by input price
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Filter by provider name (e.g., 'OpenAI', 'Anthropic') | |
| min_context | No | Minimum context window size in tokens | |
| sort_by | No | Sort by input, output, or combined cost | combined |
| limit | No | Number of results to return |