THE COST OF BUILDING WITH AI

AI API cost calculator

Estimate token spend and compare the same model on Tokely, OpenRouter and an official reference where available. Change input, output and cached tokens to match your workload.

THE SHORT ANSWER

Text API cost equals uncached input tokens × input rate, plus cached input tokens × cache-read rate, plus output tokens × output rate, divided by one million. The calculator below uses published USD rates and shows the reference dates.

Local estimate. No API requests or balance charges.

THE SAME TOKENS. THE SAME MODEL.

Tokely usage estimate
$10.919081
OpenRouter token reference
$22.5
Official token reference
$22.5
Tokely costs less by
$11.580919

Tokely text rates: 2026-10-09. OpenRouter reference: 2026-10-09. Official reference dates are shown in the dataset. Fees, taxes, context tiers and special units excluded.

OpenRouter source ↗

Official reference source ↗

How this is calculated · Model limits & API

Measure a representative request first

Use token counts from your application's actual response usage. Conversation history, system instructions and function definitions can increase input. Reasoning can increase output. Multiply a realistic request by your expected request count rather than estimating only from visible words.

Cached tokens are part of total input

The cached-input field is a subset of total input, not an additional token count. A quoted cache-read price does not guarantee your request will receive a cache hit. Tokely has no separate exact-response cache; supplier-reported prompt-cache usage is a different mechanism.

Questions before you switch

Does the calculator send an API request?

No. It calculates locally from published prices. Changing the model or token counts does not call a supplier or spend your balance.

Why can my final bill differ?

Actual usage, reasoning, cache eligibility, context tiers, special tool/media units, taxes and payment fees can differ from the selected estimate. Use the dashboard's recorded charges for actual spending.

Keep exploring

OpenRouter migration checklist · Billing documentation

START WITH YOUR OWN WORKLOAD

Know the price.
Then make the call.

Check the model, compare the rate, and connect with a Tokely key.

Read the quickstart ↗Explore all models →