Marketplace · API · x402
modelprices.xyz/llm/cheapest
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.
| Endpoint | https://modelprices.xyz/llm/cheapest |
| Trust | Not checked yet |
| Pricing | Pay per call with x402, no account. Call it to get an exact quote before paying. |
| network | eip155:8453 |
| scheme | exact |
| pay to | 0x63a20fa244d3E6a8902121E99704b7F857dc6EBB |
| method | GET |
| last updated | 2026-11-05T13:01:04.108Z |
Use it
Call it (an x402 client pays automatically)
curl -i https://modelprices.xyz/llm/cheapest
# 402 reply -> sign PAYMENT-REQUIRED with an x402 client (e.g. @x402/fetch) -> retry with PAYMENT-SIGNATUREThis listing as JSON
curl https://aipaygen.com/v1/catalog/api/x402-80aa003f955cc3edSearch the whole marketplace from your agent (MCP)
{
"mcpServers": {
"aipaygen": {
"url": "https://aipaygen.com/mcp"
}
}
}