Yunhai AI platform · One API, multiple modelsView offers
Yunhai
DocsConsoleEN / 中Sign in
Model catalog

GPT 5.1 Codex

openai/gpt-5.1-codex
Try model
OverviewPricingAPI integration

Overview

Model description: original source language.

(当前仅支持/v1/responses接口)GPT-5.1-Codex 是 GPT-5.1 的一个特殊版本,专为软件工程和编码工作流程而优化。它既适用于交互式开发,也适用于长时间独立执行复杂的工程任务。该模型支持从零开始构建项目、功能开发、调试、大规模重构和代码审查。与 GPT-5.1 相比,Codex 更易于控制,能够更严格地遵循开发者指令,并生成更简洁、更高质量的代码输出。可以通过 `reasoning.effort` 参数调整推理难度。

Textopenai

Pricing

Pricing follows the current settings of your account group.

View available groups

API integration

Use a Yunhai API key to call configured models.

curl "$YUNHAI_BASE_URL/chat/completions" \
  -H "Authorization: Bearer $YUNHAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5.1-codex","messages":[{"role":"user","content":"你好"}]}'