OpenAI

OpenAI: GPT-5.1 Codex Max

Chat-15%
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.

256K context window
128K max output tokens
Released: 2025-12-04
Supported Protocols:OpenAIopenai
Available Providers:AzureAzure
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo Input

Providers

AzureAzure
-15%
Input Tokens
$1.06/M
$1.25/M
Output Tokens
$8.5/M
$10/M
Cache Read
$0.111/M
$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.