Skip to content

Commit 685e09a

Browse files
Bhishmendra MahalaBhishmendra Mahala
authored andcommitted
feat: add custom_pricing (standard/batch/fast) for Claude Opus 4.6/4.7/4.8
Adds multidimensional custom_pricing under regions.default with standard, batch, and fast execution_modes for claude-opus-4-6, claude-opus-4-7, and claude-opus-4-8. Fast-mode rates per Anthropic pricing docs (Opus 4.6/4.7: $30/$150 per MTok; Opus 4.8: $10/$50 per MTok), with 5m/1h cache-write and cache-read multipliers applied. Source: https://docs.claude.com/en/docs/about-claude/pricing
1 parent 98bec0b commit 685e09a

1 file changed

Lines changed: 198 additions & 0 deletions

File tree

pricing/anthropic.json

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,72 @@
791791
"price": 0.00125
792792
}
793793
}
794+
},
795+
"custom_pricing": {
796+
"regions": {
797+
"default": {
798+
"execution_modes": {
799+
"standard": {
800+
"pricing_config": {
801+
"pay_as_you_go": {
802+
"request_token": {
803+
"price": 0.0005
804+
},
805+
"response_token": {
806+
"price": 0.0025
807+
},
808+
"cache_write_input_token": {
809+
"price": 0.000625
810+
},
811+
"cache_read_input_token": {
812+
"price": 0.00005
813+
},
814+
"additional_units": {
815+
"cache_write_1h": {
816+
"price": 0.001
817+
}
818+
}
819+
}
820+
}
821+
},
822+
"batch": {
823+
"pricing_config": {
824+
"pay_as_you_go": {
825+
"request_token": {
826+
"price": 0.00025
827+
},
828+
"response_token": {
829+
"price": 0.00125
830+
}
831+
}
832+
}
833+
},
834+
"fast": {
835+
"pricing_config": {
836+
"pay_as_you_go": {
837+
"request_token": {
838+
"price": 0.003
839+
},
840+
"response_token": {
841+
"price": 0.015
842+
},
843+
"cache_write_input_token": {
844+
"price": 0.00375
845+
},
846+
"cache_read_input_token": {
847+
"price": 0.0003
848+
},
849+
"additional_units": {
850+
"cache_write_1h": {
851+
"price": 0.006
852+
}
853+
}
854+
}
855+
}
856+
}
857+
}
858+
}
859+
}
794860
}
795861
},
796862
"claude-sonnet-4-6": {
@@ -915,6 +981,72 @@
915981
"price": 0.00125
916982
}
917983
}
984+
},
985+
"custom_pricing": {
986+
"regions": {
987+
"default": {
988+
"execution_modes": {
989+
"standard": {
990+
"pricing_config": {
991+
"pay_as_you_go": {
992+
"request_token": {
993+
"price": 0.0005
994+
},
995+
"response_token": {
996+
"price": 0.0025
997+
},
998+
"cache_write_input_token": {
999+
"price": 0.000625
1000+
},
1001+
"cache_read_input_token": {
1002+
"price": 0.00005
1003+
},
1004+
"additional_units": {
1005+
"cache_write_1h": {
1006+
"price": 0.001
1007+
}
1008+
}
1009+
}
1010+
}
1011+
},
1012+
"batch": {
1013+
"pricing_config": {
1014+
"pay_as_you_go": {
1015+
"request_token": {
1016+
"price": 0.00025
1017+
},
1018+
"response_token": {
1019+
"price": 0.00125
1020+
}
1021+
}
1022+
}
1023+
},
1024+
"fast": {
1025+
"pricing_config": {
1026+
"pay_as_you_go": {
1027+
"request_token": {
1028+
"price": 0.003
1029+
},
1030+
"response_token": {
1031+
"price": 0.015
1032+
},
1033+
"cache_write_input_token": {
1034+
"price": 0.00375
1035+
},
1036+
"cache_read_input_token": {
1037+
"price": 0.0003
1038+
},
1039+
"additional_units": {
1040+
"cache_write_1h": {
1041+
"price": 0.006
1042+
}
1043+
}
1044+
}
1045+
}
1046+
}
1047+
}
1048+
}
1049+
}
9181050
}
9191051
},
9201052
"claude-opus-4-8": {
@@ -946,6 +1078,72 @@
9461078
"price": 0.00125
9471079
}
9481080
}
1081+
},
1082+
"custom_pricing": {
1083+
"regions": {
1084+
"default": {
1085+
"execution_modes": {
1086+
"standard": {
1087+
"pricing_config": {
1088+
"pay_as_you_go": {
1089+
"request_token": {
1090+
"price": 0.0005
1091+
},
1092+
"response_token": {
1093+
"price": 0.0025
1094+
},
1095+
"cache_write_input_token": {
1096+
"price": 0.000625
1097+
},
1098+
"cache_read_input_token": {
1099+
"price": 0.00005
1100+
},
1101+
"additional_units": {
1102+
"cache_write_1h": {
1103+
"price": 0.001
1104+
}
1105+
}
1106+
}
1107+
}
1108+
},
1109+
"batch": {
1110+
"pricing_config": {
1111+
"pay_as_you_go": {
1112+
"request_token": {
1113+
"price": 0.00025
1114+
},
1115+
"response_token": {
1116+
"price": 0.00125
1117+
}
1118+
}
1119+
}
1120+
},
1121+
"fast": {
1122+
"pricing_config": {
1123+
"pay_as_you_go": {
1124+
"request_token": {
1125+
"price": 0.001
1126+
},
1127+
"response_token": {
1128+
"price": 0.005
1129+
},
1130+
"cache_write_input_token": {
1131+
"price": 0.00125
1132+
},
1133+
"cache_read_input_token": {
1134+
"price": 0.0001
1135+
},
1136+
"additional_units": {
1137+
"cache_write_1h": {
1138+
"price": 0.002
1139+
}
1140+
}
1141+
}
1142+
}
1143+
}
1144+
}
1145+
}
1146+
}
9491147
}
9501148
},
9511149
"claude-fable-5": {

0 commit comments

Comments
 (0)