OpenAI GPT-4.1 Mini Token Cost Calculator

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

The pricing for GPT-4.1 Mini is:

  • Input Tokens: $0.4 per 1 million tokens
  • Output Tokens: $1.6 per 1 million tokens
  • Context Window: 1047576 tokens

Formula for Calculation:

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

Example:

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

Input Cost = (50,000 / 1,000,000) * $0.4 * 3 = $0.06

Output Cost = (10,000 / 1,000,000) * $1.6 * 3 = $0.048

Total Cost = $0.06 + $0.048 = $0.108

Note: The calculation is approximate and based on publicly available pricing. Actual costs may vary.