# Cheapest providers for popular LLM models (sample)

**Use case:** 

Sample of up to 25 rows. Run the full scraper for more. The cheapest API provider for popular models such as Claude Sonnet 4.5, GPT-5 mini, Gemini and Llama, with input, output and blended price per 1M tokens, context window and tool calling. Use it to cut AI costs or to route an agent. Change the model list to match your stack.

## Input

```json
{
  "models": [
    "claude-sonnet-4-5",
    "gpt-5-mini",
    "gemini-2.5",
    "llama-3.3",
    "deepseek-chat"
  ],
  "onlyCheapestPerModel": true,
  "minContextTokens": 0,
  "requireToolCalling": false,
  "requireReasoning": false,
  "requireImageInput": false,
  "onlyOpenWeights": false,
  "includeFree": false,
  "sortBy": "cheapest",
  "maxResults": 25,
  "onlyChanges": false
}
```

## Output

```json
{
  "modelName": {
    "label": "Model",
    "format": "string"
  },
  "provider": {
    "label": "Provider",
    "format": "string"
  },
  "inputPricePer1M": {
    "label": "Input $/1M",
    "format": "number"
  },
  "outputPricePer1M": {
    "label": "Output $/1M",
    "format": "number"
  },
  "blendedPricePer1M": {
    "label": "Blended $/1M",
    "format": "number"
  },
  "isCheapestForModel": {
    "label": "Cheapest for model",
    "format": "boolean"
  },
  "providerCountForModel": {
    "label": "Providers for model",
    "format": "integer"
  },
  "contextTokens": {
    "label": "Context window",
    "format": "integer"
  },
  "toolCalling": {
    "label": "Tool calling",
    "format": "boolean"
  },
  "reasoning": {
    "label": "Reasoning",
    "format": "boolean"
  },
  "modelId": {
    "label": "Model ID",
    "format": "string"
  },
  "summaryText": {
    "label": "Summary (for AI)",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The LLM API Prices Scraper: Compare Cost per 1M Tokens Actor is ready to run with the inputs already set for "Cheapest providers for popular LLM models (sample)". [Sign up or log in](https://console.apify.com/create-task-from-example/yYR7UAFqQpQQz2gQh) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Cheapest providers for popular LLM models (sample)" task

The LLM API Prices Scraper: Compare Cost per 1M Tokens Actor will start running based on the input automatically. You can also change all the input fields, like models to find, only the cheapest provider per model, and more, to match your specific use case.

### 3. Receive the "Cheapest providers for popular LLM models (sample)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as model, provider, input $/1m, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Cheapest providers for popular LLM models (sample)" task via API](https://apify.com/hydrocore/llm-api-prices.md).

## About this Actor

This example demonstrates how to use [LLM API Prices Scraper: Compare Cost per 1M Tokens](https://apify.com/hydrocore/llm-api-prices.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/hydrocore/llm-api-prices.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/hydrocore/llm-api-prices.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
