New GPT-3 capabilities: Edit & insert

OpenAI Blog Products

Summary

OpenAI announces new Edit and Insert capabilities for GPT-3 and Codex, enabling mid-file code completion and text editing. The Insert feature is being piloted in GitHub Copilot and is now available in beta via the completions API.

We’ve released new versions of GPT-3 and Codex which can edit or insert content into existing text, rather than just completing existing text.
Original Article Export to Word Export to PDF
View Cached Full Text

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

# New GPT-3 capabilities: Edit & insert Source: [https://openai.com/index/gpt-3-edit-insert/](https://openai.com/index/gpt-3-edit-insert/) Insert is particularly useful for writing code\. In fact, Codex was our original motivation for developing this capability, since in software development we typically add code to the middle of an existing file where code is present before and after the completion\. In the example above, the model successfully completes the missing function`prune`, while connecting to code already written\. We also add a docstring and missing imports, which is not possible without knowing the code that comes after\. In GitHub Copilot, Insert is currently being piloted with early promising results\. The insert capability is available in the API today in beta, as part of the[completions endpoint⁠\(opens in a new window\)](https://beta.openai.com/docs/guides/completion/introduction)and via a new interface in[Playground⁠\(opens in a new window\)](https://beta.openai.com/playground)\. The capability can be used with the latest versions of GPT‑3 and Codex,`text\-davinci\-002`and`code\-davinci\-002`\.[Pricing⁠](https://openai.com/api/pricing/)is the same as previous versions of Davinci\.

Similar Articles

OpenAI Codex

OpenAI Blog

OpenAI Codex is a GPT-3 descendant trained on natural language and billions of lines of source code, capable of generating working code across 15+ programming languages with 3.5x more context memory than GPT-3, now available in private beta via API.

Addendum to GPT-5 system card: GPT-5-Codex

OpenAI Blog

OpenAI has released GPT-5-Codex, a version of GPT-5 optimized for agentic coding tasks, trained with reinforcement learning on real-world coding environments. It is available via Codex CLI, IDE extensions, GitHub, and ChatGPT mobile, with comprehensive safety measures including sandboxing and prompt injection mitigations.

Introducing GPT-5.2-Codex

OpenAI Blog

OpenAI releases GPT-5.2-Codex, an advanced agentic coding model optimized for complex software engineering tasks with improvements in long-context understanding, Windows support, and cybersecurity capabilities. The model achieves state-of-the-art performance on SWE-Bench Pro and Terminal-Bench 2.0, and is now available to paid ChatGPT users with API access coming in the following weeks.

Coding and design with GPT-5

OpenAI Blog

OpenAI announces GPT-5 capabilities for coding and design tasks, demonstrating advanced applications of the latest model across software development and creative design workflows.

Introducing upgrades to Codex

OpenAI Blog

OpenAI releases GPT-5-Codex, an optimized version of GPT-5 specialized for agentic software engineering tasks, available via API and across Codex's integrated development environment with improved code review capabilities and long-form task execution.