OpenAI API Cost Calculator 2026

AI Tool

Best for most tasks, strong multimodal · $2.50 / 1M input · $10.00 / 1M output

Estimated monthly cost

$75.00

Per API call

$0.0075

Monthly (10,000 calls)

$75.00

Annual (estimated)

$900.00

Input (1,000 tokens × 10,000 calls)$25.00

Output (500 tokens × 10,000 calls)$50.00

Compare OpenAI vs Claude costs

Output tokens cost 2.0x more than input tokens for this model. Setting a lower max_tokens limit is the fastest way to reduce your API bill.

GPT-4o mini would cost $0.0005 per call for the same token counts, saving $0.0071 per request.

Model pricing reference (standard API)

ModelInput / 1MOutput / 1M
GPT-4oselected$2.50$10.00
GPT-4o mini$0.15$0.60
o1$15.00$60.00
o1-mini$1.10$4.40
o3$10.00$40.00
o3-mini$1.10$4.40
GPT-4-turbo$10.00$30.00

Prices are per million tokens. Check openai.com/api/pricing for the latest rates.

Batch API pricing (50% discount) - processes asynchronously, 24-hour turnaround+
ModelInput / 1MOutput / 1M
GPT-4o$1.250$5.00
GPT-4o mini$0.075$0.30
o1$7.500$30.00
o1-mini$0.550$2.20
o3$5.000$20.00
o3-mini$0.550$2.20
GPT-4-turbo$5.000$15.00

Batch API is available for eligible models. Requests complete within 24 hours. Prices shown are 50% of standard rates as of June 2026.

About OpenAI API cost calculator

OpenAI charges for API usage by the token, with input and output tokens priced separately. GPT-4o costs $2.50 per million input tokens and $10 per million output tokens. At typical usage of 1,000 input tokens and 500 output tokens per call, that is $0.0075 per call, or $7.50 per 1,000 calls. This calculator lets you model realistic monthly costs based on your actual usage patterns.

Enter the model, average tokens per input (your prompt plus any context), average tokens per output (the model response), and expected monthly call volume. The calculator gives you estimated monthly and annual costs, helping you budget API spend before scaling or choose between model tiers based on cost tradeoffs. Supports GPT-4o, GPT-4o mini, o1, o1-mini, o3, o3-mini, and GPT-4-turbo.

How it works

1
Select your model
Choose from GPT-4o, o1, o3, GPT-4o mini, and other OpenAI models.
2
Enter token volume
Input your estimated input and output tokens per call.
3
Set monthly calls
Enter how many API calls you make per month.
4
See monthly cost
Get a clear monthly and annual cost estimate instantly.

Features

2026 model pricing

GPT-4o, o1, o3, GPT-4o mini, o1-mini, o3-mini, GPT-4-turbo.

Input/output split

Separate pricing for input and output tokens.

Batch API section

See 50% discounted rates for asynchronous workloads.

Monthly and annual

Costs projected over time at your volume.

Cost insights

Tips to reduce your bill based on your current settings.

Free to use

No account or signup required.

How much does the OpenAI API cost per request in 2026?

GPT-4o costs $2.50 per 1 million input tokens and $10.00 per 1 million output tokens as of June 2026. A typical short prompt of 500 tokens with a 300-token response costs around $0.0043 total.

The cheapest OpenAI model is GPT-4o mini at $0.15 per 1 million input tokens. For high-volume applications like chatbots or document processing pipelines, switching from GPT-4o to GPT-4o mini can reduce API costs by more than 90% with minimal quality loss on routine tasks.

Use the AI token counter to estimate your token counts before running cost projections. For cross-model comparisons, the LLM cost comparison tool shows costs across OpenAI, Claude, and Gemini side by side.

What is the cheapest OpenAI model in 2026?

GPT-4o mini is the most affordable OpenAI model at $0.15 per 1 million input tokens and $0.60 per 1 million output tokens. It is suitable for summarization, classification, simple Q&A, and most writing tasks.

o1-mini and o3-mini cost $1.10 per 1 million input tokens and offer reasoning capabilities at a lower price than the full o1 and o3 models. Reserve o1 ($15.00 input) and o3 ($10.00 input) for tasks that require complex multi-step reasoning, math, or coding problems where accuracy is critical.

To compare these costs against Anthropic models, see the Claude API pricing calculator.

How does the Batch API reduce costs?

The OpenAI Batch API offers a 50% discount on input and output tokens for all eligible models. Requests are processed asynchronously and complete within 24 hours.

Batch API is ideal for workflows that do not need instant responses: generating product descriptions, analyzing documents overnight, or processing large datasets. You submit a JSONL file with your requests and retrieve results when processing is complete. The 50% discount applies to the same models as the standard API.

Frequently asked questions about OpenAI API pricing

How much does the OpenAI API cost per 1,000 tokens in 2026?+

GPT-4o costs $0.0025 per 1,000 input tokens and $0.01 per 1,000 output tokens. GPT-4o mini is much cheaper at $0.00015 per 1,000 input tokens, ideal for high-volume tasks.

What is the cheapest OpenAI model in 2026?+

GPT-4o mini is the most affordable at $0.15 per 1 million input tokens and $0.60 per 1 million output tokens. It handles most writing and analysis tasks at a fraction of GPT-4o cost.

How does OpenAI Batch API pricing work?+

The Batch API processes requests asynchronously with a 24-hour completion window. OpenAI offers a 50% discount on input and output tokens for all eligible models.

Is o1 more expensive than GPT-4o?+

Yes. o1 costs $15.00 per 1 million input tokens and $60.00 per 1 million output tokens, about 6 times more expensive than GPT-4o. Use o1 only for tasks requiring deep reasoning.

How do I calculate my monthly OpenAI API bill?+

Multiply your average tokens per request by your number of daily requests and by 30 days. Separate input and output tokens and apply the respective per-million rates. This calculator does it automatically.

Does OpenAI charge for failed API requests?+

OpenAI only charges for tokens processed. If a request fails before processing, you are not charged. If it fails mid-processing, partial charges may apply.

What is the difference between input and output tokens?+

Input tokens are the text you send to the model, including your prompt. Output tokens are the text the model generates in response. Output tokens are typically priced higher than input tokens.

How do I reduce my OpenAI API costs?+

Use GPT-4o mini for simple tasks and reserve GPT-4o for complex work. Use the Batch API for non-urgent requests. Compress prompts. Use prompt caching for repeated system prompts.

Are there free OpenAI API credits in 2026?+

New API accounts may receive small trial credits. Free access is not available for ongoing production use. ChatGPT Plus provides web access but not API credits.

How does OpenAI pricing compare to Claude?+

Claude Sonnet 4.6 costs $3.00 per 1M input tokens versus GPT-4o at $2.50. For output, Claude costs $15.00 versus $10.00. Claude offers a larger 200K context window versus GPT-4o at 128K.

Related guides

Learn how OpenAI API pricing works and how to reduce your bill.

Related guides

Related tools