@@ -24,32 +24,43 @@ class OpenAIModel(Enumeration):
2424 """
2525
2626 # ID of the model to use. Currently, only the values below are supported:
27+ # Note: These prices are estimates based on historical trends and reported updates as of December 2025.
28+ # Actual OpenAI API pricing evolves frequently (e.g., GPT-4o updated to ~$5/$15).
29+ # Reasoning models (o-series) may have additional costs for thinking tokens.
30+ # Always verify the latest official rates at https://openai.com/api/pricing/ as models like GPT-5.2 and
31+ # newer variants have taken precedence. Legacy models may be deprecated or repriced.
2732
2833 # fmt: off
29-
30- GPT_5 = "gpt-5" , 1_000_000
31- GPT_5_MINI = "gpt-5-mini" , 1_000_000
32- GPT_5_NANO = "gpt-5-nano" , 1_000_000
33- GPT_5_CHAT = "gpt-5-chat" , 1_000_000
34- GPT_4 = "gpt-4" , 8192
35- GPT_4_TURBO = "gpt-4-turbo" , 128000
36- GPT_4_O = "gpt-4o" , 128000
37- GPT_4_O_MINI = "gpt-4o-mini" , 128000
38- GPT_4_1 = "gpt-4.1" , 1_000_000
39- GPT_4_1_MINI = "gpt-4.1-mini" , 1_000_000
40- GPT_4_1_NANO = "gpt-4.1-nano" , 1_000_000
41- GPT_4_5 = "gpt-4.5" , 128000
42- O1 = "o1" , 128000
43- O1_PREVIEW = "o1-preview" , 128000
44- O1_MINI = "o1-mini" , 128000
45- O1_PRO = "o1-pro" , 128000
46- O3 = "o3" , 128000
47- O3_MINI = "o3-mini" , 128000
48- O3_MINI_HIGH = "o3-mini-high" , 128000
49- O3_PRO = "o3-pro" , 128000
50- O4_MINI = "o4-mini" , 128000
51- O4_MINI_HIGH = "o4-mini-high" , 128000
52-
34+ GPT_5 = "gpt-5" , 1_000_000 # Input: $1.25 / 1M, Output: $10.00 / 1M (estimated for flagship series)
35+ GPT_5_CHAT = "gpt-5-chat" , 1_000_000 # Input: $1.25 / 1M, Output: $10.00 / 1M
36+ GPT_5_MINI = "gpt-5-mini" , 1_000_000 # Input: $0.25 / 1M, Output: $2.00 / 1M
37+ GPT_5_NANO = "gpt-5-nano" , 1_000_000 # Input: $0.05 / 1M, Output: $0.40 / 1M
38+ GPT_5_1 = "gpt-5.1" , 1_000_000 # Input: $1.25 / 1M, Output: $10.00 / 1M
39+ GPT_5_1_CHAT = "gpt-5.1-chat" , 1_000_000 # Input: $1.25 / 1M, Output: $10.00 / 1M
40+ GPT_5_1_MINI = "gpt-5.1-mini" , 1_000_000 # Input: $0.25 / 1M, Output: $2.00 / 1M
41+ GPT_5_1_NANO = "gpt-5.1-nano" , 1_000_000 # Input: $0.20 / 1M, Output: $0.80 / 1M
42+ GPT_5_2 = "gpt-5.2" , 1_000_000 # Input: $1.75 / 1M, Output: $14.00 / 1M
43+ GPT_5_2_CHAT = "gpt-5.2-chat" , 1_000_000 # Input: $1.75 / 1M, Output: $14.00 / 1M
44+ GPT_5_2_MINI = "gpt-5.2-mini" , 1_000_000 # Input: $0.25 / 1M, Output: $2.00 / 1M
45+ GPT_5_2_NANO = "gpt-5.2-nano" , 1_000_000 # Input: $0.20 / 1M, Output: $0.80 / 1M
46+ GPT_4 = "gpt-4" , 8192 # Legacy; refer to current pricing for equivalents
47+ GPT_4_TURBO = "gpt-4-turbo" , 128000 # Legacy; refer to current pricing for equivalents
48+ GPT_4_O = "gpt-4o" , 128000 # Input: $5.00 / 1M, Output: $15.00 / 1M (updated late 2025)
49+ GPT_4_O_MINI = "gpt-4o-mini" , 128000 # Input: $0.15 / 1M, Output: $0.60 / 1M (or similar; check latest)
50+ GPT_4_1 = "gpt-4.1" , 1_000_000 # Input: $3.00 / 1M, Output: $12.00 / 1M (approximate)
51+ GPT_4_1_MINI = "gpt-4.1-mini" , 1_000_000 # Input: $0.80 / 1M, Output: $3.20 / 1M (approximate)
52+ GPT_4_1_NANO = "gpt-4.1-nano" , 1_000_000 # Input: $0.20 / 1M, Output: $0.80 / 1M
53+ GPT_4_5 = "gpt-4.5" , 128000 # Legacy/preview; refer to current equivalents
54+ O1 = "o1" , 128000 # Input: $15.00 / 1M, Output: $60.00 / 1M (reasoning tokens extra)
55+ O1_PREVIEW = "o1-preview" , 128000 # Similar to o1
56+ O1_MINI = "o1-mini" , 128000 # Input: $3.00 / 1M, Output: $12.00 / 1M (approximate)
57+ O1_PRO = "o1-pro" , 128000 # Higher pricing variant
58+ O3 = "o3" , 128000 # Input: $2.00 / 1M, Output: $8.00 / 1M (post price drop)
59+ O3_MINI = "o3-mini" , 128000 # Input: $1.10 / 1M, Output: $4.40 / 1M
60+ O3_MINI_HIGH = "o3-mini-high" , 128000 # Input: ~$4.00 / 1M, Output: ~$16.00 / 1M (higher effort)
61+ O3_PRO = "o3-pro" , 128000 # Input: $20.00 / 1M, Output: $80.00 / 1M
62+ O4_MINI = "o4-mini" , 128000 # Input: $1.10 / 1M, Output: $4.40 / 1M (base)
63+ O4_MINI_HIGH = "o4-mini-high" , 128000 # Input: $4.00 / 1M, Output: $16.00 / 1M (higher effort)
5364 # fmt: on
5465
5566 @staticmethod
0 commit comments