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.
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
AI API pricing. Know what you pay. ↗
Published Tokely rates for text, images, video and audio. Pay from one USD balance, compare exact models and estimate your workload before you switch.
A cost-focused OpenRouter alternative ↗
Compare exact-model rates, supported endpoints and migration requirements before moving to Tokely. One balance for supported text, image, video and audio models.
AI API price index ↗
An exportable first-party dataset of enabled Tokely models, exact-model OpenRouter token references and supported media variants. Sources, units and dates are included.
START WITH YOUR OWN WORKLOAD
Know the price.
Then make the call.
Check the model, compare the rate, and connect with a Tokely key.