OpenAI

GPT-4.1

GPT-4.1 is a text generation model developed by OpenAI and released in April 2025. It is positioned as OpenAI's flagship model for handling complex, multi-domain tasks and is available to developers via the OpenAI API. The model supports a 200,000-token context window, enabling it to process and reason over long documents, codebases, and extended conversations in a single request. Its training data has a knowledge cutoff of May 31, 2024. GPT-4.1 is designed for problem solving across a wide range of domains, including coding, analysis, instruction following, and structured output generation. It is an API-only model, meaning it is accessible through the OpenAI platform rather than through ChatGPT's consumer interface. Developers building agents, pipelines, or applications that require handling large amounts of context or complex multi-step instructions are the primary intended audience for this model.

Apr 14, 2025 200,000 context 32,768 tokens output
Long Context Window Text Generation Code Generation Instruction Following Structured Output Agentic Task Handling

Model Overview

High-signal model metadata in a structured two-column overview table.

Provider

The entity that provides this model.

OpenAI

Model ID

The routed model identifier exposed by upstream providers.

openai/gpt-4.1

Input Context Window

The number of tokens supported by the input context window.

200,000 tokens

Maximum Output Tokens

The number of tokens that can be generated by the model in a single request.

32,768 tokens tokens

Open Source

Whether the model's code is available for public use.

No

Release Date

When the model was first released.

Apr 14, 2025 1 year ago

Knowledge Cut-off Date

When the model's knowledge was last updated.

2024-06-30

API Providers

The providers that offer this model. This is not an exhaustive list.

Azure, OpenAI

Modalities

Types of data this model can process.

Text Image Code File

What is GPT-4.1

A fuller summary of positioning, capabilities, and source-specific details for GPT-4.1.

GPT-4.1 is a text generation model developed by OpenAI and released in April 2025. It is positioned as OpenAI's flagship model for handling complex, multi-domain tasks and is available to developers via the OpenAI API. The model supports a 200,000-token context window, enabling it to process and reason over long documents, codebases, and extended conversations in a single request. Its training data has a knowledge cutoff of May 31, 2024.

GPT-4.1 is designed for problem solving across a wide range of domains, including coding, analysis, instruction following, and structured output generation. It is an API-only model, meaning it is accessible through the OpenAI platform rather than through ChatGPT's consumer interface. Developers building agents, pipelines, or applications that require handling large amounts of context or complex multi-step instructions are the primary intended audience for this model.

Capabilities

What GPT-4.1 supports

CTX

Long Context Window

Processes up to 200,000 tokens in a single request, allowing it to handle full codebases, lengthy documents, or extended multi-turn conversations without truncation.

AI

Text Generation

Generates coherent, detailed text responses across domains including analysis, summarization, and open-ended question answering.

</>

Code Generation

Writes, explains, and debugs code across multiple programming languages, and is suited for agentic coding workflows that require multi-step reasoning.

AI

Instruction Following

Follows complex, multi-part instructions with high fidelity, making it well suited for structured pipelines and automated agent tasks.

JSON

Structured Output

Returns responses in structured formats such as JSON, enabling reliable integration with downstream systems and APIs.

AG

Agentic Task Handling

Supports multi-step, tool-using agent workflows where the model must plan, execute, and iterate across a sequence of actions.

Pricing for GPT-4.1

Primary API pricing shown in the same “quick compare” spirit as the reference page.

Price Comparison

Additional usage-cost dimensions synced into the project for this model.

Cache read $0.50
maxTemperature 1
maxResponseSize 32,768 tokens

API Access & Providers

Places where this model is available, based on the synced detail-page metadata.

Azure OpenAI

Provider Endpoints

Endpoint-level provider data currently available for this model.

Azure

1d uptime: 100.0% Supported params: 8 Implicit caching: Yes

Azure

1d uptime: 100.0% Supported params: 8 Implicit caching: Yes

OpenAI

Max output: 32,768 1d uptime: 99.9% Supported params: 8 Implicit caching: No

Model Performance

Benchmark scores synced from the current model source and normalized into the local catalog.

Benchmark Score
AIME 2024
American math olympiad problems
43.7%
GPQA Diamond
PhD-level science questions (biology, physics, chemistry)
66.6%
HLE
Questions that challenge frontier models across many domains
4.6%
LiveCodeBench
Real-world coding tasks from recent competitions
45.7%
MATH-500
Undergraduate and competition-level math problems
91.3%
MMLU-Pro
Expert knowledge across 14 academic disciplines
80.6%
SciCode
Scientific research coding and numerical methods
38.1%

Resources & Documentation

Official model cards, release notes, docs, and other references synced from the source page.

Community discussion

What people think about GPT-4.1

GPT-4.1 discussions are most active in r/OpenAI, r/singularity, r/ChatGPT. Top Reddit threads cluster around benchmark and model-comparison threads, mixed hands-on reactions.

The strongest match in this snapshot has 6348 upvotes and 1277 comments.

r/GithubCopilot 63 upvotes 23 comments May 8, 2026
Upcoming deprecation of GPT-4.1 - GitHub Changelog

[Upcoming deprecation of GPT-4.1](https://github.blog/changelog/2026-05-07-upcoming-deprecation-of-gpt-4-1/)

> We will deprecate the following model across all GitHub Copilot experiences (including Copilot Chat, inline edits, ask and agent modes, and code completions) on 6/1/2026

What does this mean for code completions? AFAIK GPT-4.1 is the only model that can be used for code completions at the moment.

Github's announcement on switching to [usage based billing](https://github.blog/news-insights/company-news/github-copilot-is-moving-to-usage-based-billing/) states:
> Code completions and Next Edit suggestions remain included in all plans and do not consume AI Credits.

So the feature isn't going away.
Does anyone know what model will be used for code completion after 6/1/2026?

Open Reddit thread
View more discussions →
FAQ

Common questions about GPT-4.1

What is the context window size for GPT-4.1?

GPT-4.1 supports a context window of 200,000 tokens, which allows it to process large documents, long conversation histories, or extensive codebases in a single request.

What is the knowledge cutoff date for GPT-4.1?

GPT-4.1 has a training data cutoff of May 31, 2024, meaning it does not have knowledge of events or information published after that date.

Is GPT-4.1 available in ChatGPT?

GPT-4.1 is an API-only model and is not available through the ChatGPT consumer interface. It is accessible via the OpenAI API and platforms like MindStudio.

Who publishes GPT-4.1 and when was it released?

GPT-4.1 is published by OpenAI and was announced and made available in April 2025.

What types of tasks is GPT-4.1 best suited for?

GPT-4.1 is designed for complex, multi-domain tasks including coding, long-document analysis, instruction following, structured output generation, and agentic workflows that require multi-step reasoning.

More models from OpenAI

Continue browsing adjacent models from the same provider.

← All AI Models