# GPT-5

> OpenAI's unified flagship that routes between a fast model and deep reasoning.

- Maker: OpenAI
- Line: GPT (Flagship / Thinking)
- Canonical page: https://ai-tldr.dev/models/gpt-5/
- Updated: 2026-06-18

## In short

GPT-5 is OpenAI's flagship large language model, released on August 7, 2025. It has a 400K-token context window and costs $1.25 per million input tokens and $10.00 per million output tokens. You can use it through OpenAI.

## Facts

| Fact | Value | Source |
| --- | --- | --- |
| Context window | 400K (max output 128K) | [1] |
| Input price | $1.25 / 1M tokens (cached $0.125 / 1M tokens) | [2] |
| Output price | $10.00 / 1M tokens | [2] |
| Licence | Proprietary · API only | [1] |
| Released | 7 August 2025 | [3] |
| Parameters | Not disclosed | [1] |
| Knowledge cutoff | September 30, 2024 | [1] |

## Sources

1. [GPT-5 — Wikipedia](https://en.wikipedia.org/wiki/GPT-5)
2. [GPT-5 — OpenAI API model docs](https://developers.openai.com/api/docs/models/gpt-5)
3. [Introducing GPT-5 — OpenAI announcement](https://openai.com/index/introducing-gpt-5/)

## Overview

GPT-5 is OpenAI's flagship large language model, released on August 7, 2025. Rather than shipping as a single model, GPT-5 is a unified system: a fast, high-throughput model (gpt-5-main) handles most queries, a deeper reasoning model (gpt-5-thinking) tackles harder problems, and a real-time router decides which to use based on the conversation's complexity, tool needs, and your explicit intent. This let OpenAI fold its previous fast and reasoning model families into one product.

Available through the OpenAI API and ChatGPT, GPT-5 supports text and image input with text output, a 400,000-token context window, and up to 128,000 output tokens (which include the model's internal reasoning tokens). Its training data has a knowledge cutoff of September 30, 2024. A higher-effort variant, GPT-5 pro, offers extended reasoning for the most demanding tasks.

At launch GPT-5 posted state-of-the-art results on math, coding, and science benchmarks while cutting hallucination rates relative to earlier OpenAI models, and it priced aggressively at $1.25 per million input tokens and $10 per million output tokens. It has since been superseded by GPT-5.1 and later releases in the GPT-5 line, with OpenAI steering new development toward the newer variants.

## Benchmarks

- AIME 2025 (no tools): 94.6% ([source](https://openai.com/index/introducing-gpt-5/))
- SWE-bench Verified: 74.9% ([source](https://openai.com/index/introducing-gpt-5/))
- GPQA Diamond (no tools): 88.4% ([source](https://openai.com/index/introducing-gpt-5/))
- Aider Polyglot: 88% ([source](https://www.vellum.ai/blog/gpt-5-benchmarks))

## Pricing

- Input: $1.25 / 1M tokens per 1M tokens
- Cached input: $0.125 / 1M tokens per 1M tokens
- Output: $10.00 / 1M tokens per 1M tokens

Launch API pricing for the full GPT-5 model; mini and nano variants are cheaper. Cached input receives a 90% discount.

Source: https://developers.openai.com/api/docs/models/gpt-5

## Strengths

- Unified router automatically picks fast answers or deep reasoning, removing the need to manually choose a model
- Strong competition-math performance (94.6% on AIME 2025 without tools)
- Leading agentic coding results (74.9% on SWE-bench Verified)
- Large 400K-token context window for full codebases and long documents
- Lower hallucination and error rates than prior OpenAI models
- Aggressive API pricing ($1.25/$10 per million tokens) with a 90% cached-input discount

## Best for

- Agentic coding: multi-step bug fixing, refactoring, and pull-request-scale changes across a repository
- Complex reasoning over math, science, and finance problems
- Long-document and full-codebase analysis using the 400K context window
- Tool-using agents that chain API calls and external actions
- Drafting, editing, and technical writing with reduced hallucination
- Multimodal tasks that combine text prompts with image input

## How to access

- [OpenAI](https://developers.openai.com/api/docs/models/gpt-5) — model id `gpt-5`

## GPT (Flagship / Thinking) versions

- [GPT-5.5](https://ai-tldr.dev/models/gpt-5-5/) (23 April 2026)
- [GPT-5.4](https://ai-tldr.dev/models/gpt-5-4/) (5 March 2026)
- [GPT-5.2](https://ai-tldr.dev/models/gpt-5-2/) (11 December 2025)
- [GPT-5.1](https://ai-tldr.dev/models/gpt-5-1/) (12 November 2025)
- GPT-5 (7 August 2025) — this page
- [GPT-4o](https://ai-tldr.dev/models/gpt-4o/) (13 May 2024)

## FAQ

### When was GPT-5 released?

GPT-5 was released on August 7, 2025, available through ChatGPT and the OpenAI API. It has since been superseded by GPT-5.1 and later models in the GPT-5 line.

### What is GPT-5's context window and max output?

GPT-5 has a 400,000-token context window and can produce up to 128,000 output tokens, which include the model's internal reasoning tokens.

### How much does the GPT-5 API cost?

At launch the full GPT-5 model was priced at $1.25 per million input tokens and $10 per million output tokens, with cached input at $0.125 per million (a 90% discount). Mini and nano variants cost less.

### What makes GPT-5 different from earlier OpenAI models?

GPT-5 is a unified system, not a single model. A real-time router decides whether to answer with a fast model (gpt-5-main) or a deeper reasoning model (gpt-5-thinking) based on the query's complexity, so you no longer have to pick a model manually.

## Links

- [Introducing GPT-5 — OpenAI announcement](https://openai.com/index/introducing-gpt-5/)
- [GPT-5 — OpenAI API model docs](https://developers.openai.com/api/docs/models/gpt-5)
- [GPT-5 — Wikipedia](https://en.wikipedia.org/wiki/GPT-5)
- [GPT-5 key characteristics, pricing and model card — Simon Willison](https://simonwillison.net/2025/Aug/7/gpt-5/)
- [GPT-5 Benchmarks — Vellum](https://www.vellum.ai/blog/gpt-5-benchmarks)

Source: AI/TLDR LLM registry, https://ai-tldr.dev/models/gpt-5/
