GPT-4.1

OpenAI · April 2025

deprecatedClosedmixture of expertsmultimodalAPI Available
Context Window1M tokens
VariantsGPT-4.1, GPT-4.1 Mini, GPT-4.1 Nano
Sunset DateFebruary 2026

Description

An API-focused refresh of the GPT-4 line with a 1 million token context window — enough to process roughly 750,000 words or several full-length novels at once. Available in three sizes (full, Mini, and Nano) and optimized for coding tasks and precise instruction following.

Benchmark Scores

SWE-benchReal-world software engineering
55.0%

Key Innovations

Long Context
Long ContextAbility to process very long inputs (100K+ tokens), enabling analysis of entire codebases or books.
Code Gen
Code GenAbility to write, debug, and understand programming code across multiple languages.

External Links