OpenAI pricing calculator

Calculate how much it will cost to generate a certain number of words using OpenAI GPT-3.5 and GPT-4 APIs.

Generating words using costs

About the OpenAI price calculator

As OpenAI bills you based on the number of tokens sent in your prompt plus the number of tokens returned by the API, I have also included the prompt field in the above calculator. You can enter the prompt length per 1000 words generated by the API.

For GPT-4 (8K) and GPT-4 (32K) contexts, the prompt prices are $0.03/1k tokens and $0.06/1k tokens, respectively.

How does this OpenAI GPT price calculator work?

This calculator takes the information provided on the official OpenAI website to calculate the estimated price based on the number of words. The calculator assumes that 1000 tokens are about 750 words, as OpenAI recommends; but if you want to understand tokens better, you can look here.

Estimated cost for using the OpenAI API

A table that shows how much it will cost you to generate a certain number of words by using the OpenAI API. I have included estimations for GPT-4 and GPT-3.5 as well.

For all this, I am taking an assumption of a prompt length of 200 words per 1000 words generated by the API.

No. of wordsGPT-4 TurboGPT-4 8KGPT-4 32KGPT-3.5
1,000$0.0427$0.0880$0.1760$0.0032
2,000$0.0853$0.1760$0.3520$0.0064
5,000$0.2133$0.4400$0.8800$0.0160
10,000$0.4267$0.8800$1.7600$0.0320
20,000$0.8533$1.7600$3.5200$0.0640
30,000$1.2800$2.6400$5.2800$0.0960
40,000$1.7067$3.5200$7.0400$0.1280
50,000$2.1333$4.4000$8.8000$0.1600
60,000$2.5600$5.2800$10.5600$0.1920
70,000$2.9867$6.1600$12.3200$0.2240
80,000$3.4133$7.0400$14.0800$0.2560
90,000$3.8400$7.9200$15.8400$0.2880
100,000$4.2667$8.8000$17.6000$0.3200
500,000~$21.3333$44.0000$88.0000$1.6000
1,000,000$42.6667$88.0000$176.0000$3.2000
5,000,000$213.3333$440.0000$880.0000$16.0000
10,000,000~$426.6667$880.0000$1760.0000$32.0000
100,000,000$4266.6667$8800.0000$17600.0000$320.0000

Google Sheets + OpenAI API (Script)

A script to connect Google Sheets with the OpenAI API without third-party tools like Zapier or Make. This “script” allows instant access to responses from GPT-4, GPT-3.5, and DALL-E 3 inside the spreadsheet itself.

  • Generates text as well as images
  • No 3rd party tools required
  • No subscription required, and
  • Works with a free Gmail account as well

🎉 starts at $20 (one time)


📣 This calculator is independently developed and not affiliated with, endorsed, or authorized by OpenAI.