From 6d2fc2211d1f5166151635efc5db4a491eb0d7fc Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 25 Sep 2025 18:49:44 -0600 Subject: [PATCH] feat(codex): add codex-mini-latest model (fast reasoning, tuned from o4-mini) with pricing and caps --- packages/types/src/providers/openai-codex.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/packages/types/src/providers/openai-codex.ts b/packages/types/src/providers/openai-codex.ts index ac763e1a4f..3c8fac74a3 100644 --- a/packages/types/src/providers/openai-codex.ts +++ b/packages/types/src/providers/openai-codex.ts @@ -26,4 +26,22 @@ export const openAiNativeCodexModels = { "GPT-5 Codex via ChatGPT Responses (Codex). A GPT‑5 variant exposed to the client with coding‑oriented defaults.", supportsTemperature: false, }, + "codex-mini-latest": { + // Based on OpenAI's Codex CLI page (fast reasoning model tuned from o4-mini) + maxTokens: 100000, + contextWindow: 200000, + supportsImages: true, // input images supported + supportsPromptCache: true, + supportsReasoningEffort: true, + reasoningEffort: "medium", + description: + "codex-mini-latest via ChatGPT Responses (Codex). Fast reasoning model optimized for the Codex CLI (fine‑tuned o4‑mini).", + supportsTemperature: false, + // Pricing per 1M tokens + inputPrice: 1.5, + outputPrice: 6.0, + // Prompt cache pricing + cacheWritesPrice: 1.5, + cacheReadsPrice: 0.375, + }, } as const satisfies Record