InferIndex
v1.0.4LLM 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Model 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure. |
cached_ratio | number | Share of input tokens served from the provider's prompt cache (0 to 1) |
detail | string | compact (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_tiers | string | Also include lower-priority service tiers, comma-separated: flex, batch (hidden by default) |
json | boolean | Only offers that support JSON output |
limit | integer | Number of offers to return, winner included (default 5, max 25) |
min_context | integer | Minimum context window in tokens |
no_training | boolean | Only providers whose published terms say they do not train on your prompts |
no_waitlist | boolean | Only providers with open sign-up (no waitlist, invitation or country restriction) |
output_tokens | integer | Output tokens per request, for the estimated cost |
prompt_tokens | integer | Input tokens per request, for the estimated cost |
region | string | Only providers that process data in this region: eu, us, … |
requests_per_day | integer | Requests per day, to also get an estimated monthly cost |
strict | boolean | Exclude offers whose provider does not publish the filtered information (by default they are kept and flagged) |
tools | boolean | Only offers that support tool calling |
vision | boolean | Only 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure. |
cached_ratio | number | Share of input tokens served from the provider's prompt cache (0 to 1) |
detail | string | compact (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_tiers | string | Also include lower-priority service tiers, comma-separated: flex, batch (hidden by default) |
limit | integer | Number of offers to return, cheapest included (default 10, max 50) |
no_training | boolean | Only providers whose published terms say they do not train on your prompts |
no_waitlist | boolean | Only providers with open sign-up (no waitlist, invitation or country restriction) |
output_tokens | integer | Output tokens per request, for the estimated cost |
prompt_tokens | integer | Input tokens per request, for the estimated cost |
region | string | Only providers that process data in this region: eu, us, … |
requests_per_day | integer | Requests per day, to also get an estimated monthly cost |
sort | string | Sort 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 |
strict | boolean | Exclude 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure. |
at | string | A single date, YYYY-MM-DD: prices in effect that day |
days | integer | Number of days back from today (default 7) |
from | string | Start date, YYYY-MM-DD (with to, instead of days) |
granularity | string | day (default), week, or raw price changes |
limit | integer | Maximum number of points (default 100, max 500) |
provider | string | Only this provider |
to | string | End 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure. |
cached_ratio | number | Share of input tokens served from the provider's prompt cache (0 to 1) |
detail | string | compact (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,… |
limit | integer | Number of offers to return, cheapest included (default 5, max 25) |
output_tokens | integer | Output tokens per request, for the estimated cost |
prompt_tokens | integer | Input tokens per request, for the estimated cost |
requests_per_day | integer | Requests 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…
| Parameter | Type | Description |
|---|---|---|
gpu * | string | GPU id from list_gpus, for example h100-sxm-80gb |
detail | string | compact (default): the 3 cheapest offers of each tier. full: up to 50 offers per tier |
gpu_count | integer | Only this published configuration: 1, 2, 4, 8 or 16 GPUs |
region | string | Only this region, as published by the provider |
tier | string | Only 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…
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id or name, e.g. 'deepseek-v3.2', 'deepseek/deepseek-v4-pro', 'gpt-5.6-luna'. Use search_models when unsure. |
detail | string | compact (default): verdict, headline and key numbers. full: also the three throughput scenarios, the model and every assumption |
gpu | string | Impose a GPU: id from list_gpus, for example h100-sxm-80gb |
gpu_count | integer | Impose a number of GPUs: 1, 2, 4, 8 or 16 |
output_tokens | integer | Output tokens per request |
prompt_tokens | integer | Input tokens per request |
quantization | string | Precision of the weights (default fp8); must be published by at least one provider unless fp16 or bf16 |
requests_per_day | integer | Requests per day (with prompt_tokens and output_tokens) |
tier | string | GPU rental tier (default guaranteed) |
tokens_per_day | integer | Your volume in tokens per day (input and output together). Or give requests_per_day, prompt_tokens and output_tokens |
tokens_per_second | number | Your own measured throughput for the whole configuration, input and output tokens together, instead of our estimate |
utilization | number | Average share of time the GPUs serve requests, in percent (default 50) |
weights_margin | integer | Percent of the GPU memory the model weights may fill (default 70; the rest is the engine reserve and the context cache) |