Beeija
← Back to Tools

AI Cost Calculators

OpenAI API Cost Calculator

Estimate OpenAI API costs using requests, input tokens, cached input, output tokens, and current or custom model prices.

Enter Your OpenAI API Usage

Use average values for one request, then enter the expected number of requests in a month.

Price used per 1 million tokens

Input:$0.75

Cached:$0.075

Output:$4.50

Estimated OpenAI API Cost

This estimate covers text token charges only.

Estimated monthly cost

$98.25

Per request

$0.001965

Per day

$3.275

Per year

$1,179.00

Uncached input cost

40,000,000 tokens

$30.00

Cached input cost

10,000,000 tokens

$0.75

Output cost

15,000,000 tokens

$67.50

Requests: 50,000

Total input tokens: 50,000,000

Total output tokens: 15,000,000

* Important: Built-in rates checked June 19, 2026. Final charges may include other OpenAI services, taxes, discounts, retries, or usage not entered here.

OpenAI API costs can change with the model, prompt size, answer length, number of requests, and cached input use. This calculator brings those values together so you can test a small launch, a normal month, and a higher-usage case before you build.

How the OpenAI API Cost Calculator Works

Choose a model, enter the number of API requests, and add the average input and output tokens used by each request. You can also enter the share of input tokens that may use cached pricing.

The calculator estimates uncached input cost, cached input cost, and output cost separately. It then shows the total cost per request, per day, and per month.

The built-in rates are planning defaults. You can turn on custom pricing and replace them with the latest official rates or your own agreed price.

What to Enter for a Useful Estimate

Start with the average request, not the smallest possible request. Include the system message, prompt, chat history, retrieved text, and tool instructions in the input-token estimate.

For output, use the average answer length you expect in real use. A support chatbot, coding assistant, report generator, and short classification task can have very different output sizes.

It is useful to calculate at least three cases: a small launch, a normal month, and a busy month. This shows how quickly the cost may change as users and requests grow.

Common Ways to Use This Calculator

  • Estimate the monthly cost of an AI chatbot or assistant.
  • Compare GPT models using the same token workload.
  • Test how longer prompts or answers may change the bill.
  • Estimate cost per user, request, day, and month.
  • Check the possible saving from cached input or Batch API use.
  • Prepare an early AI budget before development begins.

Simple OpenAI API Cost Example

Imagine an AI feature that receives 50,000 requests per month. Each request uses about 1,000 input tokens and 300 output tokens. If 20% of the input can use cached pricing, enter those values and choose the model you want to test.

The result will show the separate input, cached input, and output costs. You can then choose another model without changing the workload to compare the price more fairly.

Pricing and Estimate Notes

Built-in model prices were checked against the official OpenAI API pricing page on June 19, 2026. OpenAI may change models, prices, billing rules, or service tiers at any time.

Batch API pricing is shown as an estimated 50% reduction on token charges. Other services such as web search, images, audio, containers, storage, and third-party infrastructure are not included in the token estimate.

Always check the official OpenAI API pricing page before making a final budget or purchase decision.

Frequently Asked Questions

How is OpenAI API cost calculated?

The calculator multiplies your total input, cached input, and output tokens by the selected model rates. It then adds the three amounts to show the estimated cost per request, day, and month.

What is the difference between input and output tokens?

Input tokens are the prompt, system message, chat history, and other text sent to the model. Output tokens are the text returned by the model. The two token types may have different prices.

What are cached input tokens?

Cached input tokens are repeated input tokens that qualify for a lower cached-input rate. The real amount depends on your API setup and whether the provider accepts the input for caching.

Does ChatGPT Plus include OpenAI API usage?

No. ChatGPT plans and OpenAI API usage are billed separately. This calculator is for API usage, not a ChatGPT subscription.

Are the calculator results exact?

No. The results are planning estimates. Your final bill may change because of price updates, retries, tool calls, images, audio, web search, storage, taxes, discounts, or other paid services.

Can I enter my own OpenAI prices?

Yes. Turn on custom pricing and enter your own input, cached input, and output rates. This is useful when prices change or when you have a special rate.

Explore Related AI Cost Tools