Skip to content

Commit 273f1dc

Browse files
authored
sort by region (#222)
* sort by region * reverse order
1 parent 3b2f8c9 commit 273f1dc

87 files changed

Lines changed: 1027 additions & 925 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/validate.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ jobs:
3333

3434
- name: Run validation
3535
run: ./test/validate.sh
36+
37+
- name: Set up Node.js
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: '20'
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
working-directory: ./
45+
46+
- name: Validate cost entries
47+
run: npm run validate:costs
48+
working-directory: ./

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"sync:bedrock": "ts-node --project scripts/tsconfig.json scripts/sync-bedrock-costs.ts",
1010
"lint:yaml": "yamllint -c .yamllint.yml providers/",
1111
"sort:yaml": "ts-node --project scripts/tsconfig.json scripts/sort-yaml-keys.ts",
12+
"validate:costs": "ts-node --project scripts/tsconfig.json scripts/validate-costs.ts",
1213
"lint:yaml:fix": "npm run sort:yaml && prettier --write --log-level silent --tab-width 4 --print-width 256 'providers/**/*.yaml'",
1314
"update:readme": "ts-node --project scripts/tsconfig.json scripts/update-readme-counts.ts",
1415
"prepare": "husky"

providers/aws-bedrock/amazon.nova-lite-v1:0.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,40 @@ costs:
55
- input_cost_per_token: 7.7e-8
66
output_cost_per_token: 3.08e-7
77
region: us-west-1
8+
- input_cost_per_token: 7.2e-8
9+
output_cost_per_token: 2.88e-7
10+
region: us-gov-west-1
811
- input_cost_per_token: 6.e-8
912
output_cost_per_token: 2.4e-7
1013
region: us-east-2
1114
- cache_read_input_token_cost: 1.5e-8
1215
input_cost_per_token: 6.e-8
1316
output_cost_per_token: 2.4e-7
1417
region: us-east-1
15-
- input_cost_per_token: 6.5e-8
16-
output_cost_per_token: 2.6e-7
17-
region: eu-north-1
18-
- input_cost_per_token: 6.6e-8
19-
output_cost_per_token: 2.64e-7
20-
region: eu-south-2
2118
- input_cost_per_token: 8.8e-8
2219
output_cost_per_token: 3.52e-7
2320
region: eu-west-3
24-
- input_cost_per_token: 9.6e-8
25-
output_cost_per_token: 3.84e-7
26-
region: eu-south-1
21+
- input_cost_per_token: 8.4e-8
22+
output_cost_per_token: 3.36e-7
23+
region: eu-west-2
2724
- input_cost_per_token: 6.9e-8
2825
output_cost_per_token: 2.76e-7
2926
region: eu-west-1
27+
- input_cost_per_token: 6.6e-8
28+
output_cost_per_token: 2.64e-7
29+
region: eu-south-2
30+
- input_cost_per_token: 9.6e-8
31+
output_cost_per_token: 3.84e-7
32+
region: eu-south-1
33+
- input_cost_per_token: 6.5e-8
34+
output_cost_per_token: 2.6e-7
35+
region: eu-north-1
3036
- input_cost_per_token: 7.8e-8
3137
output_cost_per_token: 3.12e-7
3238
region: eu-central-1
3339
- input_cost_per_token: 6.4e-8
3440
output_cost_per_token: 2.56e-7
3541
region: ca-central-1
36-
- input_cost_per_token: 7.2e-8
37-
output_cost_per_token: 2.88e-7
38-
region: ap-northeast-1
39-
- input_cost_per_token: 8.4e-8
40-
output_cost_per_token: 3.36e-7
41-
region: eu-west-2
4242
- input_cost_per_token: 6.3e-8
4343
output_cost_per_token: 2.52e-7
4444
region: ap-southeast-2
@@ -47,13 +47,13 @@ costs:
4747
region: ap-southeast-1
4848
- input_cost_per_token: 7.1e-8
4949
output_cost_per_token: 2.84e-7
50-
region: ap-northeast-2
50+
region: ap-south-1
5151
- input_cost_per_token: 7.1e-8
5252
output_cost_per_token: 2.84e-7
53-
region: ap-south-1
53+
region: ap-northeast-2
5454
- input_cost_per_token: 7.2e-8
5555
output_cost_per_token: 2.88e-7
56-
region: us-gov-west-1
56+
region: ap-northeast-1
5757
features:
5858
- function_calling
5959
- vision

providers/aws-bedrock/amazon.nova-reel-v1:0.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
costs:
22
- output_cost_per_second: 0.08
33
region: us-east-1
4-
- output_cost_per_second: 0.08
5-
region: ap-northeast-1
64
- output_cost_per_second: 0.08
75
region: eu-west-1
6+
- output_cost_per_second: 0.08
7+
region: ap-northeast-1
88
mode: video
99
model: amazon.nova-reel-v1:0
1010
removeParams:

providers/aws-bedrock/amazon.titan-embed-text-v1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ costs:
77
region: eu-west-1
88
- input_cost_per_token: 2.e-7
99
region: eu-central-1
10-
- input_cost_per_token: 2.e-7
11-
region: ap-northeast-1
1210
- input_cost_per_token: 1.2e-7
1311
region: ap-south-1
12+
- input_cost_per_token: 2.e-7
13+
region: ap-northeast-1
1414
limits:
1515
max_input_tokens: 8192
1616
max_tokens: 8192

providers/aws-bedrock/apac.anthropic.claude-3-5-sonnet-20240620-v1:0.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ costs:
33
input_cost_per_token_batches: 0.0000015
44
output_cost_per_token: 0.000015
55
output_cost_per_token_batches: 0.0000075
6-
region: ap-northeast-1
6+
region: ap-southeast-2
77
- input_cost_per_token: 0.000003
88
input_cost_per_token_batches: 0.0000015
99
output_cost_per_token: 0.000015
1010
output_cost_per_token_batches: 0.0000075
11-
region: ap-northeast-2
11+
region: ap-southeast-1
1212
- input_cost_per_token: 0.000003
1313
input_cost_per_token_batches: 0.0000015
1414
output_cost_per_token: 0.000015
1515
output_cost_per_token_batches: 0.0000075
16-
region: ap-southeast-1
16+
region: ap-south-1
1717
- input_cost_per_token: 0.000003
1818
input_cost_per_token_batches: 0.0000015
1919
output_cost_per_token: 0.000015
2020
output_cost_per_token_batches: 0.0000075
21-
region: ap-southeast-2
21+
region: ap-northeast-2
2222
- input_cost_per_token: 0.000003
2323
input_cost_per_token_batches: 0.0000015
2424
output_cost_per_token: 0.000015
2525
output_cost_per_token_batches: 0.0000075
26-
region: ap-south-1
26+
region: ap-northeast-1
2727
features:
2828
- function_calling
2929
- vision

providers/aws-bedrock/au.anthropic.claude-opus-4-6-v1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ costs:
55
input_cost_per_token_batches: 0.00000275
66
output_cost_per_token: 0.0000275
77
output_cost_per_token_batches: 0.00001375
8-
region: ap-southeast-2
8+
region: ap-southeast-4
99
tiered_pricing:
1010
cache_read:
1111
- cost_per_token: 0.0000011
@@ -25,7 +25,7 @@ costs:
2525
input_cost_per_token_batches: 0.00000275
2626
output_cost_per_token: 0.0000275
2727
output_cost_per_token_batches: 0.00001375
28-
region: ap-southeast-4
28+
region: ap-southeast-2
2929
tiered_pricing:
3030
cache_read:
3131
- cost_per_token: 0.0000011

providers/aws-bedrock/au.anthropic.claude-sonnet-4-5-20250929-v1:0.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ costs:
55
input_cost_per_token_batches: 0.00000165
66
output_cost_per_token: 0.0000165
77
output_cost_per_token_batches: 0.00000825
8-
region: ap-southeast-2
8+
region: ap-southeast-4
99
tiered_pricing:
1010
cache_read:
1111
- cost_per_token: 6.6e-7
@@ -25,7 +25,7 @@ costs:
2525
input_cost_per_token_batches: 0.00000165
2626
output_cost_per_token: 0.0000165
2727
output_cost_per_token_batches: 0.00000825
28-
region: ap-southeast-4
28+
region: ap-southeast-2
2929
tiered_pricing:
3030
cache_read:
3131
- cost_per_token: 6.6e-7

providers/aws-bedrock/au.anthropic.claude-sonnet-4-6-v1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ costs:
55
input_cost_per_token_batches: 0.00000165
66
output_cost_per_token: 0.0000165
77
output_cost_per_token_batches: 0.00000825
8-
region: ap-southeast-2
8+
region: ap-southeast-4
99
tiered_pricing:
1010
cache_read:
1111
- cost_per_token: 6.6e-7
@@ -25,7 +25,7 @@ costs:
2525
input_cost_per_token_batches: 0.00000165
2626
output_cost_per_token: 0.0000165
2727
output_cost_per_token_batches: 0.00000825
28-
region: ap-southeast-4
28+
region: ap-southeast-2
2929
tiered_pricing:
3030
cache_read:
3131
- cost_per_token: 6.6e-7

providers/aws-bedrock/deepseek.v3.2.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
costs:
22
- input_cost_per_token: 6.2e-7
33
output_cost_per_token: 0.00000185
4-
region: us-east-1
4+
region: us-west-2
55
- input_cost_per_token: 6.2e-7
66
output_cost_per_token: 0.00000185
77
region: us-east-2
88
- input_cost_per_token: 6.2e-7
99
output_cost_per_token: 0.00000185
10-
region: us-west-2
10+
region: us-east-1
1111
- input_cost_per_token: 7.4e-7
1212
output_cost_per_token: 0.00000222
13-
region: ap-south-1
13+
region: sa-east-1
1414
- input_cost_per_token: 7.4e-7
1515
output_cost_per_token: 0.00000222
16-
region: sa-east-1
16+
region: eu-north-1
1717
- input_cost_per_token: 7.4e-7
1818
output_cost_per_token: 0.00000222
1919
region: ap-southeast-3
20+
- input_cost_per_token: 6.386e-7
21+
output_cost_per_token: 0.0000019055
22+
region: ap-southeast-2
2023
- input_cost_per_token: 7.4e-7
2124
output_cost_per_token: 0.00000222
22-
region: ap-northeast-1
25+
region: ap-south-1
2326
- input_cost_per_token: 7.4e-7
2427
output_cost_per_token: 0.00000222
25-
region: eu-north-1
26-
- input_cost_per_token: 6.386e-7
27-
output_cost_per_token: 0.0000019055
28-
region: ap-southeast-2
28+
region: ap-northeast-1
2929
features:
3030
- function_calling
3131
limits:

0 commit comments

Comments
 (0)