Cheapest-model query
Cheapest-model query: returns the lowest-cost AI models matching your constraints — min_context (tokens), vision/function_calling/reasoning (true), max_input_per_mtok (USD cap), limit (default 5). Add expected_input/expected_output token counts to rank by blended USD per request instead of input price; exclude_preview=true skips pre-release models. Answers 'what is the cheapest model that can do X?' across 2,000+ models and 70+ providers.
Asked 2.0x its listed price for its own exampleour last check, 2026-09-24
1 of 1checks answered this week
925 msmedian answer time
$0.005listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://modelprices.xyz/llm/cheapest
| Category | Market data |
|---|---|
| Provider host | modelprices.xyz |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.01 | 925 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"expected_input": 2000,
"expected_output": 500,
"limit": 3,
"min_context": 200000,
"vision": true
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"exclude_preview": {
"description": "Exclude preview/pre-release model versions",
"type": "boolean"
},
"expected_input": {
"description": "Expected input tokens per request \u2014 with expected_output, ranks by blended USD per request instead of input price",
"type": "number"
},
"expected_output": {
"description": "Expected output tokens per request",
"type": "number"
},
"function_calling": {
"type": "boolean"
},
"limit": {
"default": 5,
"maximum": 25,
"type": "integer"
},
"max_input_per_mtok": {
"description": "Max input price in USD per 1M tokens",
"type": "number"
},
"min_context": {
"description": "Minimum context window in tokens",
"type": "integer"
},
"reasoning": {
"type": "boolean"
},
"vision": {
"type": "boolean"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}