OpenAI GPT-4o Cost Calculator 2024-05-13 Input Output Tokens

Model: OpenAI: GPT-4o (2024-05-13), Context: 128000, Cost: $5 per 1M input tokens, $15 per 1M output tokens

Note: Calculation is approximate based on public data. Prices may change, check official websites.

Calculate the cost of using OpenAI's GPT-4o model with the latest pricing for May 13, 2024. This calculator helps estimate expenses based on the number of input and output tokens used.

Model: OpenAI GPT-4o (2024-05-13)

Context Window: 128,000 tokens

Pricing:

  • Input Tokens: $5 per 1 million tokens
  • Output Tokens: $15 per 1 million tokens

Formula:

Total Cost = (Input Tokens / 1,000,000) * $5 + (Output Tokens / 1,000,000) * $15

Example:

If you use 50,000 input tokens and 20,000 output tokens in a single request:

Cost = (50,000 / 1,000,000) * $5 + (20,000 / 1,000,000) * $15

Cost = 0.05 * $5 + 0.02 * $15

Cost = $0.25 + $0.30 = $0.55