Back to calculator
AI & AutomationGenerated accuracy model review: 2026-05-06

LLM Token Cost Calculator accuracy and testing

This page documents how Calwarden builds trust for this calculator: source notes, regression-style default tests, limitations, assumptions, unit handling, rounding, and visible change history.

Formula source

  • The calculator prices one request by multiplying input tokens by the input price per million tokens and output tokens by the output price per million tokens. It then multiplies that per-request cost by the request counts you provide.

Test cases

Default input regression check

Generated from the checked-in default inputs and calculate function.

Inputs

  • Model Pricing Preset: OpenAI GPT-5.4 mini
  • Input Tokens: 1,000 tokens
  • Output Tokens: 500 tokens
  • Custom Input Price: 0.75 $/1M tokens
  • Custom Output Price: 4.5 $/1M tokens
  • Requests: 1,000 requests
  • Monthly Requests: 50,000 requests/month

Expected outputs

  • Cost Per Request: $0.00
  • Input Cost: $0.00
  • Output Cost: $0.00
  • Batch Cost: $3.00
  • Monthly Cost: $150.00

Known limitations

  • This page documents the checked-in calculator logic and does not certify results for every real-world edge case.
  • Use the result as a planning estimate unless the calculator page states a stricter purpose.

Assumptions

  • Preset prices are checked-in snapshots and can become stale.
  • Custom prices are entered per one million tokens.
  • Each request uses the same average input and output token counts.
  • The estimate does not include storage, vector search, moderation, retries, taxes, or minimum fees.
  • All calculations run locally in the browser.

Unit handling

  • Model Pricing Preset accepts one of the configured options.
  • Input Tokens accepts values in tokens.
  • Output Tokens accepts values in tokens.
  • Custom Input Price accepts values in $/1M tokens.
  • Custom Output Price accepts values in $/1M tokens.
  • Requests accepts values in requests.
  • Monthly Requests accepts values in requests/month.
  • Cost Per Request is displayed as currency.
  • Input Cost is displayed as currency.
  • Output Cost is displayed as currency.
  • Batch Cost is displayed as currency.
  • Monthly Cost is displayed as currency.

Rounding rules

  • Number displays use up to 2 decimal places in the calculator UI.
  • Currency outputs are displayed with standard US dollar formatting.
  • Input precision follows configured step values where provided.

Version history

1.0.0 - 2026-05-06

Generated accuracy and testing page from the current llm-token-cost-calculator calculator definition.

Change log

2026-05-06

Published default regression test documentation and metadata fallbacks for LLM Token Cost Calculator.

Calculator transparency

Accuracy pages are generated from checked-in calculator definitions and can be upgraded with curated review metadata over time.

Use calculator