OpenAI GPT API Pricing Calculator

Wondering about how the OpenAI GPT and other AI model pricing works? Here's a pricing calculator for OpenAI GPT API, Azure OpenAI APIs, Anthropic Claude API.

An execution includes both the prompt sent and the response.
Language: English

The language defines the way the words are divided into tokens, and therefore has an impact on the price.

English: 1 word ≈ 1.3 tokens
Spanish: 1 word ≈ 2 tokens
French: 1 word ≈ 2 tokens

Tokens per executionWords per executionPrice for 1 execution

This model has a different rate for prompt and completion. This price is computed with prompt tokens = completion tokens.

OpenAI price forexecutions

This model has a different rate for prompt and completion. This price is computed with prompt tokens = completion tokens.

108~$0.00001~$0.10
2015~$0.00002~$0.20
5038~$0.00005~$0.50
10075~$0.00010~$1.00
200150~$0.00020~$2.00
500375~$0.00050~$5.00
1000750~$0.00100~$10.00
20001500~$0.00200~$20.00
40003000~$0.00400~$40.00

FAQ about OpenAI GPT API

What is an OpenAI token?

A token is a part of a text that can be word, subword, punctuation mark or symbol. It is the unit of account of OpenAI APIs. Read our guide on tokens here.

What is an OpenAI execution?

An OpenAI execution is the combination of the invite to OpenAI and the response from OpenAI.
All text in the prompt and response count for OpenAI billing.

What is an OpenAI prompt?

The OpenAI prompt is the instructions or question you send to OpenAI in order to get a response. It is text written in normal, natural language, for example:
Prompt: "Write a tagline for an ice cream shop".

What is an OpenAI response?

This is the response OpenAI gives you to the prompt you sent, for example:
Prompt: "Write a tagline for an ice cream shop"
Response: “We serve up smiles with every scoop!”

Can I set an OpenAI billing limit?

You can configure a billing limit in the OpenAI billing settings, in order to control your costs.

How to monitor my OpenAI API cost based on usage?

You can review your usage in the OpenAI dashboard usage section.
You can easily set a spending limit in the OpenAI dashboard billing section.