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.

Endpointhttps://modelprices.xyz/llm/cheapest
TrustNot checked yet
PricingPay per call with x402, no account. Call it to get an exact quote before paying.
networkeip155:8453
schemeexact
pay to0x63a20fa244d3E6a8902121E99704b7F857dc6EBB
methodGET
last updated2026-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-SIGNATURE

This listing as JSON

curl https://aipaygen.com/v1/catalog/api/x402-80aa003f955cc3ed

Search the whole marketplace from your agent (MCP)

{
  "mcpServers": {
    "aipaygen": {
      "url": "https://aipaygen.com/mcp"
    }
  }
}

Related