AI planning / CLEARBYTE

AI Token Cost Calculator

Token cost equals input tokens × input rate ÷ one million plus output tokens × output rate ÷ one million. Enter the rates for your actual provider and processing tier.

Isolated tool · network access blocked

Formula & method

Total = input tokens × input price / 1,000,000 + output tokens × output price / 1,000,000.

Worked example

InputValue
Billable input tokens2,000
Billable output tokens500
Input rate per million tokens3 ¤
Output rate per million tokens9 ¤
Result
ResultValue
Input token cost0.006 ¤
Output token cost0.0045 ¤
Combined token cost0.0105 ¤

Compare scenarios

The first input changes while the other example inputs stay fixed. These are arithmetic scenarios, not forecasts.

Compare scenariosBillable input tokens Input token costOutput token costCombined token cost
−20%1,6000.0048 ¤0.0045 ¤0.0093 ¤
Example2,0000.006 ¤0.0045 ¤0.0105 ¤
+20%2,4000.0072 ¤0.0045 ¤0.0117 ¤

Assumptions & limits

Example rates are arbitrary inputs, not current prices for any model. Check whether reasoning, cache reads, cache writes, image/audio tokens, tools, regional processing or tier changes are billed separately. Use recorded billable usage when available.

Displayed results are rounded. Calculations use unrounded JavaScript numbers; small floating-point differences are possible.

Works in your browser

The interactive tool runs in a sandbox with network access blocked. ClearByte and the advertising scripts cannot read values inside it. Browser extensions and a compromised device remain outside this protection.

Sources & definitions

Method checked:

Keep learning

Continue with a related task