> ## Documentation Index
> Fetch the complete documentation index at: https://narev.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Find the cheapest provider for a model

> Search GET /v1/prices/search and pick the host with the lowest pricing.prompt for an exact `model_id`.

The same `model_id` often appears on multiple providers at different token rates. Sort search results to find the cheapest host today.

## Search hosts for the model

```bash theme={null}
curl -G 'https://api.narev.ai/v1/prices/search' \
  --data-urlencode 'q=gpt-4o'
```

## Filter to exact matches

Keep rows where `model_id` equals your target (for example `gpt-4o`). Ignore partial name matches.

## Pick the lowest prompt rate

Compare `pricing.prompt` across the filtered rows. The lowest value is the cheapest input host for that model in the current sync.

You can repeat the check on `pricing.completion` when output tokens dominate your bill.

## Price a request on that host

Once you pick `provider_id`, call [`POST /v1/traces/cost`](/docs/guides/calculate-request-cost) with your token counts to confirm the dollar total.

## Related guides

* [Search live model prices](/docs/guides/search-model-prices)
* [Compare cost between two models](/docs/guides/compare-two-models)
