Skip to content

Instantly share code, notes, and snippets.

@lambdaofgod
Last active March 2, 2023 09:45
Show Gist options
  • Select an option

  • Save lambdaofgod/20a85432a1a29c63b527dc81c02cf6d8 to your computer and use it in GitHub Desktop.

Select an option

Save lambdaofgod/20a85432a1a29c63b527dc81c02cf6d8 to your computer and use it in GitHub Desktop.
ChatGPT API monthly cost estimate

chatgpt_experiment

ChatGPT API monthly cost estimate

Assume using ChatGPT 30 days a month, with 100 queries per day.

Mean tokens per query is upper limit (we estimated it using a bunch of queries), in practice this would be lower, especially because it can be bounded by asking ChatGPT to only answer with fixed number of sentences

api_cost_per_token = 2e-6
mean_tokens_per_query = 500
n_queries_per_day = 100
n_days_in_month = 30

n_days_in_month * n_queries_per_day * mean_tokens_per_query * api_cost_per_token

3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment