Skip to content

OpenAI

GPT-5.1 Codex Max

For long-running coding tasks. Available only via /responses.

openai/gpt-5.1-codex-max
Input → Output
Text, images → Text/Text
Maximum input
200K tokens
Provider
1
Tool invocation
Yes

Price per million tokens

Input
2,025 credits
Output
16,200 credits
Cached input reads
202.5 credits

Provider

Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.

ProviderInput / 1MOutput / 1MCache readFirst tokenThroughputUptime
Microsoft Foundry2,025 credits16,200 credits202.5 credits---

Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.

Use the API

from openai import OpenAI

client = OpenAI(
    base_url="https://alprouter.com/api/v1",
    api_key="alp-your-key",
)

result = client.responses.create(
    model="openai/gpt-5.1-codex-max",
    input="Write a function to calculate Fibonacci numbers",
)
print(result.output_text)

Details

Maximum input
200K tokens
Scheduled retirement
2027.05.18 (date set by the provider)
Maximum output
128K tokens
Tool invocation
Supported
Supported input
Text, images
Endpoint
/responses (chat format is not supported)
Output
Text/Text
Provider
Microsoft Foundry
Supported parameters
max_completion_tokens, max_tokens, n, parallel_tool_calls, reasoning_effort, response_format, seed, stream, tool_choice, tools, verbosity

Frequently asked questions

What kind of model is GPT-5.1 Codex Max?

A model from OpenAI. For long-running coding tasks. Available only via /responses. Model ID on AlpRouter: openai/gpt-5.1-codex-max

How much does GPT-5.1 Codex Max cost?

Per million tokens: 2,025 credits input, 16,200 credits output. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.

How much input does GPT-5.1 Codex Max accept?

Each request accepts up to 200K tokens. The maximum output is 128K tokens.

What input and output does GPT-5.1 Codex Max support?

Send Text, images to receive Text/Text.

Does GPT-5.1 Codex Max support tool calling and structured JSON?

Tool calling: Supported. Structured output (response_format): Supports the json_object, json_schema format..

Which providers handle GPT-5.1 Codex Max requests?

Microsoft Foundry handles these requests.

How do I call GPT-5.1 Codex Max from code?

Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (openai/gpt-5.1-codex-max). There’s an example of how to do this in the “Using the API” section above.

Other models from OpenAI