Ai Model Pricing
Pricing
from $0.00005 / actor start
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
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 hours ago
Last modified
Categories
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
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
providers | Array of strings | No | ["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:
| Field | Type | Description |
|---|---|---|
provider | String | Provider name, e.g. "OpenAI" |
modelName | String | Human-readable model name, e.g. "gpt-4o" |
modelId | String | API identifier of the model, e.g. "gpt-4o-2024-08" |
inputPricePer1MTokens | Number | Cost in USD per 1 million input tokens, e.g. 5.00 |
outputPricePer1MTokens | Number | Cost in USD per 1 million output tokens, e.g. 15.00 |
contextWindow | String | Maximum context window size, e.g. "128k" |
lastScraped | String | ISO 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 dependenciesnpm install# Run the Actornpm 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
- Node.js 18+
- Apify SDK — Actor lifecycle, input/output handling
- Crawlee —
PlaywrightCrawlerfor JS-rendered pages - playwright-extra + stealth plugin — avoid bot detection