InferIndex

v1.0.4
io.github.InferIndex/inferindex Checked 4 days ago Published 3 days ago

LLM API prices across 100+ providers: cheapest offer, comparisons, history and cost estimates.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_models Search models

Find the exact id of an LLM tracked by InferIndex from a name or partial name (e.g. 'deepseek', 'qwen3 max', 'claude opus'). Returns matching model ids and names, best match first.

ParameterTypeDescription
query *stringModel name or part of it

cheapest Cheapest offers for a model

Cheapest current API offers for one model across direct providers and aggregators, in USD per 1M tokens (input, output, blended 3:1). Stale prices, and flex/batch tiers, are excluded by default. Optional filters (context, tools, JSON, vision, region, no training on prompts, open sign-up) and usage (tokens per request, requests per day) to get an estimated cost per request and per month. Returns the winner in detail and one short line per following offer. A condition that is absent was not published by the provider, it never means "no"; a flag not listed in signals is false.

ParameterTypeDescription
model *stringModel id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure.
cached_rationumberShare of input tokens served from the provider's prompt cache (0 to 1)
detailstringcompact (default): the winner in detail and one short line per other offer (provider, prices, signals, training on prompts when published). full: every field of every offer (all published conditions,…
include_tiersstringAlso include lower-priority service tiers, comma-separated: flex, batch (hidden by default)
jsonbooleanOnly offers that support JSON output
limitintegerNumber of offers to return, winner included (default 5, max 25)
min_contextintegerMinimum context window in tokens
no_trainingbooleanOnly providers whose published terms say they do not train on your prompts
no_waitlistbooleanOnly providers with open sign-up (no waitlist, invitation or country restriction)
output_tokensintegerOutput tokens per request, for the estimated cost
prompt_tokensintegerInput tokens per request, for the estimated cost
regionstringOnly providers that process data in this region: eu, us, …
requests_per_dayintegerRequests per day, to also get an estimated monthly cost
strictbooleanExclude offers whose provider does not publish the filtered information (by default they are kept and flagged)
toolsbooleanOnly offers that support tool calling
visionbooleanOnly offers that accept image input

compare_providers Compare providers for a model

Current offers for one model, one line per provider and source (direct or via an aggregator), cheapest first (10 by default), with price, quantization, signals and training on prompts when published; the cheapest offer comes in detail. Pass detail: "full" for context, every published condition (data regions, sign-up) and reliability from official status pages on each offer.

ParameterTypeDescription
model *stringModel id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure.
cached_rationumberShare of input tokens served from the provider's prompt cache (0 to 1)
detailstringcompact (default): the winner in detail and one short line per other offer (provider, prices, signals, training on prompts when published). full: every field of every offer (all published conditions,…
include_tiersstringAlso include lower-priority service tiers, comma-separated: flex, batch (hidden by default)
limitintegerNumber of offers to return, cheapest included (default 10, max 50)
no_trainingbooleanOnly providers whose published terms say they do not train on your prompts
no_waitlistbooleanOnly providers with open sign-up (no waitlist, invitation or country restriction)
output_tokensintegerOutput tokens per request, for the estimated cost
prompt_tokensintegerInput tokens per request, for the estimated cost
regionstringOnly providers that process data in this region: eu, us, …
requests_per_dayintegerRequests per day, to also get an estimated monthly cost
sortstringSort order: default blended (3:1 mix), or estimated_cost (the cost of your load) when prompt_tokens or output_tokens is given; estimated_cost needs one of them
strictbooleanExclude offers whose provider does not publish the filtered information (by default they are kept and flagged)

price_history Price history of a model

Price history of one model: every offer tracked by InferIndex (daily or weekly min/max/last price in USD, or raw price changes), plus the official price of the model's lab over time. Give either days, or from/to (YYYY-MM-DD), or at (a date) for the prices in effect that day.

ParameterTypeDescription
model *stringModel id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure.
atstringA single date, YYYY-MM-DD: prices in effect that day
daysintegerNumber of days back from today (default 7)
fromstringStart date, YYYY-MM-DD (with to, instead of days)
granularitystringday (default), week, or raw price changes
limitintegerMaximum number of points (default 100, max 500)
providerstringOnly this provider
tostringEnd date, YYYY-MM-DD

estimate_cost Estimate the cost of a workload

Estimated cost of a workload on one model at each provider: cost per request, and per month if requests_per_day is given, taking the provider's tiered pricing and prompt-cache price into account. Offers sorted by estimated cost, cheapest first: the cheapest in detail, then one short line per offer with its estimated cost.

ParameterTypeDescription
model *stringModel id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure.
cached_rationumberShare of input tokens served from the provider's prompt cache (0 to 1)
detailstringcompact (default): the winner in detail and one short line per other offer (provider, prices, signals, training on prompts when published). full: every field of every offer (all published conditions,…
limitintegerNumber of offers to return, cheapest included (default 5, max 25)
output_tokensintegerOutput tokens per request, for the estimated cost
prompt_tokensintegerInput tokens per request, for the estimated cost
requests_per_dayintegerRequests per day, to also get an estimated monthly cost

provider_ranking Providers ranked by price gap

Providers ranked by how far below or above the market their prices are: each provider's median gap to the market, in percent (score_pct, negative when below the market), where the market of a model is the median blended 3:1 price of its providers, counted only on models with at least min_providers comparable providers (models_measured). Also the number of models where the provider holds the offer the cheapest tool would select (cheapest_count). Ranked from min_models models measured; refreshed every hour.

list_gpus GPU types tracked for rental prices

GPU types whose rental price InferIndex tracks (H100, A100, L40S…), with the lowest price per GPU per hour in USD for each tier (guaranteed, community, spot) and the number of GPUs of that configuration. Prices are per GPU per hour, as published by each provider, and dated. Tiers are different products and are never compared with each other.

gpu_rentals Rental offers for one GPU, by tier

Rental offers for one GPU type: provider, price in USD per GPU per hour, number of GPUs in the published configuration, billing and region when published. One block per tier (guaranteed, community, spot), each with its own cheapest offer, also given per configuration (cheapest_by_gpu_count: the price per GPU of a single GPU and of a multi-GPU node are not comparable); tiers are never compared with each other. guaranteed: capacity the provider presents as not interrupted; community: third-party hosts; spot: interruptible capacity. Prices are as published by the provider, and dated. Get the GPU…

ParameterTypeDescription
gpu *stringGPU id from list_gpus, for example h100-sxm-80gb
detailstringcompact (default): the 3 cheapest offers of each tier. full: up to 50 offers per tier
gpu_countintegerOnly this published configuration: 1, 2, 4, 8 or 16 GPUs
regionstringOnly this region, as published by the provider
tierstringOnly this tier (default: one block per tier)

self_host_or_api Self-host an open model or use the API?

Is it cheaper to host an open-weights model yourself on rented GPUs, or to use the cheapest API offer? Returns a one-sentence verdict (headline) and the numbers behind it: the break-even volume in million tokens per day, the throughput the whole configuration must deliver for self-hosting to cost less (required_tokens_per_second: compare it with what your setup does), the break-even utilization when a throughput is known, the GPU configuration and its hourly price, and what the verdict rests on (confidence). Without a volume you still get the verdict and the break-even volume. It is an estimat…

ParameterTypeDescription
model *stringModel id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure.
detailstringcompact (default): verdict, headline and key numbers. full: also the three throughput scenarios, the model and every assumption
gpustringImpose a GPU: id from list_gpus, for example h100-sxm-80gb
gpu_countintegerImpose a number of GPUs: 1, 2, 4, 8 or 16
output_tokensintegerOutput tokens per request
prompt_tokensintegerInput tokens per request
quantizationstringPrecision of the weights (default fp8); must be published by at least one provider unless fp16 or bf16
requests_per_dayintegerRequests per day (with prompt_tokens and output_tokens)
tierstringGPU rental tier (default guaranteed)
tokens_per_dayintegerYour volume in tokens per day (input and output together). Or give requests_per_day, prompt_tokens and output_tokens
tokens_per_secondnumberYour own measured throughput for the whole configuration, input and output tokens together, instead of our estimate
utilizationnumberAverage share of time the GPUs serve requests, in percent (default 50)
weights_marginintegerPercent of the GPU memory the model weights may fill (default 70; the rest is the engine reserve and the context cache)