← All models
O

GPT-5

OpenAI

OpenAI's next-generation flagship — significant capability jump over GPT-4.1 with 1M context

Input price$8.00 / 1M tokens
Output price$32.00 / 1M tokens
Context window1M tokens
Last updated2026-05-20

Quick calculator

tokens
tokens
req/day
Per request
$0.0240
Daily
$240.00
Monthly
$7,200.00
per month · 30-day estimate
Yearly
$87,600.00

Tips to reduce cost

  • Use prompt caching to reuse repeated system prompts
  • Trim whitespace and reduce verbose instructions
  • Use a smaller model for classification or routing tasks
  • Batch async requests to get 50% discount (OpenAI/Anthropic)
  • Cache identical requests at the application layer

Similar models from OpenAI

Compared at your current token settings

About GPT-5

GPT-5 is a premium large language model from openai, priced at $8/1M input tokens and $32/1M output tokens. It is priced above the market average and best suited for frontier tasks & agents. The 1M context window makes it suitable for very long documents, large codebases, and book-length inputs.

For most production workloads, the cost breakdown is dominated by input tokens (system prompts, context, retrieved documents) rather than output. At this price point, GPT-5 is positioned for use cases where quality justifies the premium over cheaper alternatives.

GPT-5 supports prompt caching at $4/1M — a 50% discount on repeated input tokens. For applications with a fixed system prompt or repeated document context (RAG, chatbots, agents), enabling caching is the single highest-leverage cost optimization available.

Frequently Asked Questions

How much does GPT-5 cost per 1,000 tokens?
GPT-5 costs $0.0080 per 1,000 input tokens and $0.0320 per 1,000 output tokens.
What is GPT-5's context window?
GPT-5 supports a context window of 1M tokens, which is suitable for very long documents, large codebases, and extended multi-turn conversations.
How does GPT-5 compare to GPT-4o on price?
GPT-5 is priced above the market average on input tokens. At $8/1M input vs $2.50/1M for GPT-4o, the cost difference becomes significant at scale — 10,000 requests/day with 1,000 input tokens each costs $2400/month with GPT-5 vs $750/month with GPT-4o.
Does GPT-5 support prompt caching?
Yes. GPT-5 supports prompt caching at $4/1M tokens — a 50% discount on repeated input. This is especially effective for RAG pipelines and chatbots with large system prompts that repeat across requests.

Compare GPT-5 with other models

GPT-5 vs Claude Fable 5GPT-5 vs Gemini 3 UltraGPT-5 vs Claude Opus 4.8GPT-5 vs Claude Opus 4.7GPT-5 vs Claude Opus 4.6GPT-5 vs Grok 3 Fast