Home » OpenAI Releases GPT-4.1 with 1-Million-Token Context Window

OpenAI Releases GPT-4.1 with 1-Million-Token Context Window

By

–

OpenAI Releases GPT-4.1 with 1-Million-Token Context Window

How much text can a language model hold in its head at once? For GPT-4.1, the answer is now one million tokens, up from 128K in the previous generation.

OpenAI released three models: GPT-4.1, GPT-4.1 mini and GPT-4.1 nano. They went straight into the API, and GPT-4.5 Preview is being retired. It will be sunset on July 14. According to OpenAI, feedback from testing 4.5 shaped the fine-tuning and deployment settings that now live in GPT-4.1, so developers on 4.5 are being steered to the new line. CryptoSlate called the shift a signal that GPT-4.5 had failed.

How the long window is used

A window that size lets a model take in a whole code repository, a stack of long documents or a multi-turn agent workflow in one call. To check that it can actually find things inside such a pile, OpenAI released MRCR, an open-source test of whether a model can retrieve specific details from dense blocks of text full of distractors. GPT-4.1 also scored 72% on the long-video, no-subtitles category of the Video-MME benchmark, which the report describes as a new high.

There is no surcharge. Long-context use is billed at standard API rates across the whole series.

The author of the CryptoSlate piece tried it. GPT-4.1 produced a simple Python dungeon crawler in 5 minutes and 5 prompts, and the code ran without errors. The only snags came from picking the right sprites out of an asset atlas. It also worked out what a large code repository did after a few prompts.

Coding and instruction numbers

OpenAI reports a 54.6% score for GPT-4.1 on SWE-bench Verified, which measures whether a model can write runnable patches for real repository issues. GPT-4o got 33.2% and GPT-4.5 got 38%. On Aider’s polyglot benchmark in diff format, GPT-4.1 reaches 53% accuracy, against 18% for GPT-4o. Scale’s MultiChallenge puts it at 38.3% versus 27.8%. Windsurf, an AI coding platform, said its internal evaluations found cleaner diffs and closer alignment with structured developer workflows.

The output limit now goes up to 32,768 tokens, enough to rewrite a full file in a single call. Paid graders preferred GPT-4.1 websites over GPT-4o’s in 80% of test cases.

The smaller models carry the same pitch. OpenAI says GPT-4.1 mini cuts latency by nearly 50% and cost by 83% compared with GPT-4o. Nano scores 80.1% on MMLU, 50.3% on GPQA and 9.8% on Aider’s polyglot coding, and is aimed at classification and autocomplete.

ChatGPT users stay on GPT-4o for now. The 4.1 models are available only through the API. OpenAI says GPT-4o and GPT-4o mini will keep their API support for the foreseeable future.

Sources

Get breaking stories first on our Telegram channel.

More stories by

Most read

AI Tools

Artificial Intelligence

Business

World News