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.

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

Pricing

TypePrice
Input Tokens$1.25/M
Output Tokens$10/M
Cache Read$0.13/M
Web Search$0.01/R

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.

Discord

Join our Discord server

Discord