Saraswati Stitch needle-and-thread markSaraswati Stitch®contact@saraswatistitch.com

Free tool · AI cost calculator

OpenAI API cost calculator

OpenAI bills its API by the token, and the right model choice can change your bill by 10x or more. Use the live table below to compare OpenAI models for your own workload, and read on for how its pricing works.

0 models

Loading live model prices…

Covers every model on OpenRouter — text, reasoning, image and audio. Token counts are estimates (tokenization varies by model), and image/audio models may also charge per image or per second on top of tokens, so treat non-text figures as a guide and confirm against the provider's own pricing page before budgeting. Prices are pulled live from OpenRouter.

How OpenAI prices its API

OpenAI charges separately for input (the tokens you send) and output (the tokens the model generates), quoted per million tokens. Output is usually several times more expensive than input, so the length of the answers you ask for drives cost as much as the prompt. Reasoning (o-series) models also bill the hidden "thinking" tokens they generate, which is why they can cost more than their headline rate suggests.

Which OpenAI model to choose

The flagship GPT models are for genuinely hard, open-ended work; the mini and nano variants handle the large bulk of routine tasks (classification, extraction, drafting) for a fraction of the price. The o-series reasoning models earn their cost only when a problem really needs step-by-step reasoning. For most business workloads, a smaller model tested on your actual task beats reaching for the biggest one by default.

Cutting your OpenAI bill

Three levers move the number most: pick the smallest model that passes your quality bar, cap output length (you pay per output token), and use prompt caching for repeated context plus the Batch API (around half price) for anything that is not time-sensitive. Compare the options for your real token counts in the calculator below before you commit.

Compare OpenAI against every other provider in the full calculator →