openai 的网站图标

OpenAI: GPT-5.1-Codex

openai/gpt-5.1-codex

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks. The model supports building projects from scratch, feature development, debugging, large-scale refactoring, and code review. Compared to GPT-5.1, Codex is more steerable, adheres closely to developer instructions, and produces cleaner, higher-quality code outputs. Reasoning effort can be adjusted with the reasoning.effort parameter. Read the docs here

Codex integrates into developer environments including the CLI, IDE extensions, GitHub, and cloud tasks. It adapts reasoning effort dynamically—providing fast responses for small tasks while sustaining extended multi-hour runs for large projects. The model is trained to perform structured code reviews, catching critical flaws by reasoning over dependencies and validating behavior against tests. It also supports multimodal inputs such as images or screenshots for UI development and integrates tool use for search, dependency installation, and environment setup. Codex is intended specifically for agentic coding applications.

模态
输入/输出价格
US$1.25 / US$10每 1M
上下文
400K
发布时间
2025年11月13日

提供商

此模型由一家提供商托管。OpenRouter 直接转发每个请求,不进行路由。

定价

客户为此模型实际支付的平均价格,与提供商公布的价格并列展示。由于缓存和折扣,实际支付的价格往往远低于标价。

加权平均值

输入
US$0.1992/百万 token
输出
US$10/百万 token
价格历史
当前选择无实际价格数据

性能

吞吐量是模型生成内容的速度(每秒 token 数,越高越好)。延迟是完整的往返时间(越低越好)。TTFT 是首个 token 的响应时间,即您看到内容出现前需要等待的时间(越低越好)。

吞吐量
72token/秒

P50,所有提供商中最佳

延迟
2.35秒

P50,最佳提供商

正常运行时间

正常运行时间是指过去 3 天中至少有一家提供商响应请求的时间百分比。可用性是指成功提供推理服务的时间百分比。OpenRouter 会持续监控,并在某家提供商返回错误时使用次优提供商。

正常运行时间(3 天)模型可访问。请求已路由至提供商。
100.00%
可用性(3 天)模型通过任意提供商返回了推理结果。错误和空响应均计为失败。
99.93%

过去 3 天的可用性

最近 72 小时
可用性 99.93%
3 天前2 天前昨天现在

过去 24 小时的可用性

OpenRouter Availability
99.97%

当上游提供商发生错误时,如果您的请求筛选条件允许,我们可以通过路由到另一家健康的提供商来恢复服务。您可以通过以下接口以编程方式访问各提供商的正常运行时间数据: 端点 API。了解更多有关我们的 负载均衡和提供商路由选项。

基准测试

标准化评测得分,以及此模型针对共用基准测试提示词的实际输出。百分比越高越好,每项排名显示此模型在该来源所评测的模型中的位置。

基准测试得分摘要: OpenAI: GPT-5.1-Codex (Artificial Analysis、Design Arena 和 Vals AI)
来源基准测试得分
Artificial AnalysisGPT-5.1 Codex (High) GPQA Diamond86.0%
Artificial AnalysisGPT-5.1 Codex (High) HLE25.7%
Artificial AnalysisGPT-5.1 Codex (High) IFBench70.0%
Artificial AnalysisGPT-5.1 Codex (High) τ²-Bench Telecom83.0%
Artificial AnalysisGPT-5.1 Codex (High) AA-LCR69.3%
Artificial AnalysisGPT-5.1 Codex (High) CritPt5.7%
Artificial AnalysisGPT-5.1 Codex (High) LiveCodeBench84.9%
Artificial AnalysisGPT-5.1 Codex (High) Terminal-Bench Hard34.8%
Artificial AnalysisGPT-5.1 Codex (High) MMLU-Pro86.0%
Artificial AnalysisGPT-5.1 Codex (High) AIME 202595.7%
Design ArenaGPT-5.1 Codex Agents Arena Full Stack Elo1086
Design ArenaGPT-5.1 Codex Agents Arena Mobile Apps Elo1191
Design ArenaGPT-5.1 Codex Agents Arena Webapps Elo996
Design ArenaGPT-5.1 Codex Models Arena Code Categories Elo1142
Design ArenaGPT-5.1 Codex Models Arena Data Visualization Elo1209
Design ArenaGPT-5.1 Codex Models Arena Game Development Elo1127
Design ArenaGPT-5.1 Codex Models Arena UI Component Elo1226
Design ArenaGPT-5.1 Codex Models Arena Website Elo1154
Vals AIGPT 5.1 Codex IOI v13.7%
Vals AIGPT 5.1 Codex LiveCodeBench85.5%
Vals AIGPT 5.1 Codex Terminal-Bench 1.057.5%
Vals AIGPT 5.1 Codex Vibe Code Bench v1.113.1%

应用

向此模型发送最多流量的公开应用。这能很好地反映实际生产工作负载的情况,也能提示此模型最适合哪些用例。

1.
https://nousresearch.com 的网站图标
Hermes Agent
121Mtoken
2.
87.4Mtoken
3.
https://pi.dev/ 的网站图标
pi
73.7Mtoken
4.
https://roocode.com/ 的网站图标
Roo Code
55.3Mtoken
5.
https://kilocode.ai/ 的网站图标
Kilo Code
51.9Mtoken
OpenRouter 的其他部分
47.3M
前 5 大应用
23.8M

活动

此模型的 token 用量和请求流量随时间的变化。

API

可直接用于调用此模型的代码。OpenRouter 的 API 与 OpenAI 兼容——大多数 SDK 只需替换基础 URL 即可使用。切换模型时,唯一需要更改的是下方的模型标识符。

目前无法通过 EU 区域内路由使用。 区域内路由文档

常见问题