OpenAI GPT-4.1 Cost Calculator Input Output Tokens and Requests

Model: OpenAI: GPT-4.1, Context: 1047576, Cost: $2 per 1M input tokens, $8 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-4.1 model based on the number of input and output tokens, and the number of requests.

The pricing for GPT-4.1 is:

  • Input Tokens: $2 per 1 million tokens ($0.000002 per token)
  • Output Tokens: $8 per 1 million tokens ($0.000008 per token)

The model has a context window of 1,047,576 tokens.

Formula:

Total Cost = (Number of Input Tokens * Cost per Input Token * Number of Requests) + (Number of Output Tokens * Cost per Output Token * Number of Requests)

Example:

If you use 10,000 input tokens, 5,000 output tokens, and make 3 requests:

Input Cost = (10,000 tokens * $0.000002/token * 3 requests) = $0.06

Output Cost = (5,000 tokens * $0.000008/token * 3 requests) = $0.12

Total Estimated Cost = $0.18