TokenRoute
Get started
Back to models

OpenAI: GPT-5.1-Codex-Max

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...

Pricing

Input$0.8750 /M
Output$7.00 /M
Cache read$0.0875 /M
Web search$0.0070 /req

Specs

Context length400K tokens
Max output128K tokens
Inputtext, image
Outputtext

Quickstart

Point the OpenAI SDK at https://tokenroute.app/api/v1 and use a TokenRoute API key.

bash
curl https://tokenroute.app/api/v1/chat/completions \
  -H "Authorization: Bearer $TOKENROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.1-codex-max",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

include_reasoning
max_completion_tokens
reasoning
reasoning_effort
response_format
seed
structured_outputs
tool_choice
tools