API costs
OpenAI API pricing calculator
Estimate GPT API costs with separate input, output, cache-read and cache-write rates.
Reviewed · Free to use · Calculations run in your browser
How this calculator works
Uncached input, cache reads, cache writes and output are priced separately, divided by one million and multiplied by the request count. The request fee and any additional costs are then added. Use the same period for requests and additional costs.
Presets are a reviewed selection, not a complete model catalog or a live billing feed. Standard text inference rates are shown unless the model label says otherwise. Use your provider's measured token counts: the same text can tokenize differently across models.
OpenAI presets include the published short- and long-context bands, with 30-minute cache-write pricing; regional uplifts and Fast mode are excluded.
Sources & review date
Checked September 11, 2026. Providers can change rates, model availability and specifications. Open the source for the selected preset before budgeting or buying hardware.