Introducing GPT-5 for developers

OpenAI Blog Models

Summary

OpenAI releases GPT-5 in their API platform, a state-of-the-art model achieving 74.9% on SWE-bench Verified and excelling at coding, agentic tasks, and long-context reasoning. The release includes three model sizes (gpt-5, gpt-5-mini, gpt-5-nano) and new API features like verbosity control, minimal reasoning mode, and custom tools.

Introducing GPT-5 in our API platform—offering high reasoning performance, new controls for devs, and best-in-class results on real coding tasks.
Original Article
View Cached Full Text

Cached at: 04/20/26, 02:47 PM

# Introducing GPT‑5 for developers Source: [https://openai.com/index/introducing-gpt-5-for-developers/](https://openai.com/index/introducing-gpt-5-for-developers/) Today, we’re releasing GPT‑5 in our API platform—our best model yet for coding and agentic tasks\. GPT‑5 is state\-of\-the\-art \(SOTA\) across key coding benchmarks, scoring 74\.9% on SWE\-bench Verified and 88% on Aider polyglot\. We trained GPT‑5 to be a true coding collaborator\. It excels at producing high\-quality code and handling tasks such as fixing bugs, editing code, and answering questions about complex codebases\. The model is steerable and collaborative—it can follow very detailed instructions with high accuracy and can provide upfront explanations of its actions before and between tool calls\. The model also excels at front\-end coding, beating OpenAI o3 at frontend web development 70% of the time in internal testing\. We trained GPT‑5 on real\-world coding tasks in collaboration with early testers across startups and enterprises\.**Cursor**says GPT‑5 is “the smartest model \[they’ve\] used” and “remarkably intelligent, easy to steer, and even has a personality \[they\] haven’t seen in other models\.”**Windsurf**shared GPT‑5 is SOTA on their evals and “has half the tool calling error rate over other frontier models\.”**Vercel**says “it’s the best frontend AI model, hitting top performance across both the aesthetic sense and the code quality, putting it in a category of its own\.” GPT‑5 also excels at long\-running agentic tasks—achieving SOTA results on τ2\-bench telecom \(96\.7%\), a tool\-calling benchmark released just 2 months ago\. GPT‑5’s improved tool intelligence lets it reliably chain together dozens of tool calls—both in sequence and in parallel—without losing its way, making it far better at executing complex, real\-world tasks end to end\. It also follows tool instructions more precisely, is better at handling tool errors, and excels at long\-context content retrieval\.**Manus**says GPT‑5 “achieved the best performance \[they’ve\] ever seen from a single model on \[their\] internal benchmarks\.”**Notion**says “\[the model’s\] rapid responses, especially in low reasoning mode, make GPT‑5 an ideal model when you need complex tasks solved in one shot\.”**Inditex**shared “what truly sets \[GPT‑5\] apart is the depth of its reasoning: nuanced, multi\-layered answers that reflect real subject\-matter understanding\.” We’re introducing new features in our API to give developers more control over model responses\. GPT‑5 supports a new`verbosity`parameter \(values:`low`,`medium`,`high`\) to help control whether answers are short and to the point or long and comprehensive\. GPT‑5’s`reasoning\_effort`parameter can now take a minimal value to get answers back faster, without extensive reasoning first\. We’ve also added a new tool type—custom tools—to let GPT‑5 call tools with plaintext instead of JSON\. Custom tools support constraining by developer\-supplied context\-free grammars\. We’re releasing GPT‑5 in three sizes in the API—`gpt\-5`,`gpt\-5\-mini`, and`gpt\-5\-nano`—to give developers more flexibility to trade off performance, cost, and latency\. While GPT‑5 in ChatGPT is a system of reasoning, non\-reasoning, and router models, GPT‑5 in the API platform is the reasoning model that powers maximum performance in ChatGPT\. Notably, GPT‑5 with minimal reasoning is a different model than the non\-reasoning model in ChatGPT, and is better tuned for developers\. The non\-reasoning model used in ChatGPT is available as`gpt\-5\-chat\-latest`\. To read about GPT‑5 in ChatGPT, and learn more about other ChatGPT improvements, see our[research blog](https://openai.com/index/introducing-gpt-5/)\. For more on how enterprises are excited to use GPT‑5, see our[enterprise blog⁠](https://openai.com/index/gpt-5-new-era-of-work/)\. GPT‑5 is the strongest coding model we’ve ever released\. It outperforms o3 across coding benchmarks and real\-world use cases, and has been fine\-tuned to shine in agentic coding products like Cursor, Windsurf, GitHub Copilot, and Codex CLI\. GPT‑5 impressed our alpha testers, setting records on many of their private internal evals\. On SWE\-bench Verified, an evaluation based on real\-world software engineering tasks, GPT‑5 scores 74\.9%, up from o3’s 69\.1%\. Notably, GPT‑5 achieves its high score with greater efficiency and speed: relative to o3 at high reasoning effort, GPT‑5 uses 22% fewer output tokens and 45% fewer tool calls\. In[SWE\-bench Verified⁠](https://openai.com/index/introducing-swe-bench-verified/),a model is given a code repository and issue description, and must generate a patch to solve the issue\. Text labels indicate the reasoning effort\. Our scores omit 23 of 500 problems whose solutions did not reliably pass on our infrastructure\. GPT‑5 was given a short prompt that emphasized verifying solutions thoroughly; the same prompt did not benefit o3\. On Aider polyglot, an evaluation of code editing, GPT‑5 sets a new record of 88%, a one\-third reduction in error rate compared to o3\. In[Aider polygot⁠\(opens in a new window\)](https://aider.chat/2024/12/21/polyglot.html#the-polyglot-benchmark)\(diff\), a model is given a coding exercise from Exercism and must write its solution as a code diff\. Reasoning models were run with high reasoning effort\. We’ve also found GPT‑5 to be excellent at digging deep into codebases to answer questions about how various pieces work or interoperate\. In a codebase as complicated as OpenAI’s reinforcement learning stack, we’re finding that GPT‑5 can help us reason about and answer questions about our code, accelerating our own day\-to\-day work\. When producing frontend code for web apps, GPT‑5 is more aesthetically\-minded, ambitious, and accurate\. In side\-by\-side comparisons with o3, GPT‑5 was preferred by our testers 70% of the time\. Here are some fun, cherry\-picked examples of what GPT‑5 can do with a single prompt: GPT‑5 is a better collaborator, particularly in agentic coding products like Cursor, Windsurf, GitHub Copilot, and Codex CLI\. While it works, GPT‑5 can output plans, updates, and recaps in between tool calls\. Relative to our past models, GPT‑5 is more proactive at completing ambitious tasks without pausing for your go\-ahead or balking at high complexity\. Here’s an example of how GPT‑5 can look while tackling a complex task \(in this case, creating a website for a restaurant\): After the user asks for a website for their restaurant, GPT‑5 shares a quick plan, scaffolds the app, installs dependencies, creates the site content, runs a build to check for compilation errors, summarizes its work, and suggests potential next steps\. This video has been sped up ~3x to save you the wait; the full duration to create the website was about three minutes\. Beyond agentic coding, GPT‑5 is better at agentic tasks generally\. GPT‑5 sets new records on benchmarks of instruction following \(69\.6% on Scale MultiChallenge, as graded by o3‑mini\) and tool calling \(96\.7% on τ2\-bench telecom\)\. Improved tool intelligence allows GPT‑5 to more reliably chain together actions to accomplish real\-world tasks\. GPT‑5 follows instructions more reliably than any of its predecessors, scoring highly on COLLIE, Scale MultiChallenge, and our internal instruction following eval\. In[COLLIE⁠\(opens in a new window\)](https://arxiv.org/pdf/2307.08689), models must write text that meets various constraints\. In[Scale MultiChallenge⁠\(opens in a new window\)](https://arxiv.org/abs/2501.17399),models are challenged on multi\-turn conversations to properly use four types of information from previous messages\. Our scores come from using o3‑mini as a grader, which was more accurate than GPT‑4o\. In our internal OpenAI API instruction following eval, models must follow difficult instructions derived from real developer feedback\. Reasoning models were run with high reasoning effort\. We worked hard to improve tool calling in the ways that matter to developers\. GPT‑5 is better at following tool instructions, better at dealing with tool errors, and better at proactively making many tool calls in sequence or in parallel\. When instructed, GPT‑5 can also output preamble messages before and between tool calls to update users on progress during longer agentic tasks\. Two months ago, τ2\-bench telecom was published by Sierra\.ai as a challenging tool use benchmark that highlighted how language model performance drops significantly when interacting with an environment state that can be changed by users\. In their[publication⁠\(opens in a new window\)](https://arxiv.org/pdf/2506.07982), no model scored above 49%\. GPT‑5 scores 97%\. In[τ2\-bench⁠\(opens in a new window\)](https://arxiv.org/pdf/2506.07982),a model must use tools to accomplish a customer service task, where there may be a user who can communicate and can take actions on the world state\. Reasoning models were run with high reasoning effort\. GPT‑5 shows strong improvements to long\-context performance as well\. On OpenAI\-MRCR, a measure of long\-context information retrieval, GPT‑5 outperforms o3 and GPT‑4\.1, by a margin that grows substantially at longer input lengths\. In[OpenAI\-MRCR⁠\(opens in a new window\)](https://huggingface.co/datasets/openai/mrcr)\(multi\-round co\-reference resolution\), multiple identical “needle” user requests are inserted into long “haystacks” of similar requests and responses, and the model is asked to reproduce the response to i\-th needle\. Mean match ratio measures the average string match ratio between the model’s response and the correct answer\. The points at 256k max input tokens represent averages over 128k–256k input tokens, and so forth\. Here, 256k represents 256 \* 1,024 = 262,114 tokens\. Reasoning models were run with high reasoning effort\. We’re also open sourcing[BrowseComp Long Context⁠\(opens in a new window\)](https://huggingface.co/datasets/openai/BrowseCompLongContext), a new benchmark for evaluating long\-context Q&A\. In this benchmark, the model is given a user query, a long list of relevant search results, and must answer the question based on the search results\. We designed BrowseComp Long Context to be realistic, difficult, and have reliably correct ground truth answers\. On inputs that are 128K–256K tokens, GPT‑5 gives the correct answer 89% of the time\. In the API, all GPT‑5 models can accept a maximum of 272,000 input tokens and emit a maximum of 128,000 reasoning & output tokens, for a total context length of 400,000 tokens\. GPT‑5 is more trustworthy than our prior models\. On prompts from LongFact and FactScore benchmarks, GPT‑5 makes ~80% fewer factual errors than o3\. This makes it better suited for agentic use cases where correctness matters—especially in code, data, and decision\-making\. Higher scores are worse\.[LongFact⁠\(opens in a new window\)](https://arxiv.org/abs/2403.18802)and[FActScore⁠\(opens in a new window\)](https://arxiv.org/abs/2305.14251)consist of open\-ended fact\-seeking questions\. We use an LLM\-based grader with browsing to fact\-check responses on prompts from these benchmarks and measure the fraction of factually incorrect claims\. Implementation and grading details can be found in the[system card⁠](https://openai.com/index/gpt-5-system-card/)\. Reasoning models used high reasoning effort\. Search was not enabled\. Generally, GPT‑5 has been trained to be more self\-aware of its own limitations and better able to handle unexpected curveballs\. We also trained GPT‑5 to be much more accurate on health questions \(read more in our[research blog\)](https://openai.com/index/introducing-gpt-5/)\. As with all language models, we recommend you verify GPT‑5’s work when the stakes are high\. Developers can control GPT‑5’s thinking time via the`reasoning\_effort`parameter in the API\. In addition to the prior values—`low`,`medium`\(default\), and`high`—GPT‑5 also supports`minimal`, which minimizes GPT‑5’s reasoning to return an answer quickly\. Higher`reasoning\_effort`values maximize quality and lower values maximize speed\. Not all tasks benefit equally from additional reasoning, so we recommend experimenting to see which works best for the use cases you care about\. For example, reasoning above`low`adds little to relatively simple long\-context retrieval, but adds quite a few percentage points to[CharXiv Reasoning⁠\(opens in a new window\)](https://arxiv.org/abs/2406.18521), a visual reasoning benchmark\. GPT‑5’s reasoning effort yields different benefits on different tasks\. For CharXiv Reasoning, GPT‑5 was given access to a python tool\. To help steer the default length of GPT‑5’s answers, we’ve introduced a new API parameter`verbosity`, which takes values of`low`,`medium`\(default\), and`high`\. If explicit instructions conflict with the verbosity parameters, explicit instructions take precedent\. For example, if you ask GPT‑5 to “write a 5 paragraph essay”, the model’s response should always be 5 paragraphs regardless of the verbosity level \(however, the paragraphs themselves may be longer or shorter\)\. If instructed, GPT‑5 will output user\-visible preamble messages before and between tool calls\. Unlike hidden reasoning messages, these visible messages allow GPT‑5 to communicate plans and progress to the user, helping end users understand its approach and intent behind the tool calls\. We’re introducing a new tool type—custom tools—that allows GPT‑5 to call a tool with plaintext instead of JSON\. To constrain GPT‑5 to follow custom tool formats, developers can supply a regex, or even a more fully specified[context\-free grammar⁠\(opens in a new window\)](https://platform.openai.com/docs/guides/function-calling#context-free-grammars)\. Previously, our interface for developer\-defined tools required them to be called with JSON, a common format used by web APIs and developers generally\. However, outputting valid JSON requires the model to perfectly escape all quotation marks, backslashes, newlines, and other control characters\. Although our models are well\-trained to output JSON, on long inputs like hundreds of lines of code or a 5\-page report, the odds of an error creep up\. With custom tools, GPT‑5 can write tool inputs as plaintext, without having to escape all of the characters that require escaping\. On SWE\-bench Verified using custom tools instead of JSON tools, GPT‑5 scores about the same\. GPT‑5 advances the frontier on safety and is a more robust, reliable, and helpful model\. GPT‑5 is significantly less likely to hallucinate than our previous models, more honestly communicates its actions and capabilities to the user and provides the most helpful answer where possible while still staying within safety boundaries\. You can read more in our[research blog](https://openai.com/index/introducing-gpt-5/)\. GPT‑5 is available now in the API platform in three sizes:`gpt\-5`,`gpt\-5\-mini`, and`gpt\-5\-nano`\. It’s available on the Responses API, Chat Completions API, and is the default in Codex CLI\. GPT‑5 is priced at $1\.25/1M input tokens and $10/1M output tokens, GPT‑5 mini is priced at $0\.25/1M input tokens and $2/1M output tokens, and GPT‑5 nano is priced at $0\.05/1M input tokens and $0\.40/1M output tokens\. These models support the`reasoning\_effort`and`verbosity`API parameters, as well as custom tools\. They also support parallel tool calling, built\-in tools \(web search, file search, image generation, and more\), core API features \(streaming, Structured Outputs, and more\), and cost\-saving features such as prompt caching and Batch API\. The non\-reasoning version of GPT‑5 used in ChatGPT is available in the API as`gpt\-5\-chat\-latest`, also priced at $1\.25/1M input tokens and $10/1M output tokens\. GPT‑5 is also launching across Microsoft platforms, including Microsoft 365 Copilot, Copilot, GitHub Copilot, and Azure AI Foundry\. ##### Intelligence \[1\] There is a small discrepancy with numbers reported in our previous blog post, as those were run on a former version of HLE\. ##### Multimodal ##### Coding \[2\] We omit 23/500 problems that could not run on our infrastructure\. The full list of 23 tasks omitted are 'astropy\_\_astropy\-7606', 'astropy\_\_astropy\-8707', 'astropy\_\_astropy\-8872', 'django\_\_django\-10097', 'django\_\_django\-7530', 'matplotlib\_\_matplotlib\-20488', 'matplotlib\_\_matplotlib\-20676', 'matplotlib\_\_matplotlib\-20826', 'matplotlib\_\_matplotlib\-23299', 'matplotlib\_\_matplotlib\-24970', 'matplotlib\_\_matplotlib\-25479', 'matplotlib\_\_matplotlib\-26342', 'psf\_\_requests\-6028', 'pylint\-dev\_\_pylint\-6528', 'pylint\-dev\_\_pylint\-7080', 'pylint\-dev\_\_pylint\-7277', 'pytest\-dev\_\_pytest\-5262', 'pytest\-dev\_\_pytest\-7521', 'scikit\-learn\_\_scikit\-learn\-12973', 'sphinx\-doc\_\_sphinx\-10466', 'sphinx\-doc\_\_sphinx\-7462', 'sphinx\-doc\_\_sphinx\-8265', and 'sphinx\-doc\_\_sphinx\-9367'\. ##### Instruction Following \[3\] Note: we find that the default grader in MultiChallenge \(GPT\-4o\) frequently mis\-scores model responses\. We find that swapping the grader to a reasoning model, like o3\-mini, improves accuracy on grading significantly on samples we’ve inspected\. ##### Function Calling ##### Long Context ##### Hallucinations

Similar Articles

Introducing GPT-5.4

OpenAI Blog

OpenAI is releasing GPT-5.4 and GPT-5.4 Pro across ChatGPT, the API, and Codex, featuring native computer-use capabilities, 1M token context, improved reasoning and coding, and state-of-the-art performance on professional knowledge work benchmarks. It is described as OpenAI's most capable and token-efficient reasoning model to date.

Introducing GPT-5.1 for developers

OpenAI Blog

OpenAI releases GPT-5.1, a new model in the GPT-5 series that dynamically adapts thinking time based on task complexity, offering 2-3x faster performance than GPT-5 while maintaining frontier intelligence. The release includes extended prompt caching (24-hour retention), new coding tools (apply_patch and shell), and a 'no reasoning' mode for latency-sensitive applications.

Introducing GPT-5

OpenAI Blog

OpenAI introduces GPT-5, a significant leap in AI intelligence featuring state-of-the-art performance across coding, math, writing, health, and visual perception. The unified system includes a smart efficient model, a deeper reasoning model (GPT-5 thinking), and a real-time router for optimal response selection.

Introducing GPT-5.2

OpenAI Blog

OpenAI introduces GPT-5.2, the most capable model series yet, with significant improvements in knowledge work, code generation, image perception, long-context understanding, and tool-calling. The GPT-5.2 Thinking variant achieves state-of-the-art performance on professional benchmarks, outperforming human experts on 70.9% of GDPval tasks across 44 occupations.

Introducing GPT-5.5

OpenAI Blog

OpenAI has released GPT-5.5, a significant upgrade to its frontier AI model, boasting superior capabilities in agentic coding, research, and multi-step task execution while maintaining efficiency and speed.