# GPT-4.1

**GPT-4.1** 是 OpenAI 推出的一个大型语言模型系列，共含三款模型，于 2025 年 4 月 14 日在应用程序编程接口（API）上线，分为 GPT-4.1、GPT-4.1 mini 和 GPT-4.1 nano 三档，知识截止日期更新至 2024 年 6 月。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> 该系列聚焦编程、指令遵循与长上下文理解，在 OpenAI 的产品序列中排在 GPT-4o 与 GPT-4.5 预览版之后，售价则远低于 GPT-4.5。<sup>[1](https://openai.com/index/gpt-4-1/)</sup><sup> • </sup><sup>[2](https://www.reuters.com/technology/artificial-intelligence/openai-launches-new-gpt-41-models-with-improved-coding-long-context-2025-04-14/)</sup>

| 关键事实 | 详情 |
|---|---|
| 发布时间 | 2025 年 4 月 14 日，登陆 OpenAI API，同日 GitHub Copilot 也开始提供；共三档：GPT-4.1、mini、nano<sup>[1](https://openai.com/index/gpt-4-1/)</sup> |
| 上下文窗口 | 输入 1,047,576 个 token（约 75 万词），较 GPT-4o 的 128,000 大幅提升；最大输出 32,768 个 token<sup>[3](https://developers.openai.com/api/docs/models/gpt-4.1)</sup><sup> • </sup><sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup> |
| 核心编程得分 | SWE-bench Verified 上 54.6%，较 GPT-4o 绝对提升 21.4 个百分点，较 GPT-4.5 高 26.6 个百分点<sup>[1](https://openai.com/index/gpt-4-1/)</sup> |
| 指令遵循 | Scale 的 MultiChallenge 上 38.3%，较 GPT-4o 绝对提升 10.5 个百分点<sup>[1](https://openai.com/index/gpt-4-1/)</sup> |
| 定价 | 每百万输入 token 2.00 美元，缓存输入 0.50 美元，输出 8.00 美元；中位查询成本比 GPT-4o 低 26%<sup>[1](https://openai.com/index/gpt-4-1/)</sup><sup> • </sup><sup>[3](https://developers.openai.com/api/docs/models/gpt-4.1)</sup> |
| 安全文档 | 发布时未附系统卡；OpenAI 称其并非前沿模型<sup>[5](https://techcrunch.com/2025/04/15/openai-ships-gpt-4-1-without-a-safety-report/)</sup> |
| 退役 | 2026 年 2 月 13 日从 ChatGPT 移除；API 定于 2027 年 1 月 14 日关停<sup>[6](https://openai.com/index/retiring-gpt-4o-and-older-models/)</sup><sup> • </sup><sup>[7](https://developers.openai.com/api/docs/deprecations)</sup> |

## 背景与发布

GPT-4.1 问世之际，正值 OpenAI 产品线快速更替。此次发布恰逢上线两年的初代 GPT-4 于 2025 年 4 月 30 日从 ChatGPT 中淘汰，同时 OpenAI 宣布 GPT-4.5 预览版将从 API 弃用，称将于 2025 年 7 月 14 日关闭，以便开发者有时间迁移。<sup>[8](https://www.theverge.com/news/647896/openai-chatgpt-gpt-4-1-mini-nano-launch-availability)</sup><sup> • </sup><sup>[1](https://openai.com/index/gpt-4-1/)</sup>

发布时，GPT-4.1 仅通过 [OpenAI API](https://www.edgepedia.org/zh/openai-api) 提供，未进入 ChatGPT。OpenAI 表示，其在指令遵循、编程和智能方面的许多改进已逐步融入 ChatGPT 内 GPT-4o 的最新版本，因此这一新的编号系列面向开发者而非聊天用户。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> 后来，GPT-4.1 mini 出现在付费用户 ChatGPT 模型选择器的“更多模型”一栏，并充当后备模型。<sup>[9](https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4o-and-gpt-41-mini)</sup>

## 变体与规格

GPT-4.1 的默认快照为 gpt-4.1-2025-04-14，上下文窗口 1,047,576 个 token，最大输出 32,768 个 token，支持文本与图像输入、文本输出，知识截止日期为 2024 年 6 月 1 日。<sup>[3](https://developers.openai.com/api/docs/models/gpt-4.1)</sup> 三档均支持百万 token 上下文窗口。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> GPT-4.1 保留了 GPT-4o 系列的 API 能力，包括工具调用与结构化输出，支持 Responses 与 Chat Completions API、监督微调，以及函数调用、网络搜索、文件搜索、图像生成、代码解释器和远程 MCP 等工具；OpenAI 自家文档则建议复杂任务从 GPT-5 入手。<sup>[3](https://developers.openai.com/api/docs/models/gpt-4.1)</sup><sup> • </sup><sup>[10](https://azure.microsoft.com/en-us/blog/announcing-the-gpt-4-1-model-series-for-azure-ai-foundry-developers/)</sup>

**较小档位。** OpenAI 将 GPT-4.1 mini 定位为在智能评测上持平或超过 GPT-4o，同时将延迟降低近一半、成本降低 83%。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> GPT-4.1 nano 被称为 OpenAI 当时最便宜、最快的模型，在 MMLU 上得分 80.1%，GPQA 上 50.3%，Aider Polyglot 编程上 9.8%，均高于 GPT-4o mini。<sup>[1](https://openai.com/index/gpt-4-1/)</sup>

## 能力与基准测试

OpenAI 的发布基准显示，新系列较自家前代大幅提升。在基于真实 GitHub 问题的软件工程基准 SWE-bench Verified 上，GPT-4.1 得分 54.6%，而 GPT-4o 为 33.2%，GPT-4.5 为 28.0%（按所报绝对提升值反推）。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> 在通用知识与推理方面，GPT-4.1 在 MMLU 上得分 90.2%，GPQA Diamond 上 66.3%，AIME '24 上 48.1%，多语言 MMLU 上 87.3%；GPT-4o（2024-11-20）则分别为 85.7%、46.0%、13.1% 和 81.4%。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> 在视频理解上，其在 [Video-MME](https://www.edgepedia.org/zh/video-mme) 长视频无字幕类别中得分 72.0%，较 GPT-4o 提升 6.7 个百分点。<sup>[1](https://openai.com/index/gpt-4-1/)</sup>

**长上下文性能随长度下降。** OpenAI 自家测试揭示了百万 token 窗口的代价。在多轮大海捞针检索测试 OpenAI-MRCR 上，GPT-4.1 在 128k 上下文、双针检索时得分 57.2%，而在 1M 上下文时降至 46.3%；在 Graphwalks bfs 上，128k 以下为 61.7%，128k 以上跌至 19.0%。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> OpenAI 承认，MRCR 上的准确率从 8,000 token 时的约 84% 降至 100 万 token 时的 50%。<sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup>

## 关键数字

GPT-4.1 定价为每百万输入 token 2.00 美元、每百万缓存输入 token 0.50 美元、每百万输出 token 8.00 美元；GPT-4o 则分别为 2.50、1.25 和 10.00 美元。<sup>[3](https://developers.openai.com/api/docs/models/gpt-4.1)</sup> OpenAI 称其中位查询成本比 GPT-4o 低 26%，并将该系列的提示缓存折扣从 50% 提高到 75%。<sup>[1](https://openai.com/index/gpt-4-1/)</sup> 较小档位每百万 token 的价格为：mini 输入 0.40 美元、输出 1.60 美元；nano 输入 0.10 美元、输出 0.40 美元。<sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup> [Artificial Analysis](https://www.edgepedia.org/zh/artificial-analysis) 测算，GPT-4.1 的综合价格为每百万 token 1.55 美元，而 GPT-4o（2024 年 11 月版）为 2.55 美元。<sup>[11](https://artificialanalysis.ai/models/comparisons/gpt-4-1-vs-gpt-4o)</sup>

## 与 GPT-4o、GPT-4.5 及竞品的比较

与自家兄弟相比，GPT-4.1 是在更低价格上对 GPT-4o 的能力升级，也是比 GPT-4.5 便宜得多的选择。<sup>[1](https://openai.com/index/gpt-4-1/)</sup><sup> • </sup><sup>[2](https://www.reuters.com/technology/artificial-intelligence/openai-launches-new-gpt-41-models-with-improved-coding-long-context-2025-04-14/)</sup> 与竞品相比，情况则更为复杂。[TechCrunch](https://www.edgepedia.org/zh/techcrunch) 指出，GPT-4.1 在 SWE-bench Verified 上的 54.6% 落后于谷歌和 Anthropic 报告的 [Gemini 2](https://www.edgepedia.org/zh/gemini-2).5 Pro（63.8%）和 [Claude 3.7 Sonnet](https://www.edgepedia.org/zh/claude-3-7-sonnet)（62.3%）在同一基准上的成绩，尽管 OpenAI 称 GPT-4.1 是“编程领域的领先模型”。<sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup> BleepingComputer 汇总的早期独立测试发现，GPT-4.1 “被更便宜或更强的替代品所掩盖”：在 Stagehand 浏览器自动化基准中，Gemini 2.0 Flash 错误率为 6.67%、精确匹配得分 90%，而 GPT-4.1 错误率为 16.67%，成本还高出十倍以上；Aider Polyglot 上 GPT-4.1 为 52%，Gemini 2.5 为 73%。<sup>[12](https://www.bleepingcomputer.com/news/artificial-intelligence/chatgpt-41-early-benchmarks-compared-against-google-gemini/)</sup>

独立评测也与厂商数字存在出入。在普林斯顿的 HAL 测试框架上，GPT-4.1 使用 SWE-Agent 脚手架在 SWE-bench Verified Mini 上得分 44.00%，成本 393.65 美元；但换用 HAL Generalist Agent 后仅得 2.00%，成本 51.80 美元，说明其表现高度依赖运行模型所用的智能体脚手架。<sup>[13](https://hal.cs.princeton.edu/model/GPT-4.1%20(April%202025))</sup> 某聚合网站记录其在 SWE-bench Live 上为 12.0%，[LiveCodeBench](https://www.edgepedia.org/zh/livecodebench) 上 54.7%，[Terminal-Bench](https://www.edgepedia.org/zh/terminal-bench) 2.0 上 14.6%，在多项编程评测中百分位排名偏低。<sup>[14](https://benchmarklist.com/models/openai-gpt-4.1/)</sup> 并非所有独立评测都是负面的：在一项使用新 Python 库进行自动化实验设计的学术研究中，GPT-4.1 在两个实验任务的所有运行中均成功，得分 100%，而大多数竞争模型完成不到一半的运行——竞品中只有 Grok-3 接近。<sup>[15](https://arxiv.org/abs/2508.00033)</sup>

## 采用与实际应用

该系列与 OpenAI API 同步登陆微软 Azure AI Foundry 和 GitHub，GPT-4.1 与 4.1-mini 支持监督微调。<sup>[10](https://azure.microsoft.com/en-us/blog/announcing-the-gpt-4-1-model-series-for-azure-ai-foundry-developers/)</sup> GitHub 在发布当天即面向所有 Copilot 计划（包括 Copilot Free）提供 GPT-4.1 公开预览，建议用于调试、重构、现代化改造和测试工作流。<sup>[16](https://github.blog/changelog/2025-04-14-openai-gpt-4-1-now-available-in-public-preview-for-github-copilot-and-github-models/)</sup>

OpenAI 援引的早期测试者报告了编程与文档处理方面的提升：Windsurf 发现 GPT-4.1 在其内部编程基准上比 GPT-4o 高 60%，工具调用效率提升 30%，重复编辑减少约 50%；Qodo 发现，在 200 个真实世界的拉取请求中，GPT-4.1 有 55% 的情况给出了更好的代码审查建议；汤森路透报告 [CoCounsel](https://www.edgepedia.org/zh/cocounsel) 的多文档审查准确率提升 17%；凯雷报告从超大型密集文档中检索的效果提升 50%。<sup>[1](https://openai.com/index/gpt-4-1/)</sup>

该模型的商业生命周期很短。2026 年 2 月 13 日，在按此前公告将 GPT-5（Instant 与 Thinking）退役的同时，OpenAI 将 GPT-4o、GPT-4.1、GPT-4.1 mini 和 o4-mini 从 ChatGPT 中退役，当时 API 未作变动。<sup>[6](https://openai.com/index/retiring-gpt-4o-and-older-models/)</sup> 随后的弃用时间表将 GPT-4.1（gpt-4.1-2025-04-14）和 GPT-4.1 mini 的 API 关停定在 2027 年 1 月 14 日，替代者为 gpt-6-luna；GPT-4o 与 GPT-4o mini 也定于同日关停。<sup>[7](https://developers.openai.com/api/docs/deprecations)</sup>

## 安全、局限与批评

GPT-4.1 发布时未附系统卡——系统卡是 OpenAI 通常用来描述安全测试的文档。OpenAI 发言人 Shaokyi Amdo 表示：“GPT-4.1 不是前沿模型，因此不会为其单独发布系统卡。”<sup>[5](https://techcrunch.com/2025/04/15/openai-ships-gpt-4-1-without-a-safety-report/)</sup> 前 OpenAI 安全研究员 [Steven Adler](https://www.edgepedia.org/zh/steven-adler) 对 TechCrunch 表示，系统卡是 AI 行业实现透明度、说明做了哪些安全测试的主要工具，并指出这类文档属自愿性质。<sup>[5](https://techcrunch.com/2025/04/15/openai-ships-gpt-4-1-without-a-safety-report/)</sup>

有两项实际局限有据可查。其一，上下文长度逼近窗口上限时，长上下文可靠性急剧下降，如上文 MRCR 与 Graphwalks 数据所示。<sup>[1](https://openai.com/index/gpt-4-1/)</sup><sup> • </sup><sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup> 其二，OpenAI 自己表示，GPT-4.1 比 GPT-4o 更倾向于“字面化”，有时需要更具体、更明确的提示。<sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup>

## 近期动态

GPT-4.1 体现了自初代 GPT-4 时代以来 OpenAI 发布实践的若干转变。发布变得频繁且以增量编号（4、4o、4.5、4.1），而非偶尔的跨越式更新，旧模型按固定时间表弃用：GPT-4.5 预览版在 GPT-4.1 发布三个月后的 2025 年 7 月 14 日从 API 关停，上线两年的 GPT-4 则在新系列亮相数周内退出 ChatGPT。<sup>[1](https://openai.com/index/gpt-4-1/)</sup><sup> • </sup><sup>[8](https://www.theverge.com/news/647896/openai-chatgpt-gpt-4-1-mini-nano-launch-availability)</sup> 发布转为 API 优先，聊天端可用性要么更晚、要么根本没有；小模型定价激进，nano 每百万输入 token 仅 0.10 美元。<sup>[1](https://openai.com/index/gpt-4-1/)</sup><sup> • </sup><sup>[4](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)</sup> 随后 2025 至 2026 年的产品线重组，最终以 GPT-4.1 自身于 2026 年 2 月从 ChatGPT 退役、并定于 2027 年 1 月关停 API 告终。<sup>[6](https://openai.com/index/retiring-gpt-4o-and-older-models/)</sup><sup> • </sup><sup>[7](https://developers.openai.com/api/docs/deprecations)</sup>

## References

1. [Introducing GPT-4.1 in the API, OpenAI](https://openai.com/index/gpt-4-1/)
2. [OpenAI launches new GPT-4.1 models with improved coding, long context comprehension, Reuters](https://www.reuters.com/technology/artificial-intelligence/openai-launches-new-gpt-41-models-with-improved-coding-long-context-2025-04-14/)
3. [GPT-4.1 Model, OpenAI API documentation](https://developers.openai.com/api/docs/models/gpt-4.1)
4. [OpenAI's new GPT-4.1 models focus on coding, TechCrunch](https://techcrunch.com/2025/04/14/openais-new-gpt-4-1-models-focus-on-coding/)
5. [OpenAI ships GPT-4.1 without a safety report, TechCrunch](https://techcrunch.com/2025/04/15/openai-ships-gpt-4-1-without-a-safety-report/)
6. [Retiring GPT-4o, GPT-4.1, GPT-4.1 mini, and OpenAI o4-mini in ChatGPT, OpenAI](https://openai.com/index/retiring-gpt-4o-and-older-models/)
7. [Deprecations, OpenAI API](https://developers.openai.com/api/docs/deprecations)
8. [OpenAI debuts its GPT-4.1 flagship AI model, The Verge](https://www.theverge.com/news/647896/openai-chatgpt-gpt-4-1-mini-nano-launch-availability)
9. [How can I access GPT-4o and GPT-4.1 mini?, OpenAI Help Center](https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4o-and-gpt-41-mini)
10. [Announcing the GPT-4.1 model series for Azure AI Foundry and GitHub developers, Microsoft Azure Blog](https://azure.microsoft.com/en-us/blog/announcing-the-gpt-4-1-model-series-for-azure-ai-foundry-developers/)
11. [GPT-4.1 vs GPT-4o (Nov '24): Model Comparison, Artificial Analysis](https://artificialanalysis.ai/models/comparisons/gpt-4-1-vs-gpt-4o)
12. [ChatGPT 4.1 early benchmarks compared against Google Gemini, BleepingComputer](https://www.bleepingcomputer.com/news/artificial-intelligence/chatgpt-41-early-benchmarks-compared-against-google-gemini/)
13. [HAL: GPT-4.1 (April 2025) Model Performance, Princeton HAL](https://hal.cs.princeton.edu/model/GPT-4.1%20(April%202025))
14. [GPT-4.1 Benchmark Scores & Evals, BenchmarkList](https://benchmarklist.com/models/openai-gpt-4.1/)
15. [GPT-4.1 Sets the Standard in Automated Experiment Design Using Novel Python Libraries, arXiv](https://arxiv.org/abs/2508.00033)
16. [OpenAI GPT-4.1 now available in public preview for GitHub Copilot and GitHub Models, GitHub Changelog](https://github.blog/changelog/2025-04-14-openai-gpt-4-1-now-available-in-public-preview-for-github-copilot-and-github-models/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Large language model families › Proprietary model families

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/gpt-4-1

English original: https://www.edgepedia.org/gpt-4-1
