Skip to main content
GPT-5.1 Codex

GPT-5.1 Codex

OpenAI 面向 Codex 工作流优化的 GPT-5.1 编程模型。

Agentic CodingCodex 优化快照模型

上下文窗口

400,000

GPT-5.1 Codex

最大输出

128,000

1M tokens

输入

$1.25

输出

$10

模型代码gpt-5.1-codex

试玩区

gpt-5.1-codex

暂无输出

定价

方案上下文窗口最大输出输入输出缓存写入缓存读取
GPT-5.1 Codex
400,000128,000
$1.25
$10
-
$0.125

该价格为 OpenAI 官方 GPT-5.1-Codex 定价。

缓存输入价格适用于复用的提示词 tokens。

缓存读取或缓存输入价格适用于复用的提示词 tokens。

README

GPT-5.1 Codex 是 GPT-5.1 的编程专用变体,针对长链路软件任务、智能体实现流程和更稳健的代码质量进行了优化。
  • OpenAI 将 GPT-5.1-Codex 描述为面向编程任务优化的 GPT-5.1 变体,并以持续更新的快照形式提供。
  • 它适合复杂实现任务,强调代码质量、工具调用能力与更长任务链路下的稳定表现。
  • 相较通用模型,GPT-5.1 Codex 更偏向软件工程场景与智能体开发工作流。

API

查看 API 文档以获取请求格式、参数说明和集成方式。

OpenAI 面向 Codex 工作流优化的 GPT-5.1 编程模型。

模型代码

gpt-5.1-codex

查看 API 文档

API

端点

POST /v1/responses

认证

Authorization: Bearer YOUR_REACH_API_KEY
Content-Type: application/json

示例

curl -X POST "https://direct.reachapi.ai/v1/responses" \
  -H "Authorization: Bearer YOUR_REACH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "input": "Introduce ReachAPI in one sentence.",
    "temperature": 0.2
  }'

相关模型

同一厂商的其他模型

GPT-6 Astra

OpenAI's flagship model for demanding end-to-end work.

GPT-5.6 Luna

OpenAI's GPT-5.6 model for efficient, cost-sensitive, high-volume workloads.

GPT-5.6 Sol

OpenAI's GPT-5.6 flagship model for the most demanding production reasoning, coding, and agent workflows.

GPT-5.6 Terra

OpenAI's GPT-5.6 model for strong intelligence with a balanced cost profile.

GPT-5.5

OpenAI's newest frontier model for the most complex coding, reasoning, and professional workflows.

GPT-5.4

OpenAI's frontier model for complex professional, coding, and agentic work at scale.

GPT-5.4 Mini

OpenAI's strongest mini model for coding, computer use, and high-volume agent tasks.

GPT-5.3 Codex

OpenAI's most capable agentic coding model to date.

GPT-5.2

OpenAI's stronger GPT-5-family model for professional, general-purpose, and agentic work.

GPT-5.1

OpenAI's flagship model for coding and agentic tasks with configurable reasoning.

GPT-5

OpenAI's previous intelligent reasoning model for coding and agentic tasks.

GPT-5 Mini

OpenAI's faster, cost-efficient GPT-5 variant for low-latency and high-volume work.

GPT Image 2.5 Flare

OpenAI's fastest model for high-quality, everyday image generation and editing.

GPT Image 2.5 Sunburst

OpenAI's most capable image model for high-quality generation and precision editing.

GPT Image 2

OpenAI's state-of-the-art image generation model for high-quality creation and editing with text and image inputs.

GPT Image 2 Async

ReachAPI's asynchronous GPT Image 2 workflow for task-based image generation and editing with callback-ready results.