Ai Model Pricing avatar

Ai Model Pricing

Pricing

from $0.00005 / actor start

Go to Apify Store
Ai Model Pricing

Ai Model Pricing

Scrape live AI model pricing from OpenAI, Anthropic, Google Gemini and Mistral in one run. Input and output price per 1M tokens, context window size and more. Perfect for cost tracking and n8n workflows.

Pricing

from $0.00005 / actor start

Rating

0.0

(0)

Developer

Moritz Knopp

Moritz Knopp

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 hours ago

Last modified

Share

AI Model Pricing Scraper

This Apify Actor scrapes live AI model pricing from the official websites of OpenAI, Anthropic, Google Gemini, and Mistral — all in a single run. It returns structured data including input and output price per 1 million tokens, context window size, and a timestamp, so you always have up-to-date pricing without manually checking four different websites.


Input Parameters

FieldTypeRequiredDefaultDescription
providersArray of stringsNo["openai", "anthropic", "gemini", "mistral"]Which providers to scrape. Omit this field to scrape all four providers.

Accepted values for providers: "openai", "anthropic", "gemini", "mistral"


Output Fields

Each item pushed to the dataset represents one AI model and contains:

FieldTypeDescription
providerStringProvider name, e.g. "OpenAI"
modelNameStringHuman-readable model name, e.g. "gpt-4o"
modelIdStringAPI identifier of the model, e.g. "gpt-4o-2024-08"
inputPricePer1MTokensNumberCost in USD per 1 million input tokens, e.g. 5.00
outputPricePer1MTokensNumberCost in USD per 1 million output tokens, e.g. 15.00
contextWindowStringMaximum context window size, e.g. "128k"
lastScrapedStringISO 8601 timestamp of when the data was collected

Example Input

{
"providers": ["openai", "anthropic"]
}

To scrape all four providers, send an empty input or omit the field entirely:

{}

Example Output

[
{
"provider": "OpenAI",
"modelName": "gpt-4o",
"modelId": "gpt-4o-2024-08",
"inputPricePer1MTokens": 5.00,
"outputPricePer1MTokens": 15.00,
"contextWindow": "128k",
"lastScraped": "2026-05-10T12:00:00.000Z"
},
{
"provider": "Anthropic",
"modelName": "claude-3-5-sonnet-20241022",
"modelId": "claude-3-5-sonnet-20241022",
"inputPricePer1MTokens": 3.00,
"outputPricePer1MTokens": 15.00,
"contextWindow": "200k",
"lastScraped": "2026-05-10T12:01:34.000Z"
},
{
"provider": "Google Gemini",
"modelName": "gemini-1.5-pro",
"modelId": "gemini-1.5-pro",
"inputPricePer1MTokens": 3.50,
"outputPricePer1MTokens": 10.50,
"contextWindow": "1M",
"lastScraped": "2026-05-10T12:02:58.000Z"
}
]

Use Case Ideas

  • Cost optimisation — Compare prices across providers and programmatically pick the cheapest model that meets your quality threshold.
  • Price alerts — Schedule this Actor to run daily and trigger a notification (via Make, n8n, or Zapier) whenever a price changes.
  • AI budget tracking — Feed pricing data into a spreadsheet or dashboard to forecast monthly LLM spend based on token usage.
  • Competitive analysis — Track how providers adjust prices over time and spot market trends.
  • Automation integrations — Connect the dataset to n8n, Make, or Zapier to automatically update internal pricing tables, Notion databases, or Slack channels whenever new data is scraped.

Running Locally

# Install dependencies
npm install
# Run the Actor
npm start

Set your APIFY_TOKEN environment variable if you want data pushed to the Apify cloud dataset. Without it the Actor writes data locally to ./storage/datasets/default/.


Tech Stack