OpenAI API pricing estimator

Just enter the number of words you want to generate by using the OpenAI API, and this simple tool with estimate how much it will cost you.

Generating words using costs


How does this tool work?

The calculator is easy to use and provides instant calculations to offer efficient planning of your project's cost while using the OpenAI API. And here's how this works:

  1. Select a Language Model: You start by choosing a language model that you plan to use. Our calculator supports various models of GPT-3 and GPT-4, each marked with their cost per 1k tokens.
  2. Number of Words to Generate: Next, you specify the total words you want to generate. You can manually enter the number in the provided field. Our calculator starts with a preset value of 10,000 words.
  3. Prompt Length: Then, you define the length of the prompt that generates 1k words. This field also starts with a preset value of 200 words.

As you fill out these fields or select a different model, the calculator automatically calculates and updates the estimated cost of your operation.

OpenAI pricing for different models

According to the information available on the official website, here are the pricing for outputs and prompts of different language models:

Model Input Output
GPT-4 Turbo 128k $0.01 / 1K tokens $0.03 / 1K tokens
GPT-4 Turbo Vision $0.01 / 1K tokens $0.03 / 1K tokens
GPT-4 8K $0.03 / 1K tokens $0.06 / 1K tokens
GPT-4 32K $0.06 / 1K tokens $0.12 / 1K tokens
GPT-3.5 4K $0.0015 / 1K tokens $0.002 / 1K tokens
GPT-3.5 16K $0.003 / 1K tokens $0.004 / 1K tokens