Download your Word document
AI API Usage Cost result sheet — free, supported by sponsors. Your download button appears in 20 seconds.
This free download is supported by sponsors — continuing in
20
Your file is generated in your browser when you choose Download — nothing is uploaded. If this calculator returns enough numeric data, the export also includes its best-fit chart alongside the readable table.
WorldCalculate result export
AI API Usage Cost — result sheet
Price an API workload from input/output token counts and per-million rates.
Inputs used
Results
Visual chart
Breakdown
Calculation steps
Returned data table
Formula and methodology
Formula: Cost = in/1e6 × inPrice + out/1e6 × outPrice.
Providers bill input and output tokens at different per-million rates. Cached, batch, or tiered pricing needs its effective rate entered manually.
This result follows the calculator's declared inputs, precision, validation boundaries, and model limits.
Input contract
- Input tokens — minimum 0; maximum 1000000000000
- Output tokens — minimum 0; maximum 1000000000000
- Input price per 1M — Copy the current rate from your provider; rates change often.; minimum 0; maximum 100000
- Output price per 1M — minimum 0; maximum 100000
Worked example
| Input | Value |
|---|---|
| Input tokens | 500000 |
| Output tokens | 100000 |
| Input price per 1M | 3 |
| Output price per 1M | 15 |
Total $3.00 ($1.50 input + $1.50 output).
Assumptions and limits
- Linear per-token pricing; no free tier, minimums, or volume discounts.
- One consistent currency.
- Check live provider pricing — defaults are illustrative.
Calculator note
Source and methodology
Use the official WorldCalculate methodology policy for the source, formula, precision, and boundary standards behind this calculator.
Planning estimate, not financial, medical, legal, or professional advice. © WorldCalculate — reuse with attribution. Built and curated by Hassan ALRowaie.
No saved result was found. Please run the calculation first, then choose Download again.