Skip to content
ModelsRankingsChatDocsPricing
op

OpenAI: GPT-5.1-Codex-Mini

openai/gpt-5.1-codex-mini

AvailableOpenAIimage intext intext out

GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

Context

400K

tokens in

Max output

128K

tokens out

Price

$0.250 / $2.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-mini",
    "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-mini",
    messages=[{"role": "user", "content": "hello"}],
)

Supported parameters

include_reasoningmax_completion_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity

More from OpenAI