tokenmeter 0.9.0

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.
Files changed (159) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +346 -0
  3. package/dist/__tests__/context.test.d.ts +2 -0
  4. package/dist/__tests__/context.test.d.ts.map +1 -0
  5. package/dist/__tests__/context.test.js +94 -0
  6. package/dist/__tests__/context.test.js.map +1 -0
  7. package/dist/__tests__/elevenlabs.test.d.ts +2 -0
  8. package/dist/__tests__/elevenlabs.test.d.ts.map +1 -0
  9. package/dist/__tests__/elevenlabs.test.js +108 -0
  10. package/dist/__tests__/elevenlabs.test.js.map +1 -0
  11. package/dist/__tests__/fal.test.d.ts +2 -0
  12. package/dist/__tests__/fal.test.d.ts.map +1 -0
  13. package/dist/__tests__/fal.test.js +153 -0
  14. package/dist/__tests__/fal.test.js.map +1 -0
  15. package/dist/__tests__/pricing.test.d.ts +2 -0
  16. package/dist/__tests__/pricing.test.d.ts.map +1 -0
  17. package/dist/__tests__/pricing.test.js +76 -0
  18. package/dist/__tests__/pricing.test.js.map +1 -0
  19. package/dist/__tests__/recorder.test.d.ts +2 -0
  20. package/dist/__tests__/recorder.test.d.ts.map +1 -0
  21. package/dist/__tests__/recorder.test.js +133 -0
  22. package/dist/__tests__/recorder.test.js.map +1 -0
  23. package/dist/__tests__/storage.test.d.ts +2 -0
  24. package/dist/__tests__/storage.test.d.ts.map +1 -0
  25. package/dist/__tests__/storage.test.js +106 -0
  26. package/dist/__tests__/storage.test.js.map +1 -0
  27. package/dist/client/index.d.ts +8 -0
  28. package/dist/client/index.d.ts.map +1 -0
  29. package/dist/client/index.js +7 -0
  30. package/dist/client/index.js.map +1 -0
  31. package/dist/config.d.ts +92 -0
  32. package/dist/config.d.ts.map +1 -0
  33. package/dist/config.js +166 -0
  34. package/dist/config.js.map +1 -0
  35. package/dist/context.d.ts +80 -0
  36. package/dist/context.d.ts.map +1 -0
  37. package/dist/context.js +131 -0
  38. package/dist/context.js.map +1 -0
  39. package/dist/exporter/PostgresExporter.d.ts +82 -0
  40. package/dist/exporter/PostgresExporter.d.ts.map +1 -0
  41. package/dist/exporter/PostgresExporter.js +237 -0
  42. package/dist/exporter/PostgresExporter.js.map +1 -0
  43. package/dist/exporter/index.d.ts +8 -0
  44. package/dist/exporter/index.d.ts.map +1 -0
  45. package/dist/exporter/index.js +7 -0
  46. package/dist/exporter/index.js.map +1 -0
  47. package/dist/index.d.ts +31 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +37 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/instrumentation/proxy.d.ts +26 -0
  52. package/dist/instrumentation/proxy.d.ts.map +1 -0
  53. package/dist/instrumentation/proxy.js +337 -0
  54. package/dist/instrumentation/proxy.js.map +1 -0
  55. package/dist/instrumentation/strategies/index.d.ts +55 -0
  56. package/dist/instrumentation/strategies/index.d.ts.map +1 -0
  57. package/dist/instrumentation/strategies/index.js +429 -0
  58. package/dist/instrumentation/strategies/index.js.map +1 -0
  59. package/dist/integrations/express/index.d.ts +137 -0
  60. package/dist/integrations/express/index.d.ts.map +1 -0
  61. package/dist/integrations/express/index.js +186 -0
  62. package/dist/integrations/express/index.js.map +1 -0
  63. package/dist/integrations/inngest/index.d.ts +222 -0
  64. package/dist/integrations/inngest/index.d.ts.map +1 -0
  65. package/dist/integrations/inngest/index.js +223 -0
  66. package/dist/integrations/inngest/index.js.map +1 -0
  67. package/dist/integrations/langfuse/index.d.ts +170 -0
  68. package/dist/integrations/langfuse/index.d.ts.map +1 -0
  69. package/dist/integrations/langfuse/index.js +225 -0
  70. package/dist/integrations/langfuse/index.js.map +1 -0
  71. package/dist/integrations/next/index.d.ts +138 -0
  72. package/dist/integrations/next/index.d.ts.map +1 -0
  73. package/dist/integrations/next/index.js +170 -0
  74. package/dist/integrations/next/index.js.map +1 -0
  75. package/dist/integrations/nextjs/index.d.ts +198 -0
  76. package/dist/integrations/nextjs/index.d.ts.map +1 -0
  77. package/dist/integrations/nextjs/index.js +181 -0
  78. package/dist/integrations/nextjs/index.js.map +1 -0
  79. package/dist/integrations/vercel-ai/index.d.ts +288 -0
  80. package/dist/integrations/vercel-ai/index.d.ts.map +1 -0
  81. package/dist/integrations/vercel-ai/index.js +260 -0
  82. package/dist/integrations/vercel-ai/index.js.map +1 -0
  83. package/dist/logger.d.ts +58 -0
  84. package/dist/logger.d.ts.map +1 -0
  85. package/dist/logger.js +89 -0
  86. package/dist/logger.js.map +1 -0
  87. package/dist/pricing/catalog.d.ts +10 -0
  88. package/dist/pricing/catalog.d.ts.map +1 -0
  89. package/dist/pricing/catalog.js +297 -0
  90. package/dist/pricing/catalog.js.map +1 -0
  91. package/dist/pricing/index.d.ts +77 -0
  92. package/dist/pricing/index.d.ts.map +1 -0
  93. package/dist/pricing/index.js +251 -0
  94. package/dist/pricing/index.js.map +1 -0
  95. package/dist/pricing/manifest.d.ts +156 -0
  96. package/dist/pricing/manifest.d.ts.map +1 -0
  97. package/dist/pricing/manifest.js +381 -0
  98. package/dist/pricing/manifest.js.map +1 -0
  99. package/dist/pricing/manifest.json +12786 -0
  100. package/dist/pricing/providers/anthropic.json +253 -0
  101. package/dist/pricing/providers/bedrock.json +341 -0
  102. package/dist/pricing/providers/bfl.json +220 -0
  103. package/dist/pricing/providers/elevenlabs.json +142 -0
  104. package/dist/pricing/providers/fal.json +15866 -0
  105. package/dist/pricing/providers/google.json +346 -0
  106. package/dist/pricing/providers/openai.json +1035 -0
  107. package/dist/pricing/schema.d.ts +102 -0
  108. package/dist/pricing/schema.d.ts.map +1 -0
  109. package/dist/pricing/schema.js +56 -0
  110. package/dist/pricing/schema.js.map +1 -0
  111. package/dist/processor/TokenMeterProcessor.d.ts +55 -0
  112. package/dist/processor/TokenMeterProcessor.d.ts.map +1 -0
  113. package/dist/processor/TokenMeterProcessor.js +132 -0
  114. package/dist/processor/TokenMeterProcessor.js.map +1 -0
  115. package/dist/query/client.d.ts +61 -0
  116. package/dist/query/client.d.ts.map +1 -0
  117. package/dist/query/client.js +206 -0
  118. package/dist/query/client.js.map +1 -0
  119. package/dist/query/index.d.ts +8 -0
  120. package/dist/query/index.d.ts.map +1 -0
  121. package/dist/query/index.js +7 -0
  122. package/dist/query/index.js.map +1 -0
  123. package/dist/recorder.d.ts +74 -0
  124. package/dist/recorder.d.ts.map +1 -0
  125. package/dist/recorder.js +227 -0
  126. package/dist/recorder.js.map +1 -0
  127. package/dist/sdks/anthropic.d.ts +21 -0
  128. package/dist/sdks/anthropic.d.ts.map +1 -0
  129. package/dist/sdks/anthropic.js +258 -0
  130. package/dist/sdks/anthropic.js.map +1 -0
  131. package/dist/sdks/elevenlabs.d.ts +59 -0
  132. package/dist/sdks/elevenlabs.d.ts.map +1 -0
  133. package/dist/sdks/elevenlabs.js +192 -0
  134. package/dist/sdks/elevenlabs.js.map +1 -0
  135. package/dist/sdks/fal.d.ts +102 -0
  136. package/dist/sdks/fal.d.ts.map +1 -0
  137. package/dist/sdks/fal.js +306 -0
  138. package/dist/sdks/fal.js.map +1 -0
  139. package/dist/sdks/openai.d.ts +17 -0
  140. package/dist/sdks/openai.d.ts.map +1 -0
  141. package/dist/sdks/openai.js +191 -0
  142. package/dist/sdks/openai.js.map +1 -0
  143. package/dist/storage/interface.d.ts +15 -0
  144. package/dist/storage/interface.d.ts.map +1 -0
  145. package/dist/storage/interface.js +53 -0
  146. package/dist/storage/interface.js.map +1 -0
  147. package/dist/storage/prisma.d.ts +15 -0
  148. package/dist/storage/prisma.d.ts.map +1 -0
  149. package/dist/storage/prisma.js +135 -0
  150. package/dist/storage/prisma.js.map +1 -0
  151. package/dist/types.d.ts +206 -0
  152. package/dist/types.d.ts.map +1 -0
  153. package/dist/types.js +45 -0
  154. package/dist/types.js.map +1 -0
  155. package/dist/vercel-ai/index.d.ts +89 -0
  156. package/dist/vercel-ai/index.d.ts.map +1 -0
  157. package/dist/vercel-ai/index.js +298 -0
  158. package/dist/vercel-ai/index.js.map +1 -0
  159. package/package.json +119 -0
@@ -0,0 +1,253 @@
1
+ {
2
+ "$schema": "../schema.json",
3
+ "provider": "anthropic",
4
+ "displayName": "Anthropic",
5
+ "source": "https://platform.claude.com/docs/en/about-claude/pricing",
6
+ "lastUpdated": "2025-12-22",
7
+ "currency": "USD",
8
+ "models": {
9
+ "claude-opus-4.5": {
10
+ "name": "Claude Opus 4.5",
11
+ "unit": "tokens",
12
+ "unitSize": 1000000,
13
+ "aliases": [
14
+ "claude-opus-4-5-20251101",
15
+ "anthropic/claude-opus-4-5-20251101",
16
+ "anthropic/claude-opus-4.5"
17
+ ],
18
+ "pricing": [
19
+ {
20
+ "effectiveDate": "2025-11-01",
21
+ "input": 5,
22
+ "output": 25,
23
+ "cachedInput": 0.5,
24
+ "cacheWrite": 6.25,
25
+ "notes": "Cache hits at $0.50/MTok, 5m cache write at $6.25/MTok, 1h cache write at $10/MTok"
26
+ }
27
+ ]
28
+ },
29
+ "claude-opus-4.1": {
30
+ "name": "Claude Opus 4.1",
31
+ "unit": "tokens",
32
+ "unitSize": 1000000,
33
+ "aliases": [
34
+ "claude-opus-4-1-20250414",
35
+ "anthropic/claude-opus-4-1-20250414",
36
+ "anthropic/claude-opus-4.1"
37
+ ],
38
+ "pricing": [
39
+ {
40
+ "effectiveDate": "2025-04-14",
41
+ "input": 15,
42
+ "output": 75,
43
+ "cachedInput": 1.5,
44
+ "cacheWrite": 18.75,
45
+ "notes": "Cache hits at $1.50/MTok, 5m cache write at $18.75/MTok, 1h cache write at $30/MTok"
46
+ }
47
+ ]
48
+ },
49
+ "claude-opus-4": {
50
+ "name": "Claude Opus 4",
51
+ "unit": "tokens",
52
+ "unitSize": 1000000,
53
+ "aliases": [
54
+ "claude-opus-4-20250514",
55
+ "anthropic/claude-opus-4-20250514",
56
+ "anthropic/claude-opus-4"
57
+ ],
58
+ "pricing": [
59
+ {
60
+ "effectiveDate": "2025-05-14",
61
+ "input": 15,
62
+ "output": 75,
63
+ "cachedInput": 1.5,
64
+ "cacheWrite": 18.75,
65
+ "notes": "Cache hits at $1.50/MTok, 5m cache write at $18.75/MTok, 1h cache write at $30/MTok"
66
+ }
67
+ ]
68
+ },
69
+ "claude-sonnet-4.5": {
70
+ "name": "Claude Sonnet 4.5",
71
+ "unit": "tokens",
72
+ "unitSize": 1000000,
73
+ "aliases": [
74
+ "claude-sonnet-4-5-20251022",
75
+ "anthropic/claude-sonnet-4-5-20251022",
76
+ "anthropic/claude-sonnet-4.5"
77
+ ],
78
+ "pricing": [
79
+ {
80
+ "effectiveDate": "2025-10-22",
81
+ "input": 3,
82
+ "output": 15,
83
+ "cachedInput": 0.3,
84
+ "cacheWrite": 3.75,
85
+ "notes": "Cache hits at $0.30/MTok, 5m cache write at $3.75/MTok, 1h cache write at $6/MTok. 1M context: $6 input, $22.50 output for >200K tokens"
86
+ }
87
+ ]
88
+ },
89
+ "claude-sonnet-4": {
90
+ "name": "Claude Sonnet 4",
91
+ "unit": "tokens",
92
+ "unitSize": 1000000,
93
+ "aliases": [
94
+ "claude-sonnet-4-20250514",
95
+ "anthropic/claude-sonnet-4-20250514",
96
+ "anthropic/claude-sonnet-4"
97
+ ],
98
+ "pricing": [
99
+ {
100
+ "effectiveDate": "2025-05-14",
101
+ "input": 3,
102
+ "output": 15,
103
+ "cachedInput": 0.3,
104
+ "cacheWrite": 3.75,
105
+ "notes": "Cache hits at $0.30/MTok, 5m cache write at $3.75/MTok, 1h cache write at $6/MTok. 1M context: $6 input, $22.50 output for >200K tokens"
106
+ }
107
+ ]
108
+ },
109
+ "claude-3.7-sonnet": {
110
+ "name": "Claude 3.7 Sonnet",
111
+ "unit": "tokens",
112
+ "unitSize": 1000000,
113
+ "aliases": [
114
+ "claude-3-7-sonnet-20250219",
115
+ "anthropic/claude-3-7-sonnet-20250219",
116
+ "anthropic/claude-3.7-sonnet"
117
+ ],
118
+ "deprecated": true,
119
+ "pricing": [
120
+ {
121
+ "effectiveDate": "2025-02-19",
122
+ "input": 3,
123
+ "output": 15,
124
+ "cachedInput": 0.3,
125
+ "cacheWrite": 3.75,
126
+ "notes": "Deprecated. Cache hits at $0.30/MTok, 5m cache write at $3.75/MTok, 1h cache write at $6/MTok"
127
+ }
128
+ ]
129
+ },
130
+ "claude-haiku-4.5": {
131
+ "name": "Claude Haiku 4.5",
132
+ "unit": "tokens",
133
+ "unitSize": 1000000,
134
+ "aliases": [
135
+ "claude-haiku-4-5-20251022",
136
+ "anthropic/claude-haiku-4-5-20251022",
137
+ "anthropic/claude-haiku-4.5"
138
+ ],
139
+ "pricing": [
140
+ {
141
+ "effectiveDate": "2025-10-22",
142
+ "input": 1,
143
+ "output": 5,
144
+ "cachedInput": 0.1,
145
+ "cacheWrite": 1.25,
146
+ "notes": "Cache hits at $0.10/MTok, 5m cache write at $1.25/MTok, 1h cache write at $2/MTok"
147
+ }
148
+ ]
149
+ },
150
+ "claude-3.5-haiku": {
151
+ "name": "Claude 3.5 Haiku",
152
+ "unit": "tokens",
153
+ "unitSize": 1000000,
154
+ "aliases": [
155
+ "claude-3-5-haiku-20241022",
156
+ "anthropic/claude-3-5-haiku-20241022",
157
+ "anthropic/claude-3.5-haiku"
158
+ ],
159
+ "pricing": [
160
+ {
161
+ "effectiveDate": "2024-10-22",
162
+ "input": 0.8,
163
+ "output": 4,
164
+ "cachedInput": 0.08,
165
+ "cacheWrite": 1,
166
+ "notes": "Cache hits at $0.08/MTok, 5m cache write at $1/MTok, 1h cache write at $1.6/MTok"
167
+ }
168
+ ]
169
+ },
170
+ "claude-3.5-sonnet": {
171
+ "name": "Claude 3.5 Sonnet",
172
+ "unit": "tokens",
173
+ "unitSize": 1000000,
174
+ "aliases": [
175
+ "claude-3-5-sonnet-20241022",
176
+ "claude-3-5-sonnet-20240620",
177
+ "anthropic/claude-3-5-sonnet-20241022",
178
+ "anthropic/claude-3-5-sonnet-20240620",
179
+ "anthropic/claude-3.5-sonnet"
180
+ ],
181
+ "pricing": [
182
+ {
183
+ "effectiveDate": "2024-06-20",
184
+ "input": 3,
185
+ "output": 15,
186
+ "cachedInput": 0.3,
187
+ "cacheWrite": 3.75,
188
+ "notes": "Cache hits at $0.30/MTok"
189
+ }
190
+ ]
191
+ },
192
+ "claude-3-opus": {
193
+ "name": "Claude 3 Opus",
194
+ "unit": "tokens",
195
+ "unitSize": 1000000,
196
+ "aliases": [
197
+ "claude-3-opus-20240229",
198
+ "anthropic/claude-3-opus-20240229",
199
+ "anthropic/claude-3-opus"
200
+ ],
201
+ "deprecated": true,
202
+ "pricing": [
203
+ {
204
+ "effectiveDate": "2024-02-29",
205
+ "input": 15,
206
+ "output": 75,
207
+ "cachedInput": 1.5,
208
+ "cacheWrite": 18.75,
209
+ "notes": "Deprecated. Cache hits at $1.50/MTok, 5m cache write at $18.75/MTok, 1h cache write at $30/MTok"
210
+ }
211
+ ]
212
+ },
213
+ "claude-3-sonnet": {
214
+ "name": "Claude 3 Sonnet",
215
+ "unit": "tokens",
216
+ "unitSize": 1000000,
217
+ "aliases": [
218
+ "claude-3-sonnet-20240229",
219
+ "anthropic/claude-3-sonnet-20240229",
220
+ "anthropic/claude-3-sonnet"
221
+ ],
222
+ "deprecated": true,
223
+ "pricing": [
224
+ {
225
+ "effectiveDate": "2024-02-29",
226
+ "input": 3,
227
+ "output": 15,
228
+ "notes": "Deprecated"
229
+ }
230
+ ]
231
+ },
232
+ "claude-3-haiku": {
233
+ "name": "Claude 3 Haiku",
234
+ "unit": "tokens",
235
+ "unitSize": 1000000,
236
+ "aliases": [
237
+ "claude-3-haiku-20240307",
238
+ "anthropic/claude-3-haiku-20240307",
239
+ "anthropic/claude-3-haiku"
240
+ ],
241
+ "pricing": [
242
+ {
243
+ "effectiveDate": "2024-03-07",
244
+ "input": 0.25,
245
+ "output": 1.25,
246
+ "cachedInput": 0.03,
247
+ "cacheWrite": 0.3,
248
+ "notes": "Cache hits at $0.03/MTok, 5m cache write at $0.30/MTok, 1h cache write at $0.50/MTok"
249
+ }
250
+ ]
251
+ }
252
+ }
253
+ }
@@ -0,0 +1,341 @@
1
+ {
2
+ "$schema": "../schema.json",
3
+ "provider": "bedrock",
4
+ "displayName": "AWS Bedrock",
5
+ "source": "https://aws.amazon.com/bedrock/pricing/",
6
+ "lastUpdated": "2025-12-22",
7
+ "currency": "USD",
8
+ "models": {
9
+ "anthropic.claude-sonnet-4-5": {
10
+ "name": "Claude Sonnet 4.5 (Bedrock)",
11
+ "unit": "tokens",
12
+ "unitSize": 1000000,
13
+ "aliases": [
14
+ "anthropic.claude-sonnet-4-5-20250929-v1:0",
15
+ "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
16
+ "eu.anthropic.claude-sonnet-4-5-20250929-v1:0"
17
+ ],
18
+ "pricing": [
19
+ {
20
+ "effectiveDate": "2025-09-29",
21
+ "input": 3,
22
+ "output": 15,
23
+ "notes": "AWS Bedrock pricing for Claude Sonnet 4.5"
24
+ }
25
+ ]
26
+ },
27
+ "anthropic.claude-sonnet-4": {
28
+ "name": "Claude Sonnet 4 (Bedrock)",
29
+ "unit": "tokens",
30
+ "unitSize": 1000000,
31
+ "aliases": [
32
+ "anthropic.claude-sonnet-4-20250514-v1:0",
33
+ "us.anthropic.claude-sonnet-4-20250514-v1:0",
34
+ "eu.anthropic.claude-sonnet-4-20250514-v1:0"
35
+ ],
36
+ "pricing": [
37
+ {
38
+ "effectiveDate": "2025-05-14",
39
+ "input": 3,
40
+ "output": 15,
41
+ "notes": "AWS Bedrock pricing for Claude Sonnet 4"
42
+ }
43
+ ]
44
+ },
45
+ "anthropic.claude-opus-4": {
46
+ "name": "Claude Opus 4 (Bedrock)",
47
+ "unit": "tokens",
48
+ "unitSize": 1000000,
49
+ "aliases": [
50
+ "anthropic.claude-opus-4-20250514-v1:0",
51
+ "us.anthropic.claude-opus-4-20250514-v1:0",
52
+ "eu.anthropic.claude-opus-4-20250514-v1:0"
53
+ ],
54
+ "pricing": [
55
+ {
56
+ "effectiveDate": "2025-05-14",
57
+ "input": 15,
58
+ "output": 75,
59
+ "notes": "AWS Bedrock pricing for Claude Opus 4"
60
+ }
61
+ ]
62
+ },
63
+ "anthropic.claude-haiku-4-5": {
64
+ "name": "Claude Haiku 4.5 (Bedrock)",
65
+ "unit": "tokens",
66
+ "unitSize": 1000000,
67
+ "aliases": [
68
+ "anthropic.claude-haiku-4-5-20251022-v1:0",
69
+ "us.anthropic.claude-haiku-4-5-20251022-v1:0",
70
+ "eu.anthropic.claude-haiku-4-5-20251022-v1:0"
71
+ ],
72
+ "pricing": [
73
+ {
74
+ "effectiveDate": "2025-10-22",
75
+ "input": 1,
76
+ "output": 5,
77
+ "notes": "AWS Bedrock pricing for Claude Haiku 4.5"
78
+ }
79
+ ]
80
+ },
81
+ "anthropic.claude-3-5-sonnet": {
82
+ "name": "Claude 3.5 Sonnet (Bedrock)",
83
+ "unit": "tokens",
84
+ "unitSize": 1000000,
85
+ "aliases": [
86
+ "anthropic.claude-3-5-sonnet-20241022-v2:0",
87
+ "anthropic.claude-3-5-sonnet-20240620-v1:0",
88
+ "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
89
+ "us.anthropic.claude-3-5-sonnet-20240620-v1:0",
90
+ "eu.anthropic.claude-3-5-sonnet-20241022-v2:0",
91
+ "eu.anthropic.claude-3-5-sonnet-20240620-v1:0"
92
+ ],
93
+ "pricing": [
94
+ {
95
+ "effectiveDate": "2024-06-20",
96
+ "input": 3,
97
+ "output": 15,
98
+ "notes": "AWS Bedrock pricing for Claude 3.5 Sonnet"
99
+ }
100
+ ]
101
+ },
102
+ "anthropic.claude-3-5-haiku": {
103
+ "name": "Claude 3.5 Haiku (Bedrock)",
104
+ "unit": "tokens",
105
+ "unitSize": 1000000,
106
+ "aliases": [
107
+ "anthropic.claude-3-5-haiku-20241022-v1:0",
108
+ "us.anthropic.claude-3-5-haiku-20241022-v1:0",
109
+ "eu.anthropic.claude-3-5-haiku-20241022-v1:0"
110
+ ],
111
+ "pricing": [
112
+ {
113
+ "effectiveDate": "2024-10-22",
114
+ "input": 0.8,
115
+ "output": 4,
116
+ "notes": "AWS Bedrock pricing for Claude 3.5 Haiku"
117
+ }
118
+ ]
119
+ },
120
+ "anthropic.claude-3-opus": {
121
+ "name": "Claude 3 Opus (Bedrock)",
122
+ "unit": "tokens",
123
+ "unitSize": 1000000,
124
+ "aliases": [
125
+ "anthropic.claude-3-opus-20240229-v1:0",
126
+ "us.anthropic.claude-3-opus-20240229-v1:0"
127
+ ],
128
+ "pricing": [
129
+ {
130
+ "effectiveDate": "2024-02-29",
131
+ "input": 15,
132
+ "output": 75,
133
+ "notes": "AWS Bedrock pricing for Claude 3 Opus"
134
+ }
135
+ ]
136
+ },
137
+ "anthropic.claude-3-sonnet": {
138
+ "name": "Claude 3 Sonnet (Bedrock)",
139
+ "unit": "tokens",
140
+ "unitSize": 1000000,
141
+ "aliases": [
142
+ "anthropic.claude-3-sonnet-20240229-v1:0",
143
+ "us.anthropic.claude-3-sonnet-20240229-v1:0",
144
+ "eu.anthropic.claude-3-sonnet-20240229-v1:0"
145
+ ],
146
+ "pricing": [
147
+ {
148
+ "effectiveDate": "2024-02-29",
149
+ "input": 3,
150
+ "output": 15,
151
+ "notes": "AWS Bedrock pricing for Claude 3 Sonnet"
152
+ }
153
+ ]
154
+ },
155
+ "anthropic.claude-3-haiku": {
156
+ "name": "Claude 3 Haiku (Bedrock)",
157
+ "unit": "tokens",
158
+ "unitSize": 1000000,
159
+ "aliases": [
160
+ "anthropic.claude-3-haiku-20240307-v1:0",
161
+ "us.anthropic.claude-3-haiku-20240307-v1:0",
162
+ "eu.anthropic.claude-3-haiku-20240307-v1:0"
163
+ ],
164
+ "pricing": [
165
+ {
166
+ "effectiveDate": "2024-03-07",
167
+ "input": 0.25,
168
+ "output": 1.25,
169
+ "notes": "AWS Bedrock pricing for Claude 3 Haiku"
170
+ }
171
+ ]
172
+ },
173
+ "amazon.titan-text-premier": {
174
+ "name": "Amazon Titan Text Premier",
175
+ "unit": "tokens",
176
+ "unitSize": 1000000,
177
+ "aliases": [
178
+ "amazon.titan-text-premier-v1:0"
179
+ ],
180
+ "pricing": [
181
+ {
182
+ "effectiveDate": "2024-01-01",
183
+ "input": 0.5,
184
+ "output": 1.5,
185
+ "notes": "AWS Bedrock pricing for Titan Text Premier"
186
+ }
187
+ ]
188
+ },
189
+ "amazon.titan-text-express": {
190
+ "name": "Amazon Titan Text Express",
191
+ "unit": "tokens",
192
+ "unitSize": 1000000,
193
+ "aliases": [
194
+ "amazon.titan-text-express-v1"
195
+ ],
196
+ "pricing": [
197
+ {
198
+ "effectiveDate": "2024-01-01",
199
+ "input": 0.2,
200
+ "output": 0.6,
201
+ "notes": "AWS Bedrock pricing for Titan Text Express"
202
+ }
203
+ ]
204
+ },
205
+ "amazon.titan-text-lite": {
206
+ "name": "Amazon Titan Text Lite",
207
+ "unit": "tokens",
208
+ "unitSize": 1000000,
209
+ "aliases": [
210
+ "amazon.titan-text-lite-v1"
211
+ ],
212
+ "pricing": [
213
+ {
214
+ "effectiveDate": "2024-01-01",
215
+ "input": 0.15,
216
+ "output": 0.2,
217
+ "notes": "AWS Bedrock pricing for Titan Text Lite"
218
+ }
219
+ ]
220
+ },
221
+ "meta.llama3-2-90b-instruct": {
222
+ "name": "Meta Llama 3.2 90B Instruct",
223
+ "unit": "tokens",
224
+ "unitSize": 1000000,
225
+ "aliases": [
226
+ "meta.llama3-2-90b-instruct-v1:0",
227
+ "us.meta.llama3-2-90b-instruct-v1:0"
228
+ ],
229
+ "pricing": [
230
+ {
231
+ "effectiveDate": "2024-09-01",
232
+ "input": 0.72,
233
+ "output": 0.72,
234
+ "notes": "AWS Bedrock pricing for Llama 3.2 90B"
235
+ }
236
+ ]
237
+ },
238
+ "meta.llama3-2-11b-instruct": {
239
+ "name": "Meta Llama 3.2 11B Instruct",
240
+ "unit": "tokens",
241
+ "unitSize": 1000000,
242
+ "aliases": [
243
+ "meta.llama3-2-11b-instruct-v1:0",
244
+ "us.meta.llama3-2-11b-instruct-v1:0"
245
+ ],
246
+ "pricing": [
247
+ {
248
+ "effectiveDate": "2024-09-01",
249
+ "input": 0.16,
250
+ "output": 0.16,
251
+ "notes": "AWS Bedrock pricing for Llama 3.2 11B"
252
+ }
253
+ ]
254
+ },
255
+ "meta.llama3-1-405b-instruct": {
256
+ "name": "Meta Llama 3.1 405B Instruct",
257
+ "unit": "tokens",
258
+ "unitSize": 1000000,
259
+ "aliases": [
260
+ "meta.llama3-1-405b-instruct-v1:0",
261
+ "us.meta.llama3-1-405b-instruct-v1:0"
262
+ ],
263
+ "pricing": [
264
+ {
265
+ "effectiveDate": "2024-07-23",
266
+ "input": 2.4,
267
+ "output": 2.4,
268
+ "notes": "AWS Bedrock pricing for Llama 3.1 405B"
269
+ }
270
+ ]
271
+ },
272
+ "meta.llama3-1-70b-instruct": {
273
+ "name": "Meta Llama 3.1 70B Instruct",
274
+ "unit": "tokens",
275
+ "unitSize": 1000000,
276
+ "aliases": [
277
+ "meta.llama3-1-70b-instruct-v1:0",
278
+ "us.meta.llama3-1-70b-instruct-v1:0"
279
+ ],
280
+ "pricing": [
281
+ {
282
+ "effectiveDate": "2024-07-23",
283
+ "input": 0.72,
284
+ "output": 0.72,
285
+ "notes": "AWS Bedrock pricing for Llama 3.1 70B"
286
+ }
287
+ ]
288
+ },
289
+ "meta.llama3-1-8b-instruct": {
290
+ "name": "Meta Llama 3.1 8B Instruct",
291
+ "unit": "tokens",
292
+ "unitSize": 1000000,
293
+ "aliases": [
294
+ "meta.llama3-1-8b-instruct-v1:0",
295
+ "us.meta.llama3-1-8b-instruct-v1:0"
296
+ ],
297
+ "pricing": [
298
+ {
299
+ "effectiveDate": "2024-07-23",
300
+ "input": 0.22,
301
+ "output": 0.22,
302
+ "notes": "AWS Bedrock pricing for Llama 3.1 8B"
303
+ }
304
+ ]
305
+ },
306
+ "mistral.mistral-large-2": {
307
+ "name": "Mistral Large 2",
308
+ "unit": "tokens",
309
+ "unitSize": 1000000,
310
+ "aliases": [
311
+ "mistral.mistral-large-2407-v1:0",
312
+ "us.mistral.mistral-large-2407-v1:0"
313
+ ],
314
+ "pricing": [
315
+ {
316
+ "effectiveDate": "2024-07-24",
317
+ "input": 3,
318
+ "output": 9,
319
+ "notes": "AWS Bedrock pricing for Mistral Large 2"
320
+ }
321
+ ]
322
+ },
323
+ "mistral.mixtral-8x7b-instruct": {
324
+ "name": "Mixtral 8x7B Instruct",
325
+ "unit": "tokens",
326
+ "unitSize": 1000000,
327
+ "aliases": [
328
+ "mistral.mixtral-8x7b-instruct-v0:1",
329
+ "us.mistral.mixtral-8x7b-instruct-v0:1"
330
+ ],
331
+ "pricing": [
332
+ {
333
+ "effectiveDate": "2024-04-01",
334
+ "input": 0.45,
335
+ "output": 0.7,
336
+ "notes": "AWS Bedrock pricing for Mixtral 8x7B"
337
+ }
338
+ ]
339
+ }
340
+ }
341
+ }