op
OpenAI: GPT-5.1-Codex-Max
openai/gpt-5.1-codex-max
AvailableOpenAItext inimage intext out
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...
Context
400K
tokens in
Max output
128K
tokens out
Price
$1.25 / $10.00
per 1M in / out
Quick start
curl https://api.token265.com/v1/chat/completions \
-H "Authorization: Bearer ${OPENROUTER_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.1-codex-max",
"messages": [{"role": "user", "content": "hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.token265.com/v1", api_key="sk-...")
client.chat.completions.create(
model="openai/gpt-5.1-codex-max",
messages=[{"role": "user", "content": "hello"}],
)Supported parameters
include_reasoningmax_completion_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity