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.
Explore related tools
view all →
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 words | GPT-4 8K | GPT-4 32K | GPT-3.5 |
---|---|---|---|
1,000 | $0.0880 | $0.1760 | $0.0032 |
2,000 | $0.1760 | $0.3520 | $0.0064 |
5,000 | $0.4400 | $0.8800 | $0.0160 |
10,000 | $0.8800 | $1.7600 | $0.0320 |
20,000 | $1.7600 | $3.5200 | $0.0640 |
30,000 | $2.6400 | $5.2800 | $0.0960 |
40,000 | $3.5200 | $7.0400 | $0.1280 |
50,000 | $4.4000 | $8.8000 | $0.1600 |
60,000 | $5.2800 | $10.5600 | $0.1920 |
70,000 | $6.1600 | $12.3200 | $0.2240 |
80,000 | $7.0400 | $14.0800 | $0.2560 |
90,000 | $7.9200 | $15.8400 | $0.2880 |
100,000 | $8.8000 | $17.6000 | $0.3200 |
500,000 | $44.0000 | $88.0000 | $1.6000 |
1,000,000 | $88.0000 | $176.0000 | $3.2000 |
5,000,000 | $440.0000 | $880.0000 | $16.0000 |
10,000,000 | $880.0000 | $1760.0000 | $32.0000 |
100,000,000 | $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 and GPT-3.5 inside the spreadsheet itself.
- No 3rd party tools required
- No subscription required, and
- Works with a free Gmail account as well
🎉 Costs $10 (one time)
📣 This calculator is independently developed and not affiliated with, endorsed, or authorized by OpenAI.