LLM token cost

The calculator uses the numbers you enter. With 12 M in, 4 M out, 3 price in, 15 price out the result is Estimated inference cost: $96.00. This is not an API bill.

This is not an API bill. API exposure is on API exposure.

Input data

Results

Enter data and click Calculate.

How it works

LLM token cost in this calculator is input and output tokens times their prices. With 12 M in, 4 M out, 3 price in, 15 price out the result is Estimated inference cost: $96.00.

cost = tin × pin + tout × pout. The formula uses tokens and inference.

Estimated inference cost: $96.00 is not an API bill. Another set of numbers gives Estimated inference cost: $23.00, and a further set gives Estimated inference cost: $440.00. Empty optional fields do not change the result.

API exposure answers a different question. Fairness gap does too. Here 12 M in, 4 M out, 3 price in, 15 price out leave Estimated inference cost: $96.00.

Type 12 M in, 4 M out, 3 price in, 15 price out and click Calculate. Two more ready sets sit under the form: Estimated inference cost: $23.00 and Estimated inference cost: $440.00.

Other numbers on the same labels move the result. The first example gives Estimated inference cost: $96.00.

Formula

cost = tin × pin + tout × pout.

How to use

  1. Type 12 M in, 4 M out, 3 price in, 15 price out.
  2. Leave optional fields empty if you do not want them in the result.
  3. Click Calculate. This set shows Estimated inference cost: $96.00.
  4. The second example under the result is Estimated inference cost: $23.00, the third Estimated inference cost: $440.00.
  5. This is not an API bill.

LLM token cost = Estimated inference cost: $96.00

With 12 M in, 4 M out, 3 price in, 15 price out the result is Estimated inference cost: $96.00. This is not an API bill.

LLM token cost
LLM token cost is this calculator's result. The first example is Estimated inference cost: $96.00.
tokens
The formula includes tokens. The second example gives Estimated inference cost: $23.00.
inference
The formula includes inference. The second example gives Estimated inference cost: $23.00.

Examples

Example 1

  • 12 M in
  • 4 M out
  • 3 price in
  • 15 price out

Estimated inference cost: $96.00

With 12 M in, 4 M out, 3 price in, 15 price out the result is Estimated inference cost: $96.00. This is not an API bill.

Example 2

  • 4 M in
  • 1.5 M out
  • 2 price in
  • 10 price out

Estimated inference cost: $23.00

With 4 M in, 1.5 M out, 2 price in, 10 price out the result is Estimated inference cost: $23.00.

Example 3

  • 40 M in
  • 12 M out
  • 5 price in
  • 20 price out

Estimated inference cost: $440.00

With 40 M in, 12 M out, 5 price in, 20 price out the result is Estimated inference cost: $440.00.

Related calculators

Common questions

What do you get from 12 M in, 4 M out, 3 price in, 15 price out?

Estimated inference cost: $96.00. This is not an API bill.

What about the second example?

Estimated inference cost: $23.00.

What about the third example?

Estimated inference cost: $440.00.

Is Estimated inference cost: $96.00 an API bill?

No. It is the result from the numbers you enter.

Do empty fields change Estimated inference cost: $96.00?

No. Empty optional fields do not change the result.

How is this different from API exposure?

That calculator answers another question. Here LLM token cost stays at Estimated inference cost: $96.00.

Does a comma in the number work?

Yes. A comma and a dot mean the same in a number field.

Why is there a currency in Estimated inference cost: $96.00?

The header label is usually USD. Another currency changes the label, not the amount.

Do 4 M in, 1.5 M out, 2 price in, 10 price out give Estimated inference cost: $23.00?

Yes. That is the second example under the form.

How is token cost calculated?

The calculator multiplies millions of input tokens by the input price per million and millions of output tokens by the output price per million, then adds both amounts. In the first example the result is Estimated inference cost: $96.00.

Is 2.5 equal to 2.5 tokens?

No. The token fields take millions. 2.5 means 2.5 million input tokens.

Is this an API bill?

No. The result is the sum of two products from the numbers you enter. The calculator does not fetch usage from a vendor.

Should the price be per 1000 tokens?

No. The formula wants the price per 1 million input tokens and per 1 million output tokens.

Knowledge sources

The terms come from EU acts. The calculator result is a sketch index, not a regulator decision.

Page updated in 2026.