@pydantic/genai-prices 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/data.js CHANGED
@@ -95,7 +95,7 @@ export const data = [
95
95
  },
96
96
  },
97
97
  {
98
- id: 'claude-3-haiku-latest',
98
+ id: 'claude-3-haiku',
99
99
  name: 'Claude Haiku 3',
100
100
  description: 'Fastest, most cost-effective model',
101
101
  match: {
@@ -161,6 +161,28 @@ export const data = [
161
161
  output_mtok: 75,
162
162
  },
163
163
  },
164
+ {
165
+ id: 'claude-opus-4-1',
166
+ name: 'Claude Opus 4.1',
167
+ description: 'Most intelligent model for complex tasks',
168
+ match: {
169
+ or: [
170
+ {
171
+ starts_with: 'claude-opus-4',
172
+ },
173
+ {
174
+ starts_with: 'claude-4-opus-20250522',
175
+ },
176
+ ],
177
+ },
178
+ context_window: 200000,
179
+ prices: {
180
+ input_mtok: 15,
181
+ cache_write_mtok: 18.75,
182
+ cache_read_mtok: 1.5,
183
+ output_mtok: 75,
184
+ },
185
+ },
164
186
  {
165
187
  id: 'claude-sonnet-4-0',
166
188
  name: 'Claude Sonnet 4',
@@ -748,6 +770,69 @@ export const data = [
748
770
  output_audio_mtok: 80,
749
771
  },
750
772
  },
773
+ {
774
+ id: 'gpt-5',
775
+ name: 'GPT-5',
776
+ description: "GPT-5 is OpenAI's flagship model for coding, reasoning, and agentic tasks across domains.",
777
+ match: {
778
+ or: [
779
+ {
780
+ equals: 'gpt-5',
781
+ },
782
+ {
783
+ equals: 'gpt-5-2025-08-07',
784
+ },
785
+ ],
786
+ },
787
+ context_window: 400000,
788
+ prices: {
789
+ input_mtok: 1.25,
790
+ cache_read_mtok: 0.125,
791
+ output_mtok: 10,
792
+ },
793
+ },
794
+ {
795
+ id: 'gpt-5-mini',
796
+ name: 'GPT-5 mini',
797
+ description: "GPT-5 mini is a faster, more cost-efficient version of GPT-5. It's great for well-defined tasks and precise prompts.",
798
+ match: {
799
+ or: [
800
+ {
801
+ equals: 'gpt-5-mini',
802
+ },
803
+ {
804
+ equals: 'gpt-5-mini-2025-08-07',
805
+ },
806
+ ],
807
+ },
808
+ context_window: 400000,
809
+ prices: {
810
+ input_mtok: 0.25,
811
+ cache_read_mtok: 0.025,
812
+ output_mtok: 2,
813
+ },
814
+ },
815
+ {
816
+ id: 'gpt-5-nano',
817
+ name: 'GPT-5 nano',
818
+ description: "GPT-5 Nano is OpenAI's fastest, cheapest version of GPT-5. It's great for summarization and classification tasks.",
819
+ match: {
820
+ or: [
821
+ {
822
+ equals: 'gpt-5-nano',
823
+ },
824
+ {
825
+ equals: 'gpt-5-nano-2025-04-14',
826
+ },
827
+ ],
828
+ },
829
+ context_window: 400000,
830
+ prices: {
831
+ input_mtok: 0.05,
832
+ cache_read_mtok: 0.005,
833
+ output_mtok: 0.4,
834
+ },
835
+ },
751
836
  {
752
837
  id: 'gpt35',
753
838
  match: {
@@ -3269,6 +3354,75 @@ export const data = [
3269
3354
  output_mtok: 18,
3270
3355
  },
3271
3356
  },
3357
+ {
3358
+ id: 'gpt-5',
3359
+ name: 'GPT-5',
3360
+ description: "GPT-5 is OpenAI's flagship model for coding, reasoning, and agentic tasks across domains.",
3361
+ match: {
3362
+ or: [
3363
+ {
3364
+ equals: 'gpt-5',
3365
+ },
3366
+ {
3367
+ equals: 'gpt-5-2025-08-07',
3368
+ },
3369
+ {
3370
+ equals: 'gpt-5-chat',
3371
+ },
3372
+ {
3373
+ equals: 'gpt-5-chat-latest',
3374
+ },
3375
+ ],
3376
+ },
3377
+ context_window: 400000,
3378
+ prices: {
3379
+ input_mtok: 1.25,
3380
+ cache_read_mtok: 0.125,
3381
+ output_mtok: 10,
3382
+ },
3383
+ },
3384
+ {
3385
+ id: 'gpt-5-mini',
3386
+ name: 'GPT-5 mini',
3387
+ description: "GPT-5 mini is a faster, more cost-efficient version of GPT-5. It's great for well-defined tasks and precise prompts.",
3388
+ match: {
3389
+ or: [
3390
+ {
3391
+ equals: 'gpt-5-mini',
3392
+ },
3393
+ {
3394
+ equals: 'gpt-5-mini-2025-08-07',
3395
+ },
3396
+ ],
3397
+ },
3398
+ context_window: 400000,
3399
+ prices: {
3400
+ input_mtok: 0.25,
3401
+ cache_read_mtok: 0.025,
3402
+ output_mtok: 2,
3403
+ },
3404
+ },
3405
+ {
3406
+ id: 'gpt-5-nano',
3407
+ name: 'GPT-5 nano',
3408
+ description: "GPT-5 Nano is OpenAI's fastest, cheapest version of GPT-5. It's great for summarization and classification tasks.",
3409
+ match: {
3410
+ or: [
3411
+ {
3412
+ equals: 'gpt-5-nano',
3413
+ },
3414
+ {
3415
+ equals: 'gpt-5-nano-2025-04-14',
3416
+ },
3417
+ ],
3418
+ },
3419
+ context_window: 400000,
3420
+ prices: {
3421
+ input_mtok: 0.05,
3422
+ cache_read_mtok: 0.005,
3423
+ output_mtok: 0.4,
3424
+ },
3425
+ },
3272
3426
  {
3273
3427
  id: 'o1',
3274
3428
  name: 'o1',
@@ -101,7 +101,7 @@
101
101
  }
102
102
  },
103
103
  {
104
- id: "claude-3-haiku-latest",
104
+ id: "claude-3-haiku",
105
105
  name: "Claude Haiku 3",
106
106
  description: "Fastest, most cost-effective model",
107
107
  match: {
@@ -167,6 +167,28 @@
167
167
  output_mtok: 75
168
168
  }
169
169
  },
170
+ {
171
+ id: "claude-opus-4-1",
172
+ name: "Claude Opus 4.1",
173
+ description: "Most intelligent model for complex tasks",
174
+ match: {
175
+ or: [
176
+ {
177
+ starts_with: "claude-opus-4"
178
+ },
179
+ {
180
+ starts_with: "claude-4-opus-20250522"
181
+ }
182
+ ]
183
+ },
184
+ context_window: 2e5,
185
+ prices: {
186
+ input_mtok: 15,
187
+ cache_write_mtok: 18.75,
188
+ cache_read_mtok: 1.5,
189
+ output_mtok: 75
190
+ }
191
+ },
170
192
  {
171
193
  id: "claude-sonnet-4-0",
172
194
  name: "Claude Sonnet 4",
@@ -754,6 +776,69 @@
754
776
  output_audio_mtok: 80
755
777
  }
756
778
  },
779
+ {
780
+ id: "gpt-5",
781
+ name: "GPT-5",
782
+ description: "GPT-5 is OpenAI's flagship model for coding, reasoning, and agentic tasks across domains.",
783
+ match: {
784
+ or: [
785
+ {
786
+ equals: "gpt-5"
787
+ },
788
+ {
789
+ equals: "gpt-5-2025-08-07"
790
+ }
791
+ ]
792
+ },
793
+ context_window: 4e5,
794
+ prices: {
795
+ input_mtok: 1.25,
796
+ cache_read_mtok: 0.125,
797
+ output_mtok: 10
798
+ }
799
+ },
800
+ {
801
+ id: "gpt-5-mini",
802
+ name: "GPT-5 mini",
803
+ description: "GPT-5 mini is a faster, more cost-efficient version of GPT-5. It's great for well-defined tasks and precise prompts.",
804
+ match: {
805
+ or: [
806
+ {
807
+ equals: "gpt-5-mini"
808
+ },
809
+ {
810
+ equals: "gpt-5-mini-2025-08-07"
811
+ }
812
+ ]
813
+ },
814
+ context_window: 4e5,
815
+ prices: {
816
+ input_mtok: 0.25,
817
+ cache_read_mtok: 0.025,
818
+ output_mtok: 2
819
+ }
820
+ },
821
+ {
822
+ id: "gpt-5-nano",
823
+ name: "GPT-5 nano",
824
+ description: "GPT-5 Nano is OpenAI's fastest, cheapest version of GPT-5. It's great for summarization and classification tasks.",
825
+ match: {
826
+ or: [
827
+ {
828
+ equals: "gpt-5-nano"
829
+ },
830
+ {
831
+ equals: "gpt-5-nano-2025-04-14"
832
+ }
833
+ ]
834
+ },
835
+ context_window: 4e5,
836
+ prices: {
837
+ input_mtok: 0.05,
838
+ cache_read_mtok: 5e-3,
839
+ output_mtok: 0.4
840
+ }
841
+ },
757
842
  {
758
843
  id: "gpt35",
759
844
  match: {
@@ -3275,6 +3360,75 @@
3275
3360
  output_mtok: 18
3276
3361
  }
3277
3362
  },
3363
+ {
3364
+ id: "gpt-5",
3365
+ name: "GPT-5",
3366
+ description: "GPT-5 is OpenAI's flagship model for coding, reasoning, and agentic tasks across domains.",
3367
+ match: {
3368
+ or: [
3369
+ {
3370
+ equals: "gpt-5"
3371
+ },
3372
+ {
3373
+ equals: "gpt-5-2025-08-07"
3374
+ },
3375
+ {
3376
+ equals: "gpt-5-chat"
3377
+ },
3378
+ {
3379
+ equals: "gpt-5-chat-latest"
3380
+ }
3381
+ ]
3382
+ },
3383
+ context_window: 4e5,
3384
+ prices: {
3385
+ input_mtok: 1.25,
3386
+ cache_read_mtok: 0.125,
3387
+ output_mtok: 10
3388
+ }
3389
+ },
3390
+ {
3391
+ id: "gpt-5-mini",
3392
+ name: "GPT-5 mini",
3393
+ description: "GPT-5 mini is a faster, more cost-efficient version of GPT-5. It's great for well-defined tasks and precise prompts.",
3394
+ match: {
3395
+ or: [
3396
+ {
3397
+ equals: "gpt-5-mini"
3398
+ },
3399
+ {
3400
+ equals: "gpt-5-mini-2025-08-07"
3401
+ }
3402
+ ]
3403
+ },
3404
+ context_window: 4e5,
3405
+ prices: {
3406
+ input_mtok: 0.25,
3407
+ cache_read_mtok: 0.025,
3408
+ output_mtok: 2
3409
+ }
3410
+ },
3411
+ {
3412
+ id: "gpt-5-nano",
3413
+ name: "GPT-5 nano",
3414
+ description: "GPT-5 Nano is OpenAI's fastest, cheapest version of GPT-5. It's great for summarization and classification tasks.",
3415
+ match: {
3416
+ or: [
3417
+ {
3418
+ equals: "gpt-5-nano"
3419
+ },
3420
+ {
3421
+ equals: "gpt-5-nano-2025-04-14"
3422
+ }
3423
+ ]
3424
+ },
3425
+ context_window: 4e5,
3426
+ prices: {
3427
+ input_mtok: 0.05,
3428
+ cache_read_mtok: 5e-3,
3429
+ output_mtok: 0.4
3430
+ }
3431
+ },
3278
3432
  {
3279
3433
  id: "o1",
3280
3434
  name: "o1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pydantic/genai-prices",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Calculate prices for calling LLM inference APIs (JS/TS version of genai-prices)",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",