OpenAI

OpenAI: GPT-5.1 Codex Max

Chat
openai/gpt-5.1-codex-max

GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks. It is based on an updated version of the 5.1 reasoning stack and trained on agentic workflows spanning software engineering, mathematics, and research.

Context Window
256K
Max Output Tokens
128K
Released
2025-12-04
Capabilities
VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo Input
Available Providers
AzureAzure
Supported Protocols
OpenAIopenai

Providers

AzureAzure
Input Tokens
$1.25/M
Output Tokens
$10/M
Cache Read
$0.13/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions/v1/responses

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-5.1-codex-max",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Frequently Asked Questions

OpenAI: GPT-5.1 Codex Max on Ofox.ai costs $1.25/M per million input tokens and $10/M per million output tokens. Pay-as-you-go, no monthly fees.