From d2dee3cddf70ea0f3628f3b6fbca6ea7beb62d5a Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 4 Dec 2025 20:06:45 -0700 Subject: [PATCH] feat: add gpt-5.1-codex-max model to OpenAI provider Add GPT-5.1-Codex-Max model with: - 400K context window, 128K max output tokens - Higher reasoning support (low/medium/high) - $1.25/$10 input/output pricing per 1M tokens - Image support and prompt caching - Priority tier option --- packages/types/src/providers/openai.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/types/src/providers/openai.ts b/packages/types/src/providers/openai.ts index 0bff8aea3f..fb0837c3c6 100644 --- a/packages/types/src/providers/openai.ts +++ b/packages/types/src/providers/openai.ts @@ -42,6 +42,23 @@ export const openAiNativeModels = { tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 2.5, outputPrice: 20.0, cacheReadsPrice: 0.25 }], description: "GPT-5.1 Codex: A version of GPT-5.1 optimized for agentic coding in Codex", }, + "gpt-5.1-codex-max": { + maxTokens: 128000, + contextWindow: 400000, + supportsNativeTools: true, + supportsImages: true, + supportsPromptCache: true, + promptCacheRetention: "24h", + supportsReasoningEffort: ["low", "medium", "high"], + reasoningEffort: "medium", + inputPrice: 1.25, + outputPrice: 10.0, + cacheReadsPrice: 0.125, + supportsTemperature: false, + tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 2.5, outputPrice: 20.0, cacheReadsPrice: 0.25 }], + description: + "GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks", + }, "gpt-5.1-codex-mini": { maxTokens: 128000, contextWindow: 400000,