Skip to content
Ali Hassan, home

OpenAI, Claude and Gemini API pricing calculator

What an AI feature costs a month on current OpenAI, Claude and Gemini models. Set how many requests you expect and how many tokens go in and come out of each; every price can be edited.

Monthly cost by model
Model$ / 1M input$ / 1M outputPer requestPer month
GPT-6 LunaOpenAI · Prompts up to 272K tokensCheapest at this usage$0.0004$40
Claude Haiku 5.5Anthropic · Prompts up to 100K tokens$0.0004$40
Gemini 3.5 Flash-LiteGoogle · Text, image and video input$0.0016$160
Gemini 3.8 FlashGoogle · Until 31 Dec 2026; $1.50 / $7.50 from 1 Jan 2027$0.003$300
GPT-6.1 SolOpenAI · Prompts up to 272K tokens$0.008$800
Claude Sonnet 5.5Anthropic · Full 1M context at this price$0.008$800
Gemini 3.1 Pro (preview)Google · Prompts up to 200K tokens$0.0088$880
Claude Opus 5.5Anthropic · Full 1M context at this price$0.02$1,600
GPT-6 AstraOpenAI · Prompts up to 272K tokens$0.04$4,000
Claude Fable 5.1Anthropic · Full 1M context at this price$0.04$4,000

At this usage the bill runs from $40 to $4,000 a month, depending only on the model. If your real bill is growing faster than your usage, an LLM cost audit measures cost per request on your traffic and finds the changes that move it.

Standard prices as of 8 October 2026, from OpenAI, Anthropic and Google. They change, so check before you budget.

OpenAI API pricing

OpenAI API pricing, US dollars per million tokens
ModelInputOutput
GPT-6 AstraPrompts up to 272K tokens$10.00$50.00
GPT-6.1 SolPrompts up to 272K tokens$2.00$10.00
GPT-6 LunaPrompts up to 272K tokens$0.10$0.50

Claude API pricing

Claude API pricing, US dollars per million tokens
ModelInputOutput
Claude Fable 5.1Full 1M context at this price$10.00$50.00
Claude Opus 5.5Full 1M context at this price$4.00$20.00
Claude Sonnet 5.5Full 1M context at this price$2.00$10.00
Claude Haiku 5.5Prompts up to 100K tokens$0.10$0.50

Gemini API pricing

Gemini API pricing, US dollars per million tokens
ModelInputOutput
Gemini 3.1 Pro (preview)Prompts up to 200K tokens$2.00$12.00
Gemini 3.8 FlashUntil 31 Dec 2026; $1.50 / $7.50 from 1 Jan 2027$0.75$3.75
Gemini 3.5 Flash-LiteText, image and video input$0.30$2.50

Per million tokens, standard tier, before caching or batch discounts.

How the estimate works

Each request costs its input tokens times the input price, plus its output tokens times the output price, with prices quoted per million tokens. The monthly figure is that, times the number of requests. Input is everything sent to the model: the system prompt, conversation history, any retrieved documents and the question itself. As a rough guide, a token is about three-quarters of an English word.

What it leaves out

  • Prompt caching and batch discounts, which can cut the bill well below these figures.
  • Higher prices some models charge for very long prompts (noted beside each model).
  • Retries, tool calls and agent loops that call the model several times per task.
  • Embeddings, vector storage and hosting.

For what drives the number up in a real product, and how to bring it down, read what an AI feature costs to run, or the model-by-model guides to Claude API pricing and Gemini API pricing. Planning a whole product rather than one feature? The AI app cost estimator adds the build to the running cost.

Questions

How much does the OpenAI API cost?
OpenAI charges per million tokens, with separate prices for input and output. As of 8 October 2026, standard prices run from $0.10 input and $0.50 output on GPT-6 Luna to $10.00 input and $50.00 output on GPT-6 Astra, per million tokens. What a feature costs a month depends on how many requests it makes and how many tokens each one carries.
Is the Claude API cheaper than OpenAI?
At the same tier the prices are close. Claude Sonnet 5.5 and GPT-6.1 Sol both cost $2.00 input and $10.00 output per million tokens, and Claude Haiku 5.5 and GPT-6 Luna both cost $0.10 input and $0.50 output. The bigger difference is usually how many tokens each model needs for your task, which is worth testing on real requests.
How many tokens does a request use?
A token is about three-quarters of an English word, so 1,000 words is roughly 1,300 tokens. Input counts everything sent to the model: the system prompt, conversation history, retrieved documents and the question. Output is the answer it writes.
Does the calculator include caching and batch discounts?
No, it uses standard prices. All three vendors charge half price for batch requests that can wait, and bill cached input at a fraction of the normal input price, so a real bill can be well below this estimate.

Tell me what you’re building and where it’s stuck.

I’ll tell you the cleanest path forward, including if it’s “don’t build that.”

Email only, on purpose: it reaches me, not a sales team.

Or write tocontact@alihassan.dev

Ali Hassan in a dark winter jacket, looking off to one side, standing in a stone courtyard with a minaret and cloudy sky behind him.