OpenAI GPT-4o 2024-08-06 Token Cost Calculator 128000 Context

Model: OpenAI: GPT-4o (2024-08-06), 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.

This calculator helps you estimate the cost of using the OpenAI GPT-4o model (released 2024-08-06) with a context window of 128,000 tokens. It breaks down the cost based on the number of input tokens, output tokens, and the number of requests made, with options to calculate in USD or EUR.

Pricing:

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

The formula used is:

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

Example:

If you use 1,000 input tokens and generate 500 output tokens in a single request, the cost would be:

Input Cost: (1,000 / 1,000,000) * $2.5 = $0.0025

Output Cost: (500 / 1,000,000) * $10 = $0.005

Total Cost: ($0.0025 + $0.005) * 1 = $0.0075