OpenAI GPT-4o 2024-11-20 Token Cost Calculator

Model: OpenAI: GPT-4o (2024-11-20), Context: 128000, Cost: $2.5 per 1M input tokens, $10 per 1M output tokens

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

Efficiently estimate the cost of using the OpenAI GPT-4o (2024-11-20) model for your AI applications. This calculator helps you understand expenses based on both input and output tokens, taking into account the model's extensive context window of 128,000 tokens.

Cost Structure:

  • Input Tokens: $2.5 per 1 million tokens
  • Output Tokens: $10 per 1 million tokens

Formula:

Total Cost = (Number of Input Tokens / 1,000,000 * Input Cost per Token) + (Number of Output Tokens / 1,000,000 * Output Cost per Token)

Example:

For 10,000 input tokens and 2,000 output tokens in a single request:

Input Cost = (10,000 / 1,000,000) * $2.5 = $0.025

Output Cost = (2,000 / 1,000,000) * $10 = $0.020

Total Cost = $0.025 + $0.020 = $0.045

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