Skip to content

Commit d4275a6

Browse files
authored
chore: update openai.ts pricing (#755)
1 parent 1e5b808 commit d4275a6

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

web/src/llm-api/openai.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ const INPUT_TOKEN_COSTS: Record<string, number> = {
2525
'gpt-5': 1.25,
2626
'gpt-5.1': 1.25,
2727
'gpt-5.1-chat': 1.25,
28-
'gpt-5.2': 1.25,
29-
'gpt-5.2-codex': 1.25,
28+
'gpt-5.2': 1.75,
29+
'gpt-5.2-codex': 1.75,
3030
'gpt-5.3': 1.25,
31-
'gpt-5.3-codex': 1.25,
32-
'gpt-5.4': 1.25,
31+
'gpt-5.3-codex': 1.75,
32+
'gpt-5.4': 2.50,
3333
'gpt-5.4-codex': 1.25,
3434
'gpt-4o-2024-11-20': 2.50,
3535
'gpt-4o-mini-2024-07-18': 0.15,
@@ -38,11 +38,11 @@ const CACHED_INPUT_TOKEN_COSTS: Record<string, number> = {
3838
'gpt-5': 0.125,
3939
'gpt-5.1': 0.125,
4040
'gpt-5.1-chat': 0.125,
41-
'gpt-5.2': 0.125,
42-
'gpt-5.2-codex': 0.125,
41+
'gpt-5.2': 0.175,
42+
'gpt-5.2-codex': 0.175,
4343
'gpt-5.3': 0.125,
44-
'gpt-5.3-codex': 0.125,
45-
'gpt-5.4': 0.125,
44+
'gpt-5.3-codex': 0.175,
45+
'gpt-5.4': 0.25,
4646
'gpt-5.4-codex': 0.125,
4747
'gpt-4o-2024-11-20': 1.25,
4848
'gpt-4o-mini-2024-07-18': 0.075,
@@ -51,11 +51,11 @@ const OUTPUT_TOKEN_COSTS: Record<string, number> = {
5151
'gpt-5': 10,
5252
'gpt-5.1': 10,
5353
'gpt-5.1-chat': 10,
54-
'gpt-5.2': 10,
55-
'gpt-5.2-codex': 10,
54+
'gpt-5.2': 14,
55+
'gpt-5.2-codex': 14,
5656
'gpt-5.3': 10,
57-
'gpt-5.3-codex': 10,
58-
'gpt-5.4': 10,
57+
'gpt-5.3-codex': 14,
58+
'gpt-5.4': 15,
5959
'gpt-5.4-codex': 10,
6060
'gpt-4o-2024-11-20': 10,
6161
'gpt-4o-mini-2024-07-18': 0.60,

0 commit comments

Comments
 (0)