Skip to main content

Provider pricing guide

OpenAI API Pricing Calculator & Model Cost Guide

OpenAI billing depends on the model and modality. Text models normally separate input, cached input, and output tokens, while image and transcription products use different units. The table below keeps those units explicit.

Open OpenAI cost calculator
Example comparison basis: 1M input tokens + 1M output tokens. This is a rate comparison, not a quality or capability ranking.
AI model pricing comparison filtered by provider and modality
Provider / modelInputOutputCached / batchUnit priceExample costVerified / sourceUse

OpenAI

GPT-4.1 mini

Cheapest
$0.40 / 1M$1.60 / 1M$0.10 cache$2.00Verified

Jun 21, 2026

OpenAI model pricing
Calculate

OpenAI

GPT-4.1

Highest
$2.00 / 1M$8.00 / 1M$0.50 cache$10.00Verified

Jun 21, 2026

OpenAI model pricing
Calculate

Pricing FAQ

How is OpenAI API text pricing calculated?

Multiply input tokens by the model input rate and output tokens by the output rate, each divided by one million. Add both values and multiply by request volume.

Does cached input use the standard input rate?

Eligible cache hits can use a lower published rate. Cache writes, retention, and eligibility rules vary, so confirm the linked OpenAI documentation.

Are image and transcription rates token based?

Not always. TokenMath displays the provider's published planning unit, such as per image or estimated per audio minute, alongside the source date.