$0.005
per call · USD Coin on Base
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
GET https://modelprices.xyz/llm/cheapest3
Calls / 30d
2
Unique payers / 30d
Aug 28
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://modelprices.xyz/llm/cheapest", {
method: "GET",
});
const data = await res.json();curl -X GET \
"https://modelprices.xyz/llm/cheapest?expected_input=2000&expected_output=500&limit=3&min_context=200000&vision=true" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"generated_at": "2026-07-14T02:00:00.000Z",
"match_count": 41,
"models": [
{
"cache_read_per_mtok": 0.3,
"confidence": "high",
"first_observed_at": "2026-07-12T18:00:00.000Z",
"id": "claude-sonnet-5",
"input_per_mtok": 3,
"output_per_mtok": 15,
"provider": "anthropic",
"source_url": "https://docs.claude.com/en/docs/about-claude/pricing",
"usd_per_request": 0.0135
}
],
"ranked_by": "usd_per_request"
}Payment details
0x63a20fa244d3e6a8902121e99704b7f857dc6ebbUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of AI & Inference and the homepage with a featured placement.
More from Modelprices & similar services
Modelprices · LLM Prices
modelprices.xyz
Compare AI model prices side-by-side: a live price leaderboard of LLM token cost for GPT-5, Claude 5, Claude Sonnet, Gemini 3 Pro, Llama 4, DeepSeek V4, Grok 4, Mistral Large and 2,000+ more models across 70+ providers (OpenAI, Anthropic, Google, Meta, xAI). Inference cost per token — input, output, cache and batch USD per 1M tokens — ranked, normalized into one table, cross-checked across two sources, refreshed hourly. Find the cheapest model and estimate token budgets.
Modelprices · LLM Limits
modelprices.xyz
AI model capability, specs and limits table for 2,000+ LLMs — GPT-5, GPT-4o, Claude 5, Claude Sonnet, Gemini 3 Pro, Llama 4, DeepSeek V4 and more: context window size, max output tokens, vision/audio/function-calling/reasoning support. Compare model constraints side-by-side across every provider to pick the right model for long-context, multimodal, or tool-use workloads. Refreshed hourly.
Modelprices · LLM Price Changes
modelprices.xyz
LLM price-change alert feed: track when OpenAI, Anthropic, Google or any AI provider reprices GPT, Claude, Gemini or any model's inference cost per token — old vs new price, percent delta, when it happened, plus newly launched and removed models. Structured JSON diffed from hourly snapshots; ideal for cost monitoring, repricing triggers, and AI market intelligence.