Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

GPT-5.1-Codex

10% 折扣openai/gpt-5.1-codex

GPT-5.1-Codex is a version of OpenAI's GPT-5.1 optimized for agentic coding in Codex and similar environments, released in November 2025 with text and image input and text output. It targets autonomous, long-running software engineering work inside coding agents and tools, and OpenAI notes its underlying snapshot is updated over time. Pick it over general GPT-5.1 when building coding agents; OpenAI serves it through the Responses API only.

阅读更多
输入价格
$1.13$1.25美元 / 100 万 token
输出价格
$9.00$10.00美元 / 100 万 token
缓存读取
$0.11$0.13美元 / 100 万 token
上下文窗口
400K
最大输出
128K

规格

能力聊天视觉推理结构化输出函数调用
输入
文本, 图像
输出
文本
可用

关于此模型

GPT-5.1-Codex is a version of OpenAI's GPT-5.1 optimized for agentic coding in Codex and similar environments, released in November 2025 with text and image input and text output. It targets autonomous, long-running software engineering work inside coding agents and tools, and OpenAI notes its underlying snapshot is updated over time. Pick it over general GPT-5.1 when building coding agents; OpenAI serves it through the Responses API only.

问题

常见问题

如何通过 SandBase 调用 OpenAI GPT-5.1-Codex?

先创建一个 SandBase API key,然后向 https://api.sandbase.ai 的 Responses API (/v1/responses) 或 Chat Completions API (/v1/chat/completions) 发送请求,模型 ID 使用“openai/gpt-5.1-codex”。本页的请求示例展示了准确的请求负载。

OpenAI GPT-5.1-Codex 的价格是多少?

每 100 万输入 token $1.13、每 100 万输出 token $9,按当前 10% 折扣计算(标价 $1.25 / $10),并按请求从您的 SandBase 余额中扣费。

OpenAI GPT-5.1-Codex 的上下文窗口是多少?

上下文为 400K 个 token,每次响应最多输出 128K 个 token。

OpenAI GPT-5.1-Codex 支持哪些功能?

OpenAI GPT-5.1-Codex 支持 视觉(图像输入), 推理, 函数调用, 结构化输出。完整列表请参见上方 Specifications。

我需要单独的 OpenAI 账户吗?

不需要。一个 SandBase API key 和余额即可让您使用 OpenAI GPT-5.1-Codex 以及目录中的其他模型;您无需单独注册 OpenAI。