OpenAI Releases GPT-4.1 API With One Million Token Context
OpenAI released GPT-4.1 via API with a one million token context window, targeting developers building complex applications.
What Happened
OpenAI released GPT-4.1, a new large language model available through its API, featuring a context window of one million tokens. The model is positioned for developer and enterprise use cases that require processing large volumes of text, code, or structured data in a single request.
The release makes GPT-4.1 available to API customers immediately. OpenAI also released two smaller variants alongside the flagship model: GPT-4.1 Mini and GPT-4.1 Nano, intended for lower-latency and lower-cost applications respectively.
Background
OpenAI, the San Francisco-based AI company backed by Microsoft, has built its commercial business substantially around API access to its language models. The GPT-4 family of models has been the company's primary revenue-generating product line since the release of GPT-4 in March 2023.
A one million token context window represents a significant increase from earlier GPT-4 variants, which were capped at 128,000 tokens in their extended versions. For reference, one million tokens is roughly equivalent to several full-length novels or a large codebase, allowing the model to process substantially longer documents or conversation histories in a single inference call.
Google's Gemini 1.5 Pro introduced a one million token context window in early 2024, and Gemini 2.5 Pro, released recently, also supports that capacity. The GPT-4.1 release brings OpenAI's flagship API model to a comparable context length.
What the Model Does
GPT-4.1 is described by OpenAI as optimized for instruction following, coding tasks, and long-context comprehension. The company stated in its release materials that the model shows improvements on coding benchmarks compared to GPT-4o, the previously available general-purpose model in the GPT-4 family.
The three-tier release structure, covering GPT-4.1, GPT-4.1 Mini, and GPT-4.1 Nano, follows a pattern OpenAI established with the GPT-4o family, offering developers a range of price and performance options within a single model generation. Pricing details for all three variants were published in OpenAI's API documentation at the time of release.
OpenAI specified that GPT-4.1 is an API-only release and is not being deployed in ChatGPT at launch. The model is accessible to developers through the same API endpoints used for existing GPT-4 family models.
Context Window Size in Practice
A one million token context window allows developers to submit very large inputs in a single API call. Practical applications include analysis of lengthy legal or financial documents, ingestion of full software repositories for code review or generation tasks, and extended multi-turn conversations without truncation.
Enterprise customers working with large document sets have cited context length as a limiting factor in deploying earlier models for certain workflows. The expanded context in GPT-4.1 addresses that constraint directly for API users, though latency and cost per call increase with longer inputs.
Market Position
OpenAI operates in a competitive API market that includes Anthropic's Claude model family, Google's Gemini API, and Meta's Llama models available for self-hosting. Each of these providers has released or updated models in recent weeks, reflecting an accelerated pace of model releases across the sector.
Microsoft, which has made multi-billion dollar investments in OpenAI and integrates OpenAI models into its Azure OpenAI Service, is expected to make GPT-4.1 available through Azure following the direct API launch.
What Comes Next
OpenAI has not announced a timeline for making GPT-4.1 available within the ChatGPT consumer product, and the company said further details on broader deployment would be shared at a later date.
Get our editors' take on what it all means. Read the Editor's Blog →