Skip to content
ModelsRankingsChatDocsPricing
op

OpenAI: GPT-5.1-Codex

openai/gpt-5.1-codex

AvailableOpenAItext inimage intext out

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

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",
    "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",
    messages=[{"role": "user", "content": "hello"}],
)

Supported parameters

include_reasoningmax_completion_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity

More from OpenAI