OpenAI: GPT-4.1

OpenAIID: openai/gpt-4.1

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks. It is tuned for precise code diffs, agent reliability, and high recall in large document contexts, making it ideal for agents, IDE tooling, and enterprise knowledge retrieval.

Pricing per 1M Tokens

Input (Prompt)$2.00
Output (Completion)$8.00
Cache Read$0.50
Cache WriteFree
ImageN/A

Specifications

Context Length1.0M
Max Output Tokens33K
Input ModalitiesImage + Text + File
Output ModalitiesText
TokenizerGPT
Instruct TypeN/A
Top Provider Context1.0M
Top Provider Max Output33K
ModeratedYes

Compare this model

See how OpenAI: GPT-4.1 stacks up against other models.

More from OpenAI

Last updated: March 23, 2026

First tracked: March 23, 2026