Models

Rank qualifying offers by effective workload cost

Rank current chat offers for up to five canonical model slugs with the website calculator: context-tier prices, cache reads/writes, retries, supported batch rates, capability/benchmark requirements, provider/route preferences, and evidence filters. Input totals include cache shares; cache_hit_percent plus cache_write_percent must be <=100. Average request sizes determine tiers and capacity. Batch is Anthropic direct only. Unknown required evidence excludes offers; missing cache-read rates use standard input rates. Inspect costs, qualification, warnings, assumptions, excludedModels, and pagination.hasMore. Free quotas, non-token fees, and media token accounting are excluded.

get/api/v1/offers/compare

Request

  • Base URL: https://cheapestllmapi.com
  • URL: https://cheapestllmapi.com/api/v1/offers/compare
  • Auth: none required

Query parameters

model_slugsstring[] required
provider_slugsstring[]
input_tokensinteger
output_tokensinteger
average_input_tokensinteger
average_output_tokensinteger
cache_hit_percentnumber
cache_write_percentnumber
retry_percentnumber
execution'standard' | 'batch'

Batch supports Anthropic direct routes with a published 50% token discount; unsupported routes are excluded.

task'chat' | 'coding' | 'extraction' | 'custom'

Coding requires the code capability; extraction requires structured output. Every offer must support chat.

benchmark_id'livebench' | 'aa-intelligence' | 'aa-coding' | 'aa-agentic' | 'swe-bench-verified-epoch-2-0-2' | 'terminal-bench-2-1-terminus-2' | 'terminal-bench-2-1-claude-code' | 'terminal-bench-2-1-codex' | 'gpqa-diamond' | 'otis-mock-aime-2024-2025' | 'livebench-coding' | 'livebench-agentic-coding' | 'livebench-reasoning' | 'livebench-math'
minimum_scorenumber

Zero disables score qualification; a positive threshold excludes missing exact benchmark matches.

required_capabilitiesstring[]
minimum_context_tokensinteger
open_weightsboolean
route_type'all' | 'official' | 'cloud' | 'gateway' | 'unverified'
require_official_pricesboolean

Require official paired input/output price verification. Cache rates may have different source provenance.

require_known_hostboolean

Exclude routes without a named underlying inference provider.

offsetinteger
limitinteger

Response

Offers in ascending workload cost, including source provenance

assumptionsstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.