TTokenCost

GPT-5 token cost & pricing

GPT-5 is OpenAI's flagship reasoning model and the default choice when a task involves multi-step logic, code generation or anything where a wrong answer is expensive. It carries a 400K context window and supports adjustable reasoning effort, which means the same model can answer a quick classification question or spend a minute working through a hard math problem.

Input
$1.25
per 1M tokens
Output
$10
per 1M tokens
Context window
400K
tokens

GPT-5 specifications

VendorOpenAI
Input price$1.25 / 1M tokens
Output price$10 / 1M tokens
Cached input price$0.125 / 1M tokens (90% cheaper)
Context window400,000 tokens
Max output128,000 tokens
Open weightsNo
Price rank12 of 17 (cheapest first)
Best forreasoning, coding, long-context

What GPT-5 costs in practice

Four common workloads, priced at list rates. Monthly figures assume 30 days.

WorkloadPer requestRequests/dayPer month
Chatbot · 1K in / 500 out$0.006310,000$1,875
RAG Q&A · 8K in / 400 out$0.015,000$2,100
Doc summary · 30K in / 1K out$0.051,000$1,425
Code agent · 60K in / 3K out$0.10500$1,575

How many requests does $100 buy?

Assuming a 1,000-token prompt and a 500-token response per request.

16,000 requests
at $0.0063 each · $6.25 per 1,000 requests

How GPT-5 pricing actually works

At $1.25 per million input tokens and $10 per million output, GPT-5 sits in the middle of the frontier tier — cheaper than Claude Opus 4.1 on both sides, more expensive than Gemini 2.5 Pro. The 8x input-to-output ratio is the number that matters: if you generate long responses, output dominates your bill. Cached input at $0.125 per million is 90% off list, so any application reusing a large system prompt should enable caching before anything else.

When to use GPT-5

Reach for GPT-5 when correctness matters more than latency: agentic coding, data analysis, complex extraction, multi-document synthesis. Avoid it for simple classification, sentiment tagging or short chat replies — GPT-5 mini handles those at roughly a fifth of the input price and a fifth of the output price, and the quality difference is usually invisible on easy inputs.

How to cut your GPT-5 bill

Two levers move GPT-5 costs the most. First, trim the system prompt — every redundant few hundred tokens is paid on every request. Second, route: send low-confidence or simple cases to GPT-5 mini and escalate only when needed. Teams that route typically cut spend 50-70% versus running everything on the flagship.

Other OpenAI models

GPT-5 mini
budget · high-volume
$0.25 / $2
GPT-5 nano
cheapest · classification
$0.05 / $0.4
GPT-4o
multimodal · general
$2.5 / $10
GPT-4o mini
budget · multimodal
$0.15 / $0.6

Cheaper alternatives to GPT-5

Run the numbers on your own prompt

Paste your actual text into the token counter to get an exact count instead of an estimate. Nothing is uploaded.

Open the calculator →