NEW: 75+ real-time integrations - track Claude, OpenAI, AWS, OpenRouter & more. Try it free →

CostGoat Logo

CostGoat

LAST UPDATED: OCTOBER 19, 2026

OpenAI ChatGPT API Pricing Calculator - All Text/Chat Models

Calculate OpenAI API costs across the current GPT and Codex lineup per token and per month, with batch, flex, and prompt-caching discounts.

CalculatorPricing GuideExamplesSave MoneyFAQ
CostGoat

Using the OpenAI API? See your credits live and get alerted before they run out →

Pricing TLDR

  • • $5 free credits for new users (no credit card required)
  • • Pay-per-token: GPT-6 Luna ($0.10/$0.50) • GPT-6.1 Sol ($2/$10) • GPT-6 Astra ($10/$50) per million tokens
  • • Batch API 50% off • Cached reads 90-95% off on GPT-6, GPT-5.6, GPT-5.5, and GPT-5.4 • Cache writes 1.25x on GPT-5.6+

Official pricing:

OpenAI

•

Quality Scores: Theozard

OpenAI API Cost Calculator: Monthly Pricing

Pricing Tier

Calculate by

Input Tokens

Output Tokens

API Calls / Month

Quick Examples:

Cost Optimization:

Showing 14 of 19 models

GPT-6 Astra (gpt-6-astra)

Context

1.05M

Quality

91

Per 1M Tokens

In: $10.00

Out: $50.00

Monthly Cost

$35.00

GPT-6.1 Sol (gpt-6.1-sol)

Context

1.05M

Quality

90

Per 1M Tokens

In: $2.00

Out: $10.00

Monthly Cost

$7.00

GPT-6 Sol (gpt-6-sol)

Context

1.05M

Quality

83

Per 1M Tokens

In: $2.00

Out: $10.00

Monthly Cost

$7.00

GPT-5.6 Sol (gpt-5.6-sol)

Context

1.05M

Quality

82

Per 1M Tokens

In: $4.00

Out: $20.00

Monthly Cost

$14.00

GPT-5.6 Terra (gpt-5.6-terra)

Context

1.05M

Quality

73

Per 1M Tokens

In: $2.00

Out: $12.00

Monthly Cost

$8.00

GPT-5.4 (gpt-5.4)

Context

1M

Quality

68

Per 1M Tokens

In: $2.50

Out: $15.00

Monthly Cost

$10.00

GPT-5.5 (gpt-5.5)

Context

1.05M

Quality

67

Per 1M Tokens

In: $5.00

Out: $30.00

Monthly Cost

$20.00

GPT-6 Luna (gpt-6-luna)

Context

1.05M

Quality

66

Per 1M Tokens

In: $0.10

Out: $0.50

Monthly Cost

$0.35

GPT-5.6 Luna (gpt-5.6-luna)

Context

1.05M

Quality

65

Per 1M Tokens

In: $0.20

Out: $1.20

Monthly Cost

$0.80

GPT-5.3 Codex (gpt-5.3-codex)

Context

400K

Quality

56

Per 1M Tokens

In: $1.75

Out: $14.00

Monthly Cost

$8.75

GPT-5.4 Mini (gpt-5.4-mini)

Context

1M

Quality

42

Per 1M Tokens

In: $0.75

Out: $4.50

Monthly Cost

$3.00

GPT-5.4 Nano (gpt-5.4-nano)

Context

1M

Quality

36

Per 1M Tokens

In: $0.20

Out: $1.25

Monthly Cost

$0.83

GPT-5.5 Pro (gpt-5.5-pro)

Context

1.05M

Quality

-

Per 1M Tokens

In: $30.00

Out: $180.00

Monthly Cost

$120.00

GPT-5.4 Pro (gpt-5.4-pro)

Context

1M

Quality

-

Per 1M Tokens

In: $30.00

Out: $180.00

Monthly Cost

$120.00

Spinning up GPT-5.5 reasoning runs and watching costs creep?

Track your OpenAI API spend in real-time.

Free 7-day trial. No sign-up, no credit card.

CostGoat desktop app showing AI agent quotas, usage costs, credit balances, and subscriptions

About OpenAI API

What is OpenAI API?

The OpenAI API provides access to the current chat lineup: the GPT-6 family (Astra, the flagship with built-in reasoning, plus Sol and Luna), GPT-6.1 Sol, the GPT-5.6 family (Sol, Terra, Luna, 1.05M context), GPT-5.5, GPT-5.4 family (Mini, Nano, Pro variants for cost-optimized production), GPT-5.5 Pro and GPT-5.4 Pro (premium reasoning tiers), and GPT-5.3 Codex (specialized coding model). Models are priced across up to five tiers (Batch, Flex, Standard, Fast, Ultrafast), so you can trade cost against latency per request.

  • Current Model Lineup: GPT-6 Astra: latest flagship with the highest reasoning quality ($10/$50). GPT-6.1 Sol: second only to Astra in quality at the GPT-6 Sol price, with cheaper cached input ($2/$10). GPT-6 Sol: matches GPT-5.6 Sol quality at half the price ($2/$10). GPT-6 Luna: cheapest option for high-volume work ($0.10/$0.50). GPT-5.6 Sol: high-quality flagship with reasoning baked in ($4/$20). GPT-5.6 Terra: balances intelligence and cost ($2/$12). GPT-5.6 Luna: low-cost option for high-volume work ($0.20/$1.20). GPT-5.4 Mini and Nano: budget options for routing and extraction. GPT-5.5 Pro and GPT-5.4 Pro: premium tiers for deep-horizon enterprise reasoning. GPT-5.3 Codex: agentic coding specialist tuned for software engineering tasks.
  • Flexible Pricing Tiers: Batch (50% discount, 24hr processing), Flex (lower cost, variable latency on the GPT-6, GPT-5.6, GPT-5.5, and GPT-5.4 families), Standard (default balanced tier), Fast (2x cost, faster processing), Ultrafast (6x cost, GPT-6 Astra and GPT-6.1 Sol only). Switch tiers per request to optimize cost vs speed. Pro variants are Batch, Flex, and Standard only.
  • Advanced Cost Features: Cached reads cost 10% of input on the GPT-6, GPT-5.6, GPT-5.5, and GPT-5.4 families and 5% on GPT-6.1 Sol (e.g. GPT-5.6 Sol standard input $4.00 → $0.40 cached); on GPT-5.6 and later, cache writes cost 1.25x input. Function calling, structured outputs, and built-in tools (Code Interpreter, File Search, Web Search) work across the lineup. Reasoning tokens are billed as output on reasoning-enabled models. OpenAI is winding down the fine-tuning platform (still available on GPT-4.1 family and o4-mini for existing users).

When to Use OpenAI API

Start with GPT-6 Luna for cost-sensitive routing and extraction, move to GPT-6.1 Sol for balanced production workloads, and reach for GPT-6 Astra when you need the highest reasoning quality. Use GPT-5.3 Codex for coding agents. Switch to Batch for non-urgent workloads (50% savings) and Fast for latency-critical user-facing flows.

Ideal for

  • Production chat and agentic apps on GPT-6.1 Sol or GPT-5.6
  • Coding assistants and software engineering agents on GPT-5.3 Codex
  • High-volume classification and extraction with GPT-6 Luna + Batch
  • Deep-horizon enterprise reasoning with GPT-5.5 Pro or GPT-5.4 Pro
  • Non-reasoning ChatGPT-style chat via the chat-latest alias

Not ideal for

  • Real-time applications requiring <50ms latency (even on the Fast tier)
  • Simple text parsing where regex or rules-based code is cheaper
  • Workloads needing guaranteed deterministic outputs
  • Reasoning models on trivial tasks (hidden thinking tokens add cost)

OpenAI API Pricing Breakdown

Free Tier

New users receive $5 in free credits with no credit card required. These credits expire after 3 months and are automatically applied to your usage across all models and tiers.

  • Sign up at platform.openai.com, no credit card required
  • Receive $5 free credits instantly upon registration
  • Credits expire after 3 months from grant date
  • Works across all current models (GPT-6 family, GPT-6.1 Sol, GPT-5.6 family, GPT-5.5, GPT-5.4 family, GPT-5.3 Codex)
  • Generate API key and start building immediately

Pricing Tiers Explained

Batch Tier (50% Discount)

Process non-urgent workloads within 24 hours at half price. Example: GPT-5.6 Sol drops to $2.00/$10.00 per M tokens (vs $4/$20 standard). Perfect for data processing, content generation, and analysis tasks that aren't time-sensitive.

Flex Tier (Variable Latency)

Lower cost with variable latency on the GPT-6, GPT-5.6, GPT-5.5, and GPT-5.4 families, including the Pro variants. Automatically routes requests during lower-demand periods. Good middle ground between Batch and Standard for non-critical applications.

Standard Tier (Default)

Default tier with balanced cost and performance. Most common choice for production applications. Consistent latency and throughput. All models available. Rate limits rise with your usage tier, which upgrades as total credit purchases grow.

Fast Tier (2x Cost)

Formerly called Priority. Costs about 2x Standard for faster processing. Best for user-facing applications that need quick responses. Available on the GPT-6 and GPT-5.6 families, GPT-5.5, GPT-5.4, GPT-5.4 Mini, and GPT-5.3 Codex (not Nano or the Pro variants).

Ultrafast Tier (6x Cost)

The fastest processing OpenAI offers, at 6x Standard. Only available on GPT-6 Astra ($60/$300 per M tokens) and GPT-6.1 Sol ($12/$60). Worth it only when response speed directly drives revenue or user retention.

Cost Optimization Features

Prompt Caching (90-95% Off Reads)

Cache frequently used prompts, system messages, or documents. Cached input is billed at 10% of the standard rate on the GPT-6, GPT-5.6, GPT-5.5, and GPT-5.4 families, and 5% on GPT-6.1 Sol (e.g. GPT-5.6 Sol input $4.00/M → cached $0.40/M). On GPT-5.6 and later, the first write of a prefix costs 1.25x input and the cache lasts at least 30 minutes after its last use. GPT-5.5 typically keeps it around 30 minutes and up to 24 hours. Earlier models keep it in memory for about 5-10 minutes of inactivity (up to an hour), or up to 24 hours on the models that support 24h retention. Works for chatbots with consistent system prompts, RAG applications, and repeated context.

Fine-Tuning (Winding Down)

OpenAI is winding down the fine-tuning platform as of May 2026. It's no longer open to new users. Existing fine-tuning users can still create training jobs on GPT-4.1, GPT-4.1-mini (SFT/DPO) and o4-mini (RFT). Fine-tuned models remain available for inference until their base models are deprecated. The current GPT-5.6, GPT-5.5, and GPT-5.4 families are not available for fine-tuning.

Understanding Reasoning Tokens

Reasoning-enabled models (GPT-6 family, GPT-5.6 family, GPT-5.5, GPT-5.5 Pro, GPT-5.4 Pro, GPT-5.3 Codex) generate hidden 'thinking' tokens that are billed as output but not returned in the response. These tokens occupy context window space and can significantly increase costs. A 500-token visible response may consume 2000+ total tokens. Use the chat-latest alias or GPT-5.4 Mini/Nano when you don't need extended reasoning.

Prepaid Credits System

Buy credits upfront with no monthly fees. Credits expire after 12 months. Set auto-reload thresholds to never run out. Volume discounts available for enterprise. No setup fees or subscription costs.

Usage Tracking & Limits

Real-time usage monitoring in dashboard. Set spending limits and alerts. Failed requests aren't charged. Rate limits increase automatically with your usage tier (Build, Launch, Grow), based on total credit purchases.

OpenAI API Monthly Cost Estimates

Light Use

$5-40/mo

• Personal projects

• <1K requests/day

• GPT-6 Luna

Medium Use

$40-200/mo

• Small apps

• 1-5K requests/day

• GPT-6.1 Sol + Batch tier mix

Heavy Use

$200-1.5K/mo

• Production apps

• 5-20K requests/day

• GPT-5.6 Sol + caching

Enterprise

$1.5K+/mo

• Large scale

• 20K+ requests/day

• GPT-6 Astra, Fast tier

7 OpenAI API Cost Optimization Tips

1

Watch Hidden Reasoning Token Costs

GPT-6 family, GPT-5.6 family, GPT-5.5, GPT-5.5 Pro, GPT-5.4 Pro, and GPT-5.3 Codex emit 'reasoning tokens' for internal thinking that are billed as output but not returned in the response. A response showing 500 output tokens can easily consume 2000+ tokens of actual output billing. Use the chat-latest non-reasoning aliases or GPT-5.4 Mini/Nano when extended reasoning isn't required.

2

Use Prompt Caching for 90-95% Off Input

Cached input is billed at 10% of the standard rate on the GPT-6, GPT-5.6, GPT-5.5, and GPT-5.4 families, and 5% on GPT-6.1 Sol. On GPT-5.6 and later the first write costs 1.25x input, so caching pays off once a prefix is reused even once. Example: GPT-5.6 Sol input drops from $4.00/M to $0.40/M. With 80% cache hits on GPT-5.6 Sol at 10K requests/day, savings are around $800-$1,200/month. Works best for chatbots with consistent system prompts and RAG applications with repeated context.

3

Use Batch Tier for Non-Urgent Tasks

Get a 50% discount by processing non-urgent workloads within 24 hours via the Batch API. Perfect for data processing, content generation, analytics, and background jobs. GPT-5.6 Sol batch: $2/$10 per M tokens vs $4/$20 standard. Can save thousands per month on high-volume workloads.

4

Start with the Smallest Model That Works

Default to GPT-6 Luna ($0.10/$0.50 per M tokens) for classification, routing, and simple extraction. Move to GPT-6.1 Sol ($2/$10) for production chat, and only reach for GPT-6 Astra or Pro variants when the task genuinely needs deeper reasoning.

5

Implement Smart Model Routing

Cascade by complexity: GPT-6 Luna → GPT-6.1 Sol → GPT-6 Astra (or GPT-5.3 Codex for coding). Use a cheap classifier model to score difficulty, then dispatch. Most production workloads can run 60-80% of requests on Luna and reserve GPT-6 Astra for the long tail.

6

Optimize Token Usage

Minimize prompt tokens without sacrificing quality. Use concise system messages, drop redundant few-shot examples once you have a stable schema, set max_tokens limits on outputs, and use function calling instead of verbose JSON in prompts. Each 1,000-token reduction on GPT-5.6 Sol standard saves around $0.004 per request.

7

Monitor OpenAI API Usage in Real-Time

Track OpenAI spending per model with CostGoat's token-level visibility. Get instant alerts when switching from Mini to premium models, when prompt caching savings drop unexpectedly, or when batch processing opportunities are missed. Prevent budget overruns before they happen.

OpenAI Model Selection Guide

Use Case

Customer Support Chat

Recommended Model

GPT-6 Luna

Fast & Affordable

Monthly Cost (Est.)

~$15-80

Why This Model?

Lowest cost for conversational tasks with prompt caching

Use Case

Code Generation & Review

Recommended Model

GPT-5.3 Codex

Coding Specialist

Monthly Cost (Est.)

~$100-500

Why This Model?

Frontier agentic coding model tuned for software engineering tasks

Use Case

Complex Reasoning & STEM

Recommended Model

GPT-6 Astra

Latest Flagship

Monthly Cost (Est.)

~$400-3K

Why This Model?

Built-in reasoning at the highest quality (note: hidden reasoning tokens)

Use Case

Enterprise Deep Reasoning

Recommended Model

GPT-5.5 Pro

Premium Tier

Monthly Cost (Est.)

~$500-5K

Why This Model?

Deep-horizon reasoning for high-stakes enterprise workflows

Use Case

Content Writing

Recommended Model

GPT-5.6 Terra

Balanced

Monthly Cost (Est.)

~$50-300

Why This Model?

Strong quality-to-cost ratio for creative and long-form content

Use Case

Data Extraction & Classification

Recommended Model

GPT-6 Luna + Batch

Budget-Friendly

Monthly Cost (Est.)

~$5-60

Why This Model?

Lowest cost with 50% batch discount for structured extraction

Use Case

Non-Reasoning ChatGPT-style Chat

Recommended Model

chat-latest

No hidden reasoning

Monthly Cost (Est.)

~$50-400

Why This Model?

ChatGPT's model without reasoning-token billing surprises

OpenAI API Rate Limits & Usage Tiers

Usage Tier

Free

Qualification

Supported country

Monthly Usage Limit

$100 / month

Astra, Sol, Terra

-

Luna

-

Usage Tier

Build

Qualification

$5 in credit purchases

Monthly Usage Limit

$500 / month

Astra, Sol, Terra

5K RPM

1M TPM

Luna

5K RPM

2M TPM

Usage Tier

Launch

Qualification

$100 in credit purchases

Monthly Usage Limit

$5,000 / month

Astra, Sol, Terra

10K RPM

4M TPM

Luna

10K RPM

10M TPM

Usage Tier

Grow

Qualification

$500 in credit purchases

Monthly Usage Limit

$200,000 / month

Astra, Sol, Terra

15K RPM

40M TPM

Luna

30K RPM

180M TPM

RPM: Requests Per Minute | TPM: Tokens Per Minute. Standard-tier limits for the GPT-6 and GPT-5.6 families. Your tier upgrades automatically as total credit purchases reach each threshold, and the monthly usage limit is separate from any spend limit you set. Ultrafast has its own limits, and limits for other models are shown under Settings > Organization > Limits in the OpenAI dashboard.

Catch Reasoning Token Spikes Before They Hit Your Bill

Monitor your OpenAI credit balance from your menubar, with budget alerts for the GPT-5.5, GPT-5.4, and GPT-5.3 Codex tiers. Catch reasoning-token and Priority-tier spend before it hits your bill.

Free 7-day trial. No sign-up, no credit card.

CostGoat desktop app showing AI agent quotas, usage costs, credit balances, and subscriptions

OpenAI API Pricing FAQ

Common questions about OpenAI API costs, billing, models, and optimization

AI Pricing

Gemini API PricingClaude API PricingGoogle Veo PricingAI Cost CalculatorsReplicate API PricingOpenRouter API PricingOpenRouter Free Models
DownloadsPricingDealsLLC BankingAccountContactIssuesAffiliatesTermsPrivacy

© 2026 CostGoat. All rights reserved.

Made by Functioncraft: Redis GUI Client · SSH GUI Client · Code Signing Costs

Affiliate disclosure: Some links earn CostGoat a commission or credit when you sign up, at no extra cost to you.