Repository navigation
Expand file tree
/
Copy pathgoogle.yml
More file actions
2060 lines (1989 loc) · 71.2 KB
/
Copy pathgoogle.yml
File metadata and controls
2060 lines (1989 loc) · 71.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# yaml-language-server: $schema=.schema.json
name: Google
id: google
pricing_urls:
- https://ai.google.dev/gemini-api/docs/pricing
- https://cloud.google.com/vertex-ai/generative-ai/pricing
# https://cloud.google.com/vertex-ai/generative-ai/pricing#context-caching explains how caching is calculated
# Grounding with Google Search (`web_searches_kcount`): Gemini 3.x bills each unique non-empty search query at $14/1k,
# Gemini 2.x bills each grounded prompt at $35/1k however many queries it ran, and only when it returned a web source.
# Callers report the billed count as `web_searches`. Free monthly/daily allowances are account-wide and not modelled.
# https://ai.google.dev/gemini-api/docs/google-search#pricing
api_pattern: 'https://(.*\.)?googleapis\.com'
model_match:
contains: gemini
provider_match:
or:
- contains: google
- contains: vertex
- contains: gemini
# https://github.com/googleapis/nodejs-vertexai/blob/v1.10.0/src/types/content.ts#L465
# A previous comment said:
# > Note, this suggests `promptTokenCount` and `candidatesTokenCount` are optional, but they seem to be always present
# Then we found a case where `candidatesTokenCount` was missing, so we assume `promptTokenCount` can be missing too.
extractors:
- root: usageMetadata
model_path: modelVersion
mappings:
- path: promptTokenCount
dest: input_tokens
required: false
- path: cachedContentTokenCount
dest: cache_read_tokens
required: false
- path:
- cacheTokensDetails
- type: array-match
field: modality
match:
equals: TEXT
- tokenCount
dest: cache_text_read_tokens
required: false
- path:
- cacheTokensDetails
- type: array-match
field: modality
match:
equals: AUDIO
- tokenCount
dest: cache_audio_read_tokens
required: false
- path:
- cacheTokensDetails
- type: array-match
field: modality
match:
equals: IMAGE
- tokenCount
dest: cache_image_read_tokens
required: false
- path:
- cacheTokensDetails
- type: array-match
field: modality
match:
equals: DOCUMENT
- tokenCount
dest: cache_image_read_tokens
required: false
- path:
- cacheTokensDetails
- type: array-match
field: modality
match:
equals: VIDEO
- tokenCount
dest: cache_video_read_tokens
required: false
- path:
- promptTokensDetails
- type: array-match
field: modality
match:
equals: TEXT
- tokenCount
dest: input_text_tokens
required: false
- path:
- promptTokensDetails
- type: array-match
field: modality
match:
equals: AUDIO
- tokenCount
dest: input_audio_tokens
required: false
- path:
- promptTokensDetails
- type: array-match
field: modality
match:
equals: IMAGE
- tokenCount
dest: input_image_tokens
required: false
- path:
- promptTokensDetails
- type: array-match
field: modality
match:
equals: DOCUMENT
- tokenCount
dest: input_image_tokens
required: false
- path:
- promptTokensDetails
- type: array-match
field: modality
match:
equals: VIDEO
- tokenCount
dest: input_video_tokens
required: false
- path:
- candidatesTokensDetails
- type: array-match
field: modality
match:
equals: TEXT
- tokenCount
dest: output_text_tokens
required: false
- path:
- candidatesTokensDetails
- type: array-match
field: modality
match:
equals: AUDIO
- tokenCount
dest: output_audio_tokens
required: false
- path:
- candidatesTokensDetails
- type: array-match
field: modality
match:
equals: IMAGE
- tokenCount
dest: output_image_tokens
required: false
- path:
- candidatesTokensDetails
- type: array-match
field: modality
match:
equals: DOCUMENT
- tokenCount
dest: output_image_tokens
required: false
- path:
- candidatesTokensDetails
- type: array-match
field: modality
match:
equals: VIDEO
- tokenCount
dest: output_video_tokens
required: false
- path: candidatesTokenCount
dest: output_tokens
required: false
- path: thoughtsTokenCount
dest: output_tokens
required: false
- path: thoughtsTokenCount
dest: output_reasoning_tokens
required: false
- path: toolUsePromptTokenCount
dest: input_tokens
required: false
- path: toolUsePromptTokenCount
dest: input_tool_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: TEXT
- tokenCount
dest: input_text_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: TEXT
- tokenCount
dest: input_text_tool_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: AUDIO
- tokenCount
dest: input_audio_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: AUDIO
- tokenCount
dest: input_audio_tool_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: IMAGE
- tokenCount
dest: input_image_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: IMAGE
- tokenCount
dest: input_image_tool_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: DOCUMENT
- tokenCount
dest: input_image_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: DOCUMENT
- tokenCount
dest: input_image_tool_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: VIDEO
- tokenCount
dest: input_video_tokens
required: false
- path:
- toolUsePromptTokensDetails
- type: array-match
field: modality
match:
equals: VIDEO
- tokenCount
dest: input_video_tool_tokens
required: false
# https://github.com/anthropics/anthropic-sdk-python/blob/v0.62.0/src/anthropic/types/usage.py#L12
- root: usage
api_flavor: anthropic
mappings:
- path: input_tokens
dest: input_tokens
- path: cache_creation_input_tokens
dest: input_tokens
required: false
- path: cache_read_input_tokens
dest: input_tokens
required: false
- path: cache_creation_input_tokens
dest: cache_write_tokens
required: false
- path: [cache_creation, ephemeral_5m_input_tokens]
dest: cache_write_5m_tokens
required: false
- path: [cache_creation, ephemeral_1h_input_tokens]
dest: cache_write_1h_tokens
required: false
- path: cache_read_input_tokens
dest: cache_read_tokens
required: false
- path: output_tokens
dest: output_tokens
- api_flavor: chat # openai
root: usage
mappings:
- path: prompt_tokens
dest: input_tokens
- path: [prompt_tokens_details, cached_tokens]
dest: cache_read_tokens
required: false
- path: [prompt_tokens_details, audio_tokens]
dest: input_audio_tokens
required: false
- path: [completion_tokens_details, audio_tokens]
dest: output_audio_tokens
required: false
- path: [completion_tokens_details, reasoning_tokens]
dest: output_reasoning_tokens
required: false
- path: completion_tokens
dest: output_tokens
fallback_model_providers:
- anthropic
models:
- id: claude-3-5-haiku
canonical_model: anthropic/claude-3-5-haiku-latest
match:
contains: claude-3-5-haiku
context_window: 200000
prices_checked: 2025-07-05
prices:
input_mtok: 0.8
cache_write_mtok: 1
cache_read_mtok: 0.08
output_mtok: 4
- id: claude-3-5-sonnet
canonical_model: anthropic/claude-3-5-sonnet
# this model also covers claude-3-5-sonnet-v2
match:
contains: claude-3-5-sonnet
context_window: 200000
prices_checked: 2025-07-05
prices:
input_mtok: 3
cache_write_mtok: 3.75
cache_read_mtok: 0.3
output_mtok: 15
- id: claude-3-7-sonnet
canonical_model: anthropic/claude-3-7-sonnet-latest
match:
contains: claude-3-7-sonnet
context_window: 200000
prices_checked: 2025-07-05
prices:
input_mtok: 3
cache_write_mtok: 3.75
cache_read_mtok: 0.3
output_mtok: 15
- id: claude-3-haiku
canonical_model: anthropic/claude-3-haiku
match:
contains: claude-3-haiku
context_window: 200000
prices_checked: 2025-07-05
prices:
input_mtok: 0.25
cache_write_mtok: 0.3
cache_read_mtok: 0.03
output_mtok: 1.25
- id: claude-3-opus
canonical_model: anthropic/claude-3-opus-latest
match:
contains: claude-3-opus
prices_checked: 2025-07-05
prices:
input_mtok: 15
cache_write_mtok: 18.75
cache_read_mtok: 1.5
output_mtok: 75
- id: claude-4-opus
match:
or:
- contains: claude-4-opus
- contains: claude-opus-4@
- contains: claude-opus-4-0
- contains: claude-opus-4-1
- equals: claude-opus-4
context_window: 200000
prices_checked: 2025-07-05
prices:
input_mtok: 15
cache_write_mtok: 18.75
cache_read_mtok: 1.5
output_mtok: 75
- id: claude-4-sonnet
canonical_model: anthropic/claude-sonnet-4-0
match:
or:
- contains: claude-4-sonnet
- contains: claude-sonnet-4-0
- contains: claude-sonnet-4@
- contains: claude-sonnet-4-2025
- equals: claude-sonnet-4
- equals: anthropic/claude-sonnet-4
context_window: 200000
prices_checked: 2025-07-05
prices:
input_mtok: 3
cache_write_mtok: 3.75
cache_read_mtok: 0.3
output_mtok: 15
- id: claude-fable-5
canonical_model: anthropic/claude-fable-5
match:
or:
- ends_with: claude-fable-5
- contains: claude-fable-5@
context_window: 1000000
prices_checked: 2026-09-25
price_comments: >-
Flat pricing across full 1M context window.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 10
cache_read_mtok: 1.0
cache_write_mtok: 12.5
cache_write_1h_mtok: 20
output_mtok: 50
- id: claude-fable-5-1
canonical_model: anthropic/claude-fable-5-1
match:
or:
- ends_with: claude-fable-5-1
- contains: claude-fable-5-1@
context_window: 1000000
prices_checked: 2026-09-25
price_comments: >-
Flat pricing across full 1M context window. Global endpoint; regional and
multi-region endpoints add a 10% premium.
Cache hits are 0.025x base input (not the usual 0.1x), unique to Fable 5.1 and Mythos 5.1.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
Model ID ref: https://platform.claude.com/docs/en/build-with-claude/claude-on-vertex-ai
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 10
cache_read_mtok: 0.25
cache_write_mtok: 12.5
cache_write_1h_mtok: 20
output_mtok: 50
- id: claude-haiku-4-5
canonical_model: anthropic/claude-haiku-4-5
match:
or:
- contains: claude-haiku-4-5
- contains: claude-haiku-4.5
context_window: 200000
prices_checked: 2026-10-15
price_comments: >-
Vertex AI Global endpoint rates from https://cloud.google.com/vertex-ai/generative-ai/pricing
(Claude models, Global tab): input $1 / 1M tokens, output $5 / 1M tokens, 5-minute cache writes
$1.25 / 1M tokens, 1-hour cache writes $2 / 1M tokens, cache hits $0.10 / 1M tokens. The Vertex
table also publishes batch rates (half of input and output); batch variants are not modelled for
Vertex Claude entries in this file.
prices:
input_mtok: 1
cache_read_mtok: 0.1
cache_write_mtok: 1.25
cache_write_1h_mtok: 2
output_mtok: 5
- id: claude-haiku-5-5
canonical_model: anthropic/claude-haiku-5-5
match:
or:
- contains: claude-haiku-5-5
- contains: claude-haiku-5.5
- contains: claude-5-5-haiku
- contains: claude-5.5-haiku
context_window: 1000000
prices_checked: 2026-10-08
price_comments: >-
Global endpoint pricing; multi-region and regional endpoints carry a 10% premium.
Prompts over 100K input tokens bill every token at the long-context rate.
Rates match Anthropic's list price and OpenRouter's Google endpoint.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
OpenRouter ref: https://openrouter.ai/api/v1/models/anthropic/claude-haiku-5.5/endpoints
prices:
input_mtok:
base: 0.1
tiers:
- start: 100000
price: 0.5
cache_write_mtok:
base: 0.125
tiers:
- start: 100000
price: 0.625
cache_write_1h_mtok:
base: 0.2
tiers:
- start: 100000
price: 1
cache_read_mtok:
base: 0.01
tiers:
- start: 100000
price: 0.05
output_mtok:
base: 0.5
tiers:
- start: 100000
price: 2.5
- id: claude-opus-4-5
canonical_model: anthropic/claude-opus-4-5
match:
or:
- contains: claude-4-5-opus
- contains: claude-opus-4-5
- contains: claude-4.5-opus
- contains: claude-opus-4.5
context_window: 200000
prices_checked: 2026-10-12
price_comments: >-
A 200K context window, so there is no long-context tier.
Global endpoint rates; regional and multi-region endpoints carry a 10% premium.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
Model ID ref: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude
prices:
input_mtok: 5
cache_read_mtok: 0.50
cache_write_mtok: 6.25
cache_write_1h_mtok: 10
output_mtok: 25
- id: claude-opus-4-6
canonical_model: anthropic/claude-opus-4-6
# Google documents 1M for this exact model: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/opus-4-6
match:
or:
- contains: claude-4-6-opus
- contains: claude-opus-4-6
- contains: claude-4.6-opus
- contains: claude-opus-4.6
prices_checked: 2026-09-25
price_comments: >-
Flat pricing across the full 1M context window since the long-context premium was removed on
2026-03-13, including on Vertex AI: https://claude.com/blog/1m-context-ga
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models (global endpoint)
prices:
- prices:
input_mtok:
base: 5
tiers:
- start: 200000
price: 10
cache_read_mtok:
base: 0.50
tiers:
- start: 200000
price: 1
cache_write_mtok:
base: 6.25
tiers:
- start: 200000
price: 12.50
output_mtok:
base: 25
tiers:
- start: 200000
price: 37.50
- constraint:
start_date: 2026-03-13
prices:
input_mtok: 5
cache_read_mtok: 0.50
cache_write_mtok: 6.25
cache_write_1h_mtok: 10
output_mtok: 25
- id: claude-opus-4-7
canonical_model: anthropic/claude-opus-4-7
match:
or:
- contains: claude-4-7-opus
- contains: claude-opus-4-7
- contains: claude-4.7-opus
- contains: claude-opus-4.7
context_window: 1000000
prices_checked: 2026-09-25
price_comments: >-
Flat pricing across full 1M context window.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 5
cache_read_mtok: 0.50
cache_write_mtok: 6.25
cache_write_1h_mtok: 10
output_mtok: 25
- id: claude-opus-4-8
canonical_model: anthropic/claude-opus-4-8
match:
or:
- contains: claude-4-8-opus
- contains: claude-opus-4-8
- contains: claude-4.8-opus
- contains: claude-opus-4.8
context_window: 1000000
prices_checked: 2026-09-25
price_comments: >-
Flat pricing across full 1M context window.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 5
cache_read_mtok: 0.50
cache_write_mtok: 6.25
cache_write_1h_mtok: 10
output_mtok: 25
- id: claude-opus-5
canonical_model: anthropic/claude-opus-5
match:
or:
- contains: claude-5-opus
- ends_with: claude-opus-5
- contains: claude-opus-5@
- contains: claude-5.0-opus
- contains: claude-opus-5.0
context_window: 1000000
prices_checked: 2026-09-25
price_comments: >-
Global endpoint pricing, flat across the full 1M context window. Multi-region and regional
endpoints carry a 10% premium.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 5
cache_read_mtok: 0.50
cache_write_mtok: 6.25
cache_write_1h_mtok: 10
output_mtok: 25
- id: claude-opus-5-5
canonical_model: anthropic/claude-opus-5-5
match:
or:
- contains: claude-5-5-opus
- ends_with: claude-opus-5-5
- contains: claude-opus-5-5@
- contains: claude-5.5-opus
- contains: claude-opus-5.5
context_window: 1000000
prices_checked: 2026-09-25
price_comments: >-
Global endpoint pricing, flat across the full 1M context window. Multi-region and regional
endpoints carry a 10% premium. Google's pricing page renders client-side and could not be read
when this entry was added; the rates follow Anthropic's list price, as every other Claude entry
in this file does. Cache hits are 0.05x base input (not the usual 0.1x), as on Sonnet 5.5.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
Anthropic ref: https://platform.claude.com/docs/en/about-claude/pricing#model-pricing
Model ID ref: https://platform.claude.com/docs/en/models/opus-5-5/overview
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 4
cache_read_mtok: 0.20
cache_write_mtok: 5
cache_write_1h_mtok: 8
output_mtok: 20
- id: claude-sonnet-4-5
canonical_model: anthropic/claude-sonnet-4-5
match:
or:
- contains: claude-sonnet-4-5
- contains: claude-sonnet-4.5
# Google documents 200K as the GA context and 1M as beta:
# https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/sonnet-4-5
context_window: 200000
prices_checked: 2026-09-25
price_comments: >-
Long-context rates apply above 200K input tokens.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#partner-models
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok:
base: 3
tiers:
- start: 200000
price: 6
cache_write_mtok:
base: 3.75
tiers:
- start: 200000
price: 7.5
cache_write_1h_mtok:
base: 6
tiers:
- start: 200000
price: 12
cache_read_mtok:
base: 0.3
tiers:
- start: 200000
price: 0.6
output_mtok:
base: 15
tiers:
- start: 200000
price: 22.5
- id: claude-sonnet-4-6
canonical_model: anthropic/claude-sonnet-4-6
match:
or:
- contains: claude-sonnet-4-6
- contains: claude-sonnet-4.6
# Google documents a 1M context window:
# https://docs.cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/sonnet-4-6
prices_checked: 2026-09-25
price_comments: >-
Flat pricing across the full 1M context window.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#partner-models
The one-hour cache write rate is the global endpoint's, from the same pricing page.
prices:
input_mtok: 3
cache_write_mtok: 3.75
cache_write_1h_mtok: 6
cache_read_mtok: 0.3
output_mtok: 15
- id: claude-sonnet-5-5
canonical_model: anthropic/claude-sonnet-5-5
match:
or:
- contains: claude-sonnet-5-5
- contains: claude-sonnet-5.5
- contains: claude-5-5-sonnet
- contains: claude-5.5-sonnet
context_window: 1000000
prices_checked: 2026-10-08
price_comments: >-
Global endpoint pricing, flat across the full 1M context window. Multi-region and regional
endpoints carry a 10% premium. Rates match Anthropic's list price and OpenRouter's Google endpoint.
Cache hits are 0.05x base input (not the usual 0.1x), as on Opus 5.5.
Ref: https://cloud.google.com/vertex-ai/generative-ai/pricing#claude-models
Anthropic ref: https://platform.claude.com/docs/en/about-claude/pricing#model-pricing
OpenRouter ref: https://openrouter.ai/api/v1/models/anthropic/claude-sonnet-5.5/endpoints
prices:
input_mtok: 2
cache_write_mtok: 2.5
cache_write_1h_mtok: 4
cache_read_mtok: 0.1
output_mtok: 10
- id: gemini-1.0-pro-vision-001
name: gemini 1.0 pro vision
description: >-
Google's first-generation advanced multimodal model that can understand
text, code, and images. It provides strong reasoning capabilities and
follows instructions effectively.
match:
equals: gemini-1.0-pro-vision-001
context_window: 32768
price_comments: I can't find anything about this model or it's pricing, so trusting the original source
prices_checked: 2025-07-04
prices:
input_mtok: 0.125
output_mtok: 0.375
- id: gemini-1.5-flash
name: gemini 1.5 flash
description: >-
A faster, more cost-effective variant of Gemini 1.5 that maintains strong
capabilities while optimizing for performance and cost efficiency.
Suitable for production deployments requiring high throughput.
match:
contains: gemini-1.5-flash
context_window: 1000000
prices_checked: 2025-07-04
prices:
input_mtok:
base: 0.075
tiers:
- start: 128000
price: 0.15
output_mtok:
base: 0.3
tiers:
- start: 128000
price: 0.6
cache_read_mtok:
base: 0.01875
tiers:
- start: 128000
price: 0.0375
- id: gemini-1.5-pro
name: gemini 1.5 Pro
description: >-
Google's most capable multimodal model with an extremely long context
window of up to 1 million tokens. It excels at complex reasoning,
long-form content processing, and multimodal understanding.
match:
contains: gemini-1.5-pro
context_window: 1000000
prices_checked: 2025-06-22
prices:
input_mtok:
base: 1.25
tiers:
- start: 128000
price: 2.50
output_mtok:
base: 5.00
tiers:
- start: 128000
price: 10.00
- id: gemini-2.0-flash
name: gemini 2.0 flash
description: >-
The newest generation of Google's Gemini models, featuring improved
reasoning, instruction following, and factual accuracy, with the Flash
variant optimized for cost-efficiency and performance.
match:
or:
- ends_with: gemini-2.0-flash
- contains: gemini-2.0-flash-0
- contains: gemini-2.0-flash-exp
- contains: gemini-2.0-flash-thinking
- contains: gemini-2.0-flash-latest
context_window: 1000000
deprecated: true
prices_checked: 2026-10-15
price_comments: >-
Listed as "(Shut down)" under "Previous models" in the Gemini API models catalog
(https://ai.google.dev/gemini-api/docs/models, catalog last updated 2026-10-13). Checked 2026-10-15;
kept for historical usage.
prices:
input_mtok: 0.1
input_audio_mtok: 0.7
output_mtok: 0.4
cache_read_mtok: 0.025
cache_audio_read_mtok: 0.175
web_searches_kcount: 35 # per grounded prompt, not per query
- id: gemini-2.0-flash-lite
name: gemini 2.0 flash lite
description: >-
A lighter, more cost-effective version of Gemini 2.0 Flash, designed for
applications requiring high efficiency while maintaining good performance.
Ideal for high-volume, cost-sensitive deployments.
match:
contains: gemini-2.0-flash-lite
context_window: 1000000
deprecated: true
prices_checked: 2026-10-15
price_comments: >-
Listed as "(Shut down)" under "Previous models" in the Gemini API models catalog
(https://ai.google.dev/gemini-api/docs/models, catalog last updated 2026-10-13). Checked 2026-10-15;
kept for historical usage.
prices:
input_mtok: 0.075
output_mtok: 0.3
- id: gemini-2.5-flash
name: Gemini 2.5 Flash
description: >-
Gemini 2.5 Flash is Google's state-of-the-art workhorse model, specifically designed for advanced reasoning, coding,
mathematics, and scientific tasks. It includes built-in "thinking" capabilities,
enabling it to provide responses with greater accuracy and nuanced context handling.
match:
or:
- equals: gemini-2.5-flash
- equals: gemini-2.5-flash-latest
- equals: gemini-2.5-flash-preview-09-2025
context_window: 1048576
prices_checked: 2026-10-14
price_comments: >-
Batch rates verified on 2026-10-14 at https://ai.google.dev/gemini-api/docs/pricing (Batch tab); batch history
before then is not modelled. Batch halves input and output; context caching stays at the standard rate.
prices:
input_mtok: 0.3
input_audio_mtok: 1
cache_read_mtok: 0.03
cache_audio_read_mtok: 0.1
output_mtok: 2.5
web_searches_kcount: 35 # per grounded prompt, not per query
price_variants:
- when: { processing: batch }
constraint: { start_date: 2026-10-14 }
prices:
input_mtok: 0.15
input_audio_mtok: 0.5
output_mtok: 1.25
- id: gemini-2.5-flash-image
name: Gemini 2.5 Flash Image
description: >-
Google's specialized image generation model optimized for fast, high-quality image generation.
Outputs images at 1024x1024 resolution, with each image consuming 1290 output tokens.
match:
or:
- equals: gemini-2.5-flash-image
- equals: gemini-2.5-flash-image-preview
context_window: 1000000
deprecated: true
prices_checked: 2026-10-10
price_comments: >-
Deprecated. Gemini API pricing page announces "Gemini 2.5 Flash Image / Nano Banana (DEPRECATED — shut
down Oct 2, 2026); migrate to Gemini 3.1 Flash Image or 3.1 Flash Lite Image."
(https://ai.google.dev/gemini-api/docs/pricing). Image output is priced at $30 per 1M tokens, with each
1024x1024 image = 1290 tokens = $0.039/image. Cache pricing is not available for this
model. Text output uses the Gemini 2.5 Flash $2.50 rate and is the aggregate remainder when modality details omit text.
prices:
input_mtok: 0.3
output_mtok: 2.5
output_image_mtok: 30
- id: gemini-2.5-flash-lite
name: Gemini 2.5 Flash Lite
description: >-
Gemini 2.5 Flash-Lite is a lightweight reasoning model in the Gemini 2.5 family, optimized for ultra-low latency and
cost efficiency. It offers improved throughput, faster token generation, and better
performance across common benchmarks compared to earlier Flash models. By default, "thinking" (i.e. multi-pass reasoning)
is disabled to prioritize speed, but developers can enable it via the Reasoning
API parameter to selectively trade off cost for intelligence.
match:
or:
- equals: gemini-2.5-flash-lite
- and:
- starts_with: gemini-2.5-flash-lite-preview
- regex: "^(?!.*-[tT][tT][sS](?:$|-))"
context_window: 1000000
prices_checked: 2026-10-14
price_comments: >-
Batch rates verified on 2026-10-14 at https://ai.google.dev/gemini-api/docs/pricing (Batch tab); batch history
before then is not modelled. Batch halves input and output; context caching stays at the standard rate.
prices:
input_mtok: 0.1
input_audio_mtok: 0.3
cache_read_mtok: 0.01
cache_audio_read_mtok: 0.03
output_mtok: 0.4
web_searches_kcount: 35 # per grounded prompt, not per query
price_variants:
- when: { processing: batch }
constraint: { start_date: 2026-10-14 }
prices:
input_mtok: 0.05
input_audio_mtok: 0.15
output_mtok: 0.2
- id: gemini-2.5-flash-lite-preview-tts
name: Gemini 2.5 Flash-Lite Preview TTS
match:
equals: gemini-2.5-flash-lite-preview-tts
context_window: 8192
prices_checked: 2026-08-26
price_comments: See https://cloud.google.com/text-to-speech/pricing#gemini-tts.
prices:
input_mtok: 0.5
output_mtok: 10
- id: gemini-2.5-flash-preview
name: Gemini 2.5 Flash Preview 05-20
description: >-
Gemini 2.5 Flash May 20th Checkpoint is Google's state-of-the-art workhorse model, specifically designed for advanced
reasoning, coding, mathematics, and scientific tasks. It includes built-in "thinking"
capabilities, enabling it to provide responses with greater accuracy and nuanced context handling.
match:
or:
- contains: gemini-2.5-flash-preview-05-20
- contains: gemini-2.5-flash-preview-04-17
- equals: gemini-2.5-flash-preview-05-20:thinking
- equals: gemini-2.5-flash-preview
- equals: gemini-2.5-flash-preview:thinking
price_comments: from https://cloud.google.com/vertex-ai/generative-ai/pricing should be retired 2025-07-15
deprecated: true
prices_checked: 2026-09-29
prices:
input_mtok: 0.15
output_mtok: 0.6
web_searches_kcount: 35 # per grounded prompt, not per query
- id: gemini-2.5-flash-tts
name: Gemini 2.5 Flash TTS