Skip to content

Commit 914f8f3

Browse files
committed
update OpenAI
1 parent 35f54eb commit 914f8f3

File tree

7 files changed

+60
-0
lines changed

7 files changed

+60
-0
lines changed

packages/__tests__/cost/__snapshots__/registrySnapshots.test.ts.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5274,6 +5274,9 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
52745274
],
52755275
"helicone": [
52765276
{
5277+
"cacheMultipliers": {
5278+
"cachedInput": 0.25,
5279+
},
52775280
"input": 4e-7,
52785281
"output": 0.0000016,
52795282
"threshold": 0,
@@ -5310,6 +5313,9 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
53105313
],
53115314
"helicone": [
53125315
{
5316+
"cacheMultipliers": {
5317+
"cachedInput": 0.5,
5318+
},
53135319
"input": 1.5e-7,
53145320
"output": 6e-7,
53155321
"threshold": 0,
@@ -5336,6 +5342,9 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
53365342
"openai/gpt-5": {
53375343
"helicone": [
53385344
{
5345+
"cacheMultipliers": {
5346+
"cachedInput": 0.1,
5347+
},
53395348
"input": 0.00000125,
53405349
"output": 0.00001,
53415350
"threshold": 0,
@@ -5362,6 +5371,9 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
53625371
"openai/o1": {
53635372
"helicone": [
53645373
{
5374+
"cacheMultipliers": {
5375+
"cachedInput": 0.5,
5376+
},
53655377
"input": 0.0000011,
53665378
"output": 0.0000044,
53675379
"threshold": 0,
@@ -5417,6 +5429,9 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
54175429
],
54185430
"helicone": [
54195431
{
5432+
"cacheMultipliers": {
5433+
"cachedInput": 0.25,
5434+
},
54205435
"input": 0.0000011,
54215436
"output": 0.0000044,
54225437
"threshold": 0,

packages/cost/models/authors/openai/gpt-4.1/endpoints.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ export const endpoints = {
329329
threshold: 0,
330330
input: 0.000002, // $2.00 per 1M tokens
331331
output: 0.000008, // $8.00 per 1M tokens
332+
cacheMultipliers: {
333+
cachedInput: 0.25, // $0.50 per 1M tokens
334+
},
332335
},
333336
],
334337
contextLength: 128000,
@@ -356,6 +359,9 @@ export const endpoints = {
356359
threshold: 0,
357360
input: 0.0000001, // $0.10 per 1M tokens
358361
output: 0.0000004, // $0.40 per 1M tokens
362+
cacheMultipliers: {
363+
cachedInput: 0.25, // $0.025 per 1M tokens
364+
},
359365
},
360366
],
361367
contextLength: 128000,
@@ -381,6 +387,9 @@ export const endpoints = {
381387
threshold: 0,
382388
input: 0.0000004, // $0.40 per 1M tokens
383389
output: 0.0000016, // $1.60 per 1M tokens
390+
cacheMultipliers: {
391+
cachedInput: 0.25, // $0.10 per 1M tokens
392+
},
384393
},
385394
],
386395
contextLength: 128000,

packages/cost/models/authors/openai/gpt-4o/endpoints.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ export const endpoints = {
292292
threshold: 0,
293293
input: 0.0000025, // $2.50 per 1M tokens
294294
output: 0.00001, // $10.00 per 1M tokens
295+
cacheMultipliers: {
296+
cachedInput: 0.5, // $1.25 per 1M tokens
297+
},
295298
},
296299
],
297300
contextLength: 128000,
@@ -319,6 +322,9 @@ export const endpoints = {
319322
threshold: 0,
320323
input: 0.00000015, // $0.15 per 1M tokens
321324
output: 0.0000006, // $0.60 per 1M tokens
325+
cacheMultipliers: {
326+
cachedInput: 0.5, // $0.075 per 1M tokens
327+
},
322328
},
323329
],
324330
contextLength: 128000,

packages/cost/models/authors/openai/gpt-5/endpoints.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ export const endpoints = {
292292
threshold: 0,
293293
input: 0.00000125, // $1.25 per 1M tokens
294294
output: 0.00001, // $10.00 per 1M tokens
295+
cacheMultipliers: {
296+
cachedInput: 0.1, // $0.125 per 1M tokens
297+
},
295298
},
296299
],
297300
contextLength: 128000,
@@ -319,6 +322,9 @@ export const endpoints = {
319322
threshold: 0,
320323
input: 0.00000025, // $0.25 per 1M tokens
321324
output: 0.000002, // $2.00 per 1M tokens
325+
cacheMultipliers: {
326+
cachedInput: 0.1, // $0.025 per 1M tokens
327+
},
322328
},
323329
],
324330
contextLength: 128000,
@@ -346,6 +352,9 @@ export const endpoints = {
346352
threshold: 0,
347353
input: 0.00000005, // $0.05 per 1M tokens
348354
output: 0.0000004, // $0.40 per 1M tokens
355+
cacheMultipliers: {
356+
cachedInput: 0.1, // $0.005 per 1M tokens
357+
},
349358
},
350359
],
351360
contextLength: 128000,
@@ -371,6 +380,9 @@ export const endpoints = {
371380
threshold: 0,
372381
input: 0.00000125, // $1.25 per 1M tokens
373382
output: 0.00001, // $10.00 per 1M tokens
383+
cacheMultipliers: {
384+
cachedInput: 0.1, // $0.125 per 1M tokens
385+
},
374386
},
375387
],
376388
contextLength: 128000,
@@ -425,6 +437,9 @@ export const endpoints = {
425437
threshold: 0,
426438
input: 0.00000125, // $1.25 per 1M tokens
427439
output: 0.00001, // $10.00 per 1M tokens
440+
cacheMultipliers: {
441+
cachedInput: 0.1, // $0.125 per 1M tokens
442+
},
428443
},
429444
],
430445
contextLength: 128000,

packages/cost/models/authors/openai/o1/endpoints.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export const endpoints = {
1212
threshold: 0,
1313
input: 0.000015, // $15.00 per 1M tokens
1414
output: 0.00006, // $60.00 per 1M tokens
15+
cacheMultipliers: {
16+
cachedInput: 0.5, // $7.50 per 1M tokens
17+
},
1518
},
1619
],
1720
contextLength: 200000,
@@ -34,6 +37,9 @@ export const endpoints = {
3437
threshold: 0,
3538
input: 0.0000011, // $1.10 per 1M tokens
3639
output: 0.0000044, // $4.40 per 1M tokens
40+
cacheMultipliers: {
41+
cachedInput: 0.5, // $0.55 per 1M tokens
42+
},
3743
},
3844
],
3945
contextLength: 128000,

packages/cost/models/authors/openai/o3/endpoints.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ export const endpoints = {
217217
threshold: 0,
218218
input: 0.000002, // $2.00 per 1M tokens
219219
output: 0.000008, // $8.00 per 1M tokens
220+
cacheMultipliers: {
221+
cachedInput: 0.25, // $0.50 per 1M tokens
222+
},
220223
},
221224
],
222225
contextLength: 200000,
@@ -239,6 +242,9 @@ export const endpoints = {
239242
threshold: 0,
240243
input: 0.0000011, // $1.10 per 1M tokens
241244
output: 0.0000044, // $4.40 per 1M tokens
245+
cacheMultipliers: {
246+
cachedInput: 0.5, // $0.55 per 1M tokens
247+
},
242248
},
243249
],
244250
contextLength: 200000,

packages/cost/models/authors/openai/o4/endpoints.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ export const endpoints = {
102102
threshold: 0,
103103
input: 0.0000011, // $1.10 per 1M tokens
104104
output: 0.0000044, // $4.40 per 1M tokens
105+
cacheMultipliers: {
106+
cachedInput: 0.25, // $0.275 per 1M tokens
107+
},
105108
},
106109
],
107110
contextLength: 200000,

0 commit comments

Comments
 (0)