API cost calculator

OpenAI API pricing calculator

Spur

Costing an AI agent? We already built one.

Spur's agent answers WhatsApp, Instagram and Messenger for your customers, with no token maths to do yourself.

Trusted by 600+ businesses worldwide

  • Libas
  • Arvenal
  • Fashor
  • Céora
  • Nickron
  • Zariva

How to calculate OpenAI API cost

  1. 01

    Pick the model and tier

    Batch is half price if the work can wait up to 24 hours.

  2. 02

    Enter your tokens

    Tokens per request, then how many requests. Roughly 4 characters is 1 token.

  3. 03

    Read the total

    Split by input and output, with the cost of a single request.

Three ways to pay less

Drop down a model size

The same job on gpt-5-nano costs a fraction of gpt-5.1. Try it before optimising anything else.

Reuse the same prompt prefix

Repeated input is billed as cached, often at a tenth of the normal rate.

Batch anything that can wait

Half price for work returned within 24 hours. Good for backfills and evals.

OpenAI API prices per 1M tokens

Prices last checked September 2, 2026. OpenAI's pricing page

ModelInputCachedOutputBatch in
gpt-5.6-sol$4.00$0.40$20.00$2.00
gpt-5.6-terra$2.00$0.20$12.00$1.00
gpt-5.6-luna$0.20$0.02$1.20$0.10
gpt-5.5$5.00$0.50$30.00$2.50
gpt-5.5-pro$30.00–$180.00$15.00
gpt-5.4$2.50$0.25$15.00$1.25
gpt-5.4-mini$0.75$0.07$4.50$0.38
gpt-5.4-nano$0.20$0.02$1.25$0.10
gpt-5.4-pro$30.00–$180.00$15.00
gpt-5.2$1.75$0.17$14.00$0.88
gpt-5.2-pro$21.00–$168.00$10.50
gpt-5.1$1.25$0.13$10.00$0.63
gpt-5$1.25$0.13$10.00$0.63
gpt-5-mini$0.25$0.03$2.00$0.13
gpt-5-nano$0.05$0.0050$0.40$0.03
gpt-5-pro$15.00–$120.00$7.50
gpt-4.1$2.00$0.50$8.00$1.00
gpt-4.1-mini$0.40$0.10$1.60$0.20
gpt-4.1-nano$0.10$0.03$0.40$0.05
gpt-4o$2.50$1.25$10.00$1.25
gpt-4o-mini$0.15$0.07$0.60$0.07
o3$2.00$0.50$8.00$1.00
o3-pro$20.00–$80.00$10.00
o4-mini$1.10$0.28$4.40$0.55
o3-mini$1.10$0.55$4.40$0.55
o1$15.00$7.50$60.00$7.50
o1-pro$150.00–$600.00$75.00
gpt-4-turbo$10.00–$30.00$5.00
gpt-3.5-turbo$0.50–$1.50$0.25
text-embedding-3-small$0.02–––
text-embedding-3-large$0.13–––
text-embedding-ada-002$0.10–––

Standard tier unless marked. Prices in US dollars. OpenAI changes these without notice, so check the source before budgeting.

What this estimate leaves out

The token maths is exact. The things around it are not.

  1. 01

    Reasoning models bill their thinking

    Reasoning tokens are billed as output even though you never see them, so a real bill can be several times an estimate based on the visible reply.

  2. 02

    System prompts count every time

    Your instructions go with every request, not once per chat. A 2,000 token prompt across 10,000 calls is 20M input tokens before anyone speaks.

  3. 03

    Prices change without warning

    OpenAI moves these figures and retires models on its own schedule. Check the date above before you commit a budget.

Frequently asked questions

How OpenAI charges, what a token is, and where the bill comes from.

Before you build one. Build the agent, or just switch one on.

Spur's AI agent is trained on your brand and answers every customer message across WhatsApp, Instagram and Messenger, 24/7.

  • Meta Business Partner
  • Shopify Partner
  • 7-day free trial
  • Connects to Shopify in minutes
  • Billed per conversation delivered

Did this tool do what you needed?