Toggle between OpenAI, Anthropic, Google, xAI, Meta, DeepSeek and Moonshot AI (Kimi) — pick a model tier, enter your usage, and watch the cost update live. No signup, everything runs in your browser.
Same usage, side by side. Updates instantly as you type.
Every API call costs (input tokens ÷ 1M × input price) + (output tokens ÷ 1M × output price). Output tokens cost 3–6× more than input because generation is compute-heavy. The sneaky part for agents: retries and tool calls multiply the bill — a task that needs three attempts costs roughly 3× your single-call estimate, and each search or code-execution tool call adds its own token load on top. The calculator above models the clean call; size your budget for real-world failure rates.
Generating tokens costs providers more compute than reading them. Output rates run roughly 3–6× input rates across providers.
Route simple tasks to mini/flash-tier models, enable prompt caching for repeated system prompts, use batch APIs for non-urgent work (up to 50% off), and cap max output tokens aggressively.
It depends on the tier. Budget tiers (DeepSeek V4.1 Flash at $0.30 in / $1.20 out per 1M at peak, GPT-6 Luna, Gemini Flash-Lite) cost cents per million tokens; flagships (GPT-6 Astra, Claude Fable 5.1) cost 100× more. Toggle above with your real usage to see.
DeepSeek bills V4.1 Flash by time of day: $0.30 in / $1.20 out per 1M tokens at peak, and half that ($0.15 / $0.60) off-peak. Peak windows are weekday mornings UTC; nights and weekends run at the off-peak rate. The calculator uses the peak rate, so a batch job scheduled off-peak costs about half the estimate shown.
Meta gives Llama away as open weights and sells no API directly. To use Llama via API you pay a hosting provider — Together AI is one of the most popular, and its rates are what the Meta tab uses.
Take your single-call cost and divide by the task success rate — a task that succeeds 70% of the time costs roughly 1.4× one clean call. Then add the token cost of every tool call (search, code execution, database lookups), which often exceeds the LLM inference itself. Size for real-world failure rates, not the happy path.