Back to calculator
TechnologyGenerated accuracy model review: 2026-05-06

API Usage 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

  • Monthly cost = requests * price per request + requests * compute ms / 1,000,000 * compute price + data transfer GB * transfer price + fixed fee.

Test cases

Default input regression check

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

Inputs

  • Monthly Requests: 8,000,000
  • Price per Request: $0
  • Compute Duration: 120 ms/request
  • Compute Price: 0 $/1M ms
  • Data Transfer: 500 GB
  • Transfer Price: 0.08 $/GB
  • Fixed Monthly Fee: $20

Expected outputs

  • Monthly API Cost: $68.02
  • Request Cost: $8.00
  • Compute Cost: $0.02
  • Cost per 1,000 Requests: $0.01

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

  • Prices are flat and user-entered.
  • Free tiers, retries, caching, and minimums are not inferred.
  • API volumes are not transmitted.

Unit handling

  • Monthly Requests accepts numeric values.
  • Price per Request accepts values in $.
  • Compute Duration accepts values in ms/request.
  • Compute Price accepts values in $/1M ms.
  • Data Transfer accepts values in GB.
  • Transfer Price accepts values in $/GB.
  • Fixed Monthly Fee accepts values in $.
  • Monthly API Cost is displayed as currency.
  • Request Cost is displayed as currency.
  • Compute Cost is displayed as currency.
  • Cost per 1,000 Requests 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 api-usage-cost-calculator calculator definition.

Change log

2026-05-06

Published default regression test documentation and metadata fallbacks for API Usage 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