Free LLM Token Counter & API Cost Calculator

Paste any prompt, system instruction, or article below to estimate token count, context window usage, and monthly LLM API cost across n8n, Make.com, or custom AI agent workflows—100% private in your browser.

Est. Tokens
0
Words
0
Characters
0
8K Context Used
0%
Estimated Monthly API Spend (assuming output ≈ 50% of input tokens)
$0.00 / mo

How Token Counting & Monthly API Cost Estimation Work

Large language models do not bill by words—they bill by subword tokens. In standard English prose, 1 token averages roughly 4 characters (or about 0.75 words), while dense JSON payloads, code snippets, and non-English scripts consume more tokens per word. This calculator blends character-based and word-based heuristics to give you a fast, browser-side estimate of both prompt tokens and recurring monthly spend across automated workflows.

Worked Example: Budgeting an n8n or Make.com AI Workflow

Suppose you run an automated customer-support or content-enrichment agent in n8n 5,000 times per month, passing a 2,000-token system prompt + article payload and generating a 1,000-token response per run:

  • Monthly Input Volume: 2,000 tokens × 5,000 runs = 10 million input tokens.
  • Monthly Output Volume: 1,000 tokens × 5,000 runs = 5 million output tokens.
  • Cost Impact: At $0.50 / 1M input and $1.50 / 1M output, your monthly API bill is $5.00 + $7.50 = $12.50/month. Switching to a frontier model priced at $3.00 input / $15.00 output jumps the exact same workflow to $105.00/month.

To keep automation budgets predictable, pair this estimator with our n8n Cloud vs. Self-Hosted Pricing Guide or test whether a self-hosted Ollama model makes sense with our Local LLM VRAM Calculator.

Frequently Asked Questions

Why are output tokens more expensive than input tokens?

Input tokens are processed in parallel during the prefill phase, whereas output tokens must be generated sequentially one token at a time while reading the full KV cache from GPU memory. Because decoding is memory-bandwidth bound, providers typically price output tokens 3× to 5× higher than input tokens.

How can I cut LLM API token costs in automated agents?

Trim redundant JSON keys before passing payloads to the model, enable prompt caching for long static system instructions, and route classification or extraction steps to smaller fast models while reserving expensive reasoning models for final synthesis.

Is the text I paste sent to an external API?

No. Token and cost math runs 100% locally in your browser so you can safely test proprietary prompts, client copy, or internal JSON schemas.