Guides

AI Costs

What Is a Token? How to Calculate Your AI API Costs

Tokens are the billing unit of AI APIs. This guide explains input vs output tokens, per-million-token pricing, cache and batch discounts, and shows real numbers so you can estimate your monthly API bill — with a free calculator.

2026-12-01