Token Counter
Count LLM tokens with gpt-tokenizer (cl100k_base).
Estimate API cost from input/output tokens (static pricing table).
Estimate API cost from a static illustrative USD-per-1M-token table. Not a billing quote.
model: OpenAI GPT-4o inputCostUsd: 2.500000 outputCostUsd: 5.000000 totalCostUsd: 7.500000
⚠️ Static illustrative rates only. Does not include provider discounts, caching, or live list prices.
Yes.
Illustrative static rates — confirm with the provider.
No.