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 金鑰,接著使用模型 ID「openai/gpt-5.1-codex」向 https://api.sandbase.ai 的 Responses API (/v1/responses) 或 Chat Completions API (/v1/chat/completions) 發送請求。此頁的請求範例會顯示完整的 payload。

OpenAI GPT-5.1-Codex 的費用是多少?

每 100 萬個輸入 token $1.13、每 100 萬個輸出 token $9,並套用目前 10% 折扣(定價為 $1.25/$10),費用會依每次請求從您的 SandBase 餘額中扣除。

OpenAI GPT-5.1-Codex 的 context window 是多少?

400K 個 context token,每次回應最多可輸出 128K 個 output token。

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

OpenAI GPT-5.1-Codex 支援 視覺辨識(圖片輸入), 推理, 函式呼叫, 結構化輸出。完整清單請參閱上方的 Specifications。

我需要另外申請 OpenAI 帳號嗎?

不需要。一組 SandBase API 金鑰與餘額即可讓您存取 OpenAI GPT-5.1-Codex 以及目錄中的其他模型;您不需要另外註冊 OpenAI。