Model: OpenAI: GPT-4o, 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.
OpenAI GPT-4o Token Cost Calculator Estimate
Estimate the cost of using OpenAI's GPT-4o model based on the number of input and output tokens.
Model Details:
- Model: OpenAI GPT-4o
- Context Window: 128,000 tokens
- Input Token Cost: $2.50 per 1 million tokens
- Output Token Cost: $10.00 per 1 million tokens
Formula:
Total Cost = (Number of Input Tokens / 1,000,000 * Input Token Cost) + (Number of Output Tokens / 1,000,000 * Output Token Cost)
Example:
If you use 50,000 input tokens and 10,000 output tokens in a single request:
- Input Cost = (50,000 / 1,000,000) * $2.50 = $0.125
- Output Cost = (10,000 / 1,000,000) * $10.00 = $0.10
- Total Cost = $0.125 + $0.10 = $0.225
Note: This calculation is an approximation. Actual costs may vary based on usage and OpenAI's pricing updates.