GPT · Fast / Budget · 200K context window

o4 Mini pricing for json extraction

$0.006820 per call at 3,000 input / 800 output tokens.

Per call

$0.006820

10K calls/mo

$68.2

Cache savings

75% off input

Batch savings

50% off all

Calculate your o4 Mini costs

Adjust token counts, volume, and discount toggles to model your json extraction spend. Prices verified daily against provider pricing pages.

Configure your usage

3,000
100100K
800
5050K
10,000
1001M

Estimated cost

Monthly cost
$68
10,000 calls/month
Cost per call$0.006820
Daily cost$2
Input rate$1.10/MTok
Output rate$4.40/MTok
Analyze your real spend

Quick start

Call o4 Mini with the OpenAI Python SDK:

from openai import OpenAI

client = OpenAI()
response = client.chat.completions.create(
    model="o4-mini",
    max_tokens=800,
    messages=[{"role": "user", "content": "Your prompt here"}]
)
# Cost: ~$0.006820 per call at standard rates
# Input:  $1.10/MTok
# Output: $4.40/MTok

How o4 Mini compares on cost

Per-call cost for all models scoring 50+ on json extraction benchmarks. Hover for details.

Cheapest viable option: GPT 5.6 Luna at $0.001560/call (77% less, 89/100 quality).

What drives json extraction cost

Structured JSON output is compact and predictable, so cost is set almost entirely by how much source text you send. The schema itself is identical on every call and belongs in the cached prefix. This is also a task where a smaller model often matches a larger one: the output space is constrained by the schema, which limits how wrong a cheaper model can go.

For o4 Mini specifically, that means output tokens cost 4.0x more than input, at $4.40 vs $1.10 per MTok. At this use case’s 3,000/800 token split, output accounts for 52% of the $0.006820 per-call cost.

Complete o4 Mini pricing breakdown

Standard token rates

Direction$/MTokTokens per call
Input$1.103,000
Output$4.40800

Prompt caching: 75% off input tokens

Caching drops input cost from $1.10 to $0.28/MTok. For repeated system prompts, that saves $0.002475 per call.

Batch API: 50% off all tokens

Submit requests asynchronously and receive 50% off all token costs. This works best for offline pipelines where latency requirements are flexible.

Monthly cost projections

Monthly volumeCost per callStandard monthlyCached monthlyYou save with caching
10,000 calls$0.006820$68.2$43.45$24.75
50,000 calls$0.006820$341$217.25$123.75
100,000 calls$0.006820$682$434.5$247.5
500,000 calls$0.006820$3,410$2,172.5$1,237.5
1,000,000 calls$0.006820$6,820$4,345$2,475

o4 Mini quality benchmarks for json extraction

Benchmark data for json extraction is pending for o4 Mini. Test against your own evaluation suite before moving to production.

Performance across all task types

o4 Mini scores by task type. JSON Extraction highlighted.

Task typeConfidence scoreRank out of 72

Confidence scores are a third-party benchmark snapshot from week 29 of 2026. This snapshot is 10 weeks old, so treat the scores as directional and validate against your own evals.

Alternative models for json extraction

14 models score 80+ on json extraction benchmarks, sorted by input rate. Cheapest: GPT 5.6 Luna (77% less, 89/100 quality).

ModelProviderInput $/MTokOutput $/MTokQualityPer callvs o4
GPT 5.6 LunaGPT$0.20$1.2089/100$0.00156077% cheaper
Gemini 3.5 Flash-LiteGemini$0.30$2.5083/100$0.00290057% cheaper
Gemini 3 FlashGemini$0.50$3.0086/100$0.00390043% cheaper
Claude Haiku 4.5Claude$1.00$5.0088/100$0.0070003% more
Gemini 3.5 FlashGemini$1.50$9.0090/100$0.011772% more
Claude Sonnet 5Claude$2.00$10.0088/100$0.0140105% more
GPT 5.6 TerraGPT$2.00$12.0090/100$0.0156129% more
Gemini 3.1 ProGemini$2.00$12.0085/100$0.0156129% more
GPT 5.4GPT$2.50$15.0089/100$0.0195186% more
Claude Sonnet 4.6Claude$3.00$15.0086/100$0.0210208% more
GPT 5.6 SolGPT$4.00$20.0088/100$0.0280311% more
Claude Opus 4.8Claude$5.00$25.0082/100$0.0350413% more
GPT 5.5GPT$5.00$30.0087/100$0.0390472% more
Claude Fable 5Claude$10.00$50.0085/100$0.0700926% more

About o4 Mini

Provider

GPT

Tier

Fast / Budget

Context

200K tokens

Released

Not published

Backfilled on 2026-09-23. Prices confirmed by the provider pricing page and the LiteLLM cross-check. Release date not published in a machine-readable source. Not yet benchmarked, so never recommended.

Other models from GPT

ModelTierInput $/MTokOutput $/MTokContext
GPT 5.5Flagship$5.00$30.001,050K
GPT 5.4Mid-tier$2.50$15.001,050K
GPT 5.6 SolFlagship$4.00$20.00922K
GPT 5.6 TerraMid-tier$2.00$12.00922K
GPT 5.6 LunaFast / Budget$0.20$1.20922K
GPT 3.5 TurboFast / Budget$0.50$1.5016.385K
GPT 3.5 Turbo (0125)Fast / Budget$0.50$1.5016.385K
GPT 4 (0613)Flagship$30.00$60.008.192K
GPT 4 Turbo (2024-04-09)Flagship$10.00$30.00128K
GPT 4.1Mid-tier$2.00$8.001,047.576K
GPT 4.1 MiniFast / Budget$0.40$1.601,047.576K
GPT 4.1 NanoFast / Budget$0.10$0.401,047.576K
GPT 4oMid-tier$2.50$10.00128K
GPT 4o (2024-05-13)Flagship$5.00$15.00128K
GPT 4o MiniFast / Budget$0.15$0.60128K
GPT 5Mid-tier$1.25$10.00272K
GPT 5 MiniFast / Budget$0.25$2.00272K
GPT 5 NanoFast / Budget$0.05$0.40272K
GPT 5 ProFlagship$15.00$120.00400K
GPT 5.1Mid-tier$1.25$10.00272K
GPT 5.2Mid-tier$1.75$14.00272K
GPT 5.2 ProFlagship$21.00$168.00272K
GPT 5.4 MiniFast / Budget$0.75$4.50272K
GPT 5.4 NanoFast / Budget$0.20$1.25272K
GPT 5.4 ProFlagship$30.00$180.001,050K
GPT 5.5 ProFlagship$30.00$180.001,050K
GPT 6 AstraFlagship$10.00$50.00922K
GPT 6 LunaFast / Budget$0.10$0.50922K
GPT 6 SolFlagship$2.00$10.00922K
o1Flagship$15.00$60.00200K
o1 ProFlagship$150.00$600.00200K
o3Mid-tier$2.00$8.00200K
o3 MiniFast / Budget$1.10$4.40200K
o3 ProFlagship$20.00$80.00200K

You can compare o4 Mini head-to-head against any other model on our model comparison pages, or track how pricing has changed over time on the pricing history tracker.

Frequently asked questions

How much does o4 Mini cost for json extraction per API call?

A typical json extraction call using o4 Mini costs about $0.006820 per call. This estimate uses 3,000 input tokens and 800 output tokens at standard rates. Standard rates are $1.10 per million input tokens and $4.40 per million output tokens.

Is o4 Mini the best model for json extraction?

Our benchmark data does not yet include a json extraction ranking for o4 Mini. We recommend testing it against your own evaluation criteria before production usage.

What is the cheapest model for json extraction with good quality?

The most affordable model for json extraction above 80/100 quality is GPT 5.6 Luna. It comes from GPT at $0.20 per million input tokens. Output costs $1.20 per million tokens with a quality score of 89/100. Switching from o4 Mini to GPT 5.6 Luna saves about 77% per API call.

How can I reduce my o4 Mini costs for json extraction?

Three strategies lower o4 Mini costs for this task type effectively. Prompt caching gives a 75% discount on input tokens when reusing system prompts. The batch API gives 50% off all tokens for asynchronous processing workloads. Prompt optimization reduces token counts through more concise instructions and context windows. Combining caching with batching brings your cost from $0.006820 to about $0.000853 per call.

How does o4 Mini pricing compare to other GPT models?

GPT has 34 other models alongside o4 Mini today: GPT 5.5 at $5.00/$30.00 per million tokens (flagship), GPT 5.4 at $2.50/$15.00 per million tokens (mid-tier), GPT 5.6 Sol at $4.00/$20.00 per million tokens (flagship), GPT 5.6 Terra at $2.00/$12.00 per million tokens (mid-tier), GPT 5.6 Luna at $0.20/$1.20 per million tokens (fast / budget), GPT 3.5 Turbo at $0.50/$1.50 per million tokens (fast / budget), GPT 3.5 Turbo (0125) at $0.50/$1.50 per million tokens (fast / budget), GPT 4 (0613) at $30.00/$60.00 per million tokens (flagship), GPT 4 Turbo (2024-04-09) at $10.00/$30.00 per million tokens (flagship), GPT 4.1 at $2.00/$8.00 per million tokens (mid-tier), GPT 4.1 Mini at $0.40/$1.60 per million tokens (fast / budget), GPT 4.1 Nano at $0.10/$0.40 per million tokens (fast / budget), GPT 4o at $2.50/$10.00 per million tokens (mid-tier), GPT 4o (2024-05-13) at $5.00/$15.00 per million tokens (flagship), GPT 4o Mini at $0.15/$0.60 per million tokens (fast / budget), GPT 5 at $1.25/$10.00 per million tokens (mid-tier), GPT 5 Mini at $0.25/$2.00 per million tokens (fast / budget), GPT 5 Nano at $0.05/$0.40 per million tokens (fast / budget), GPT 5 Pro at $15.00/$120.00 per million tokens (flagship), GPT 5.1 at $1.25/$10.00 per million tokens (mid-tier), GPT 5.2 at $1.75/$14.00 per million tokens (mid-tier), GPT 5.2 Pro at $21.00/$168.00 per million tokens (flagship), GPT 5.4 Mini at $0.75/$4.50 per million tokens (fast / budget), GPT 5.4 Nano at $0.20/$1.25 per million tokens (fast / budget), GPT 5.4 Pro at $30.00/$180.00 per million tokens (flagship), GPT 5.5 Pro at $30.00/$180.00 per million tokens (flagship), GPT 6 Astra at $10.00/$50.00 per million tokens (flagship), GPT 6 Luna at $0.10/$0.50 per million tokens (fast / budget), GPT 6 Sol at $2.00/$10.00 per million tokens (flagship), o1 at $15.00/$60.00 per million tokens (flagship), o1 Pro at $150.00/$600.00 per million tokens (flagship), o3 at $2.00/$8.00 per million tokens (mid-tier), o3 Mini at $1.10/$4.40 per million tokens (fast / budget), o3 Pro at $20.00/$80.00 per million tokens (flagship). The right choice depends on whether your json extraction workload prioritizes quality, cost, or speed.

What context window does o4 Mini support?

o4 Mini supports a context window of 200K tokens per API call. This sets the maximum combined length of your input prompt and generated response. For json extraction, typical calls use 3,000 input and 800 output tokens. That is well within this limit, leaving room for longer prompts or multi-turn conversations.

Track what you spend on AI

This calculator estimates costs based on published rates only. Connect your API usage to see where your money goes and which models drive your spend.