LLM API cost calculator

Client

Multiply token counts by your own per-million rates to plan spend. Use with token estimate when you need rough counts from pasted text first.

Token counts & rates

?

Enter your own price per 1M tokens (any currency unit you use). This is arithmetic only—not tied to any provider list or live pricing API.

Input cost
0.0036
Output cost
0.0060
Per request
0.0096
~30-day projection
14.40

Nearby workflows on Toolcore

  • LLM token estimateRough character-based token planning for prompts and context—CJK-aware heuristic, browser-only—not tokenizer-exact. when you want a second pass with AI-assisted explanation on Toolcore.
  • Messages JSON token breakdownPer-message rough token counts from OpenAI-style chat JSON—sum roles locally for API payload planning, not tokenizer-exact. when you want a second pass with AI-assisted explanation on Toolcore.
  • Context window fit checkSee if pasted text fits a 4K–1M token window with a rough CJK-aware heuristic—plan headroom before chat paste, browser-only. when you want a second pass with AI-assisted explanation on Toolcore.
  • LLM character budget from token capPlan max paste characters from a target token budget—same CJK-aware heuristic as token estimate, browser-only, not tokenizer-exact. when you want a second pass with AI-assisted explanation on Toolcore.

Common use cases

  • Compare input vs output pricing when drafting a feature that streams long answers.
  • Project monthly spend from average tokens per request and daily volume.
  • Pair with token estimate or messages JSON tools to fill in token counts first.

Common mistakes to avoid

  • Using list prices without your actual contract tier

    Enter the rates you pay—or conservative placeholders—not headline marketing numbers alone.

  • Forgetting cached-input or batch discounts

    This page does not model provider-specific discounts; adjust rates manually.

FAQ

Does this call a pricing API?

No. You type token counts and rates; all math runs locally.

Which currency is shown?

Whatever unit you use for the price fields—the tool does not convert currencies.

Related utilities you can open in another tab—mostly client-side.