AI API Cost Calculator · LLM Token Price Comparison

Enter your usage to see per-request, daily and monthly cost, then compare every major model on the same workload to find the cheapest option.

🔒 100% in-browser 🚫 No API key needed 📤 No prompts or data uploaded 🌍 Global & Chinese models

1. Enter your usage

System prompt + context + question
Length of the model's reply
📝 Not sure about tokens? Paste a sample to estimate locally (nothing is uploaded)
Estimated tokens: — (roughly 1.3 tokens per English word; CJK chars count higher). Approximate only.
Chinese models are priced in CNY and converted at 1 USD = CNY (edit the rate at the top of the script).

2. Cost ()

—
Per request
—
Per day
—
Per month

3. Monthly cost on the same workload, by model

ModelInput / 1MOutput / 1MMonthly cost
Green = cheapest for your workload; bold = the model selected above. Reference prices, updated Oct 2026; always confirm on official pricing pages.
Where to run AI workloads & train models for lessSponsored
RunPod Cloud GPU
On-demand GPUs and serverless inference
See pricing
Vast.ai GPU Marketplace
Aggregated marketplace, often lower hourly rates
See pricing
Cursor · AI Coding
Popular AI coding subscription for developers
Learn more
These are third-party sponsored links; pricing and offers are controlled by each provider. This calculator provides estimates only and does not endorse any service.

Frequently asked questions

Does this upload my prompts or API key?

No. It never asks for or stores an API key, and every calculation runs locally in your browser with JavaScript. Your text is never sent to a server.

How is AI API cost calculated?

Providers bill by tokens, usually with separate input and output rates: cost = (input tokens × input price + output tokens × output price) ÷ 1,000,000 × number of requests.

Why do model prices differ so much?

Frontier reasoning models (GPT-5, Claude Opus) are pricey but most capable; lightweight “Flash/Mini” models can cost a fraction and suit high-volume, simple tasks. Compare on your own real workload.

Are these prices exact?

They are curated reference prices (updated Oct 2026). Providers change them often, and some Chinese models vary by peak/off-peak hours. For production budgets, check the official pricing pages of OpenAI, Anthropic, Google, xAI, DeepSeek, Alibaba, Volcengine, Moonshot and Zhipu.

Estimates and information only; not procurement or investment advice. Model names and trademarks belong to their respective owners. All processing is local and nothing is retained after refresh.