llm.rb 9.0.0 → 10.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +76 -4
- data/README.md +80 -12
- data/data/anthropic.json +278 -258
- data/data/bedrock.json +1288 -1561
- data/data/deepseek.json +38 -38
- data/data/google.json +656 -579
- data/data/openai.json +860 -818
- data/data/xai.json +243 -552
- data/data/zai.json +168 -168
- data/lib/llm/active_record/acts_as_agent.rb +5 -0
- data/lib/llm/active_record.rb +1 -6
- data/lib/llm/agent.rb +90 -71
- data/lib/llm/context.rb +49 -48
- data/lib/llm/function/call_task.rb +46 -0
- data/lib/llm/function.rb +27 -1
- data/lib/llm/provider.rb +7 -0
- data/lib/llm/providers/anthropic/stream_parser.rb +2 -2
- data/lib/llm/providers/bedrock/stream_parser.rb +2 -2
- data/lib/llm/providers/google/stream_parser.rb +2 -2
- data/lib/llm/providers/openai/responses/stream_parser.rb +2 -2
- data/lib/llm/providers/openai/stream_parser.rb +2 -2
- data/lib/llm/schema.rb +11 -0
- data/lib/llm/sequel/agent.rb +5 -0
- data/lib/llm/sequel/plugin.rb +1 -6
- data/lib/llm/stream.rb +11 -36
- data/lib/llm/tool/param.rb +1 -8
- data/lib/llm/utils.rb +29 -0
- data/lib/llm/version.rb +1 -1
- data/lib/llm.rb +1 -0
- metadata +4 -3
- data/lib/llm/bot.rb +0 -3
data/data/anthropic.json
CHANGED
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
"name": "Anthropic",
|
|
8
8
|
"doc": "https://docs.anthropic.com/en/docs/about-claude/models",
|
|
9
9
|
"models": {
|
|
10
|
-
"claude-
|
|
11
|
-
"id": "claude-
|
|
12
|
-
"name": "Claude
|
|
13
|
-
"family": "claude-
|
|
10
|
+
"claude-opus-4-1-20250805": {
|
|
11
|
+
"id": "claude-opus-4-1-20250805",
|
|
12
|
+
"name": "Claude Opus 4.1",
|
|
13
|
+
"family": "claude-opus",
|
|
14
14
|
"attachment": true,
|
|
15
|
-
"reasoning":
|
|
15
|
+
"reasoning": true,
|
|
16
16
|
"tool_call": true,
|
|
17
17
|
"temperature": true,
|
|
18
|
-
"knowledge": "
|
|
19
|
-
"release_date": "
|
|
20
|
-
"last_updated": "
|
|
18
|
+
"knowledge": "2025-03-31",
|
|
19
|
+
"release_date": "2025-08-05",
|
|
20
|
+
"last_updated": "2025-08-05",
|
|
21
21
|
"modalities": {
|
|
22
22
|
"input": [
|
|
23
23
|
"text",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
"open_weights": false,
|
|
32
|
-
"cost": {
|
|
33
|
-
"input": 3,
|
|
34
|
-
"output": 15,
|
|
35
|
-
"cache_read": 0.3,
|
|
36
|
-
"cache_write": 0.3
|
|
37
|
-
},
|
|
38
32
|
"limit": {
|
|
39
33
|
"context": 200000,
|
|
40
|
-
"output":
|
|
34
|
+
"output": 32000
|
|
35
|
+
},
|
|
36
|
+
"cost": {
|
|
37
|
+
"input": 15,
|
|
38
|
+
"output": 75,
|
|
39
|
+
"cache_read": 1.5,
|
|
40
|
+
"cache_write": 18.75
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"claude-haiku-4-5": {
|
|
@@ -62,28 +62,28 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"open_weights": false,
|
|
65
|
+
"limit": {
|
|
66
|
+
"context": 200000,
|
|
67
|
+
"output": 64000
|
|
68
|
+
},
|
|
65
69
|
"cost": {
|
|
66
70
|
"input": 1,
|
|
67
71
|
"output": 5,
|
|
68
72
|
"cache_read": 0.1,
|
|
69
73
|
"cache_write": 1.25
|
|
70
|
-
},
|
|
71
|
-
"limit": {
|
|
72
|
-
"context": 200000,
|
|
73
|
-
"output": 64000
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
"claude-
|
|
77
|
-
"id": "claude-
|
|
78
|
-
"name": "Claude
|
|
79
|
-
"family": "claude-
|
|
76
|
+
"claude-3-haiku-20240307": {
|
|
77
|
+
"id": "claude-3-haiku-20240307",
|
|
78
|
+
"name": "Claude Haiku 3",
|
|
79
|
+
"family": "claude-haiku",
|
|
80
80
|
"attachment": true,
|
|
81
|
-
"reasoning":
|
|
81
|
+
"reasoning": false,
|
|
82
82
|
"tool_call": true,
|
|
83
83
|
"temperature": true,
|
|
84
|
-
"knowledge": "
|
|
85
|
-
"release_date": "
|
|
86
|
-
"last_updated": "
|
|
84
|
+
"knowledge": "2023-08-31",
|
|
85
|
+
"release_date": "2024-03-13",
|
|
86
|
+
"last_updated": "2024-03-13",
|
|
87
87
|
"modalities": {
|
|
88
88
|
"input": [
|
|
89
89
|
"text",
|
|
@@ -95,28 +95,28 @@
|
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
"open_weights": false,
|
|
98
|
-
"cost": {
|
|
99
|
-
"input": 5,
|
|
100
|
-
"output": 25,
|
|
101
|
-
"cache_read": 0.5,
|
|
102
|
-
"cache_write": 6.25
|
|
103
|
-
},
|
|
104
98
|
"limit": {
|
|
105
99
|
"context": 200000,
|
|
106
|
-
"output":
|
|
100
|
+
"output": 4096
|
|
101
|
+
},
|
|
102
|
+
"cost": {
|
|
103
|
+
"input": 0.25,
|
|
104
|
+
"output": 1.25,
|
|
105
|
+
"cache_read": 0.03,
|
|
106
|
+
"cache_write": 0.3
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"claude-3-
|
|
110
|
-
"id": "claude-3-
|
|
111
|
-
"name": "Claude
|
|
112
|
-
"family": "claude-
|
|
109
|
+
"claude-3-sonnet-20240229": {
|
|
110
|
+
"id": "claude-3-sonnet-20240229",
|
|
111
|
+
"name": "Claude Sonnet 3",
|
|
112
|
+
"family": "claude-sonnet",
|
|
113
113
|
"attachment": true,
|
|
114
114
|
"reasoning": false,
|
|
115
115
|
"tool_call": true,
|
|
116
116
|
"temperature": true,
|
|
117
117
|
"knowledge": "2023-08-31",
|
|
118
|
-
"release_date": "2024-
|
|
119
|
-
"last_updated": "2024-
|
|
118
|
+
"release_date": "2024-03-04",
|
|
119
|
+
"last_updated": "2024-03-04",
|
|
120
120
|
"modalities": {
|
|
121
121
|
"input": [
|
|
122
122
|
"text",
|
|
@@ -128,20 +128,20 @@
|
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
130
|
"open_weights": false,
|
|
131
|
-
"cost": {
|
|
132
|
-
"input": 15,
|
|
133
|
-
"output": 75,
|
|
134
|
-
"cache_read": 1.5,
|
|
135
|
-
"cache_write": 18.75
|
|
136
|
-
},
|
|
137
131
|
"limit": {
|
|
138
132
|
"context": 200000,
|
|
139
133
|
"output": 4096
|
|
134
|
+
},
|
|
135
|
+
"cost": {
|
|
136
|
+
"input": 3,
|
|
137
|
+
"output": 15,
|
|
138
|
+
"cache_read": 0.3,
|
|
139
|
+
"cache_write": 0.3
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
|
-
"claude-3-5-haiku-
|
|
143
|
-
"id": "claude-3-5-haiku-
|
|
144
|
-
"name": "Claude Haiku 3.5",
|
|
142
|
+
"claude-3-5-haiku-latest": {
|
|
143
|
+
"id": "claude-3-5-haiku-latest",
|
|
144
|
+
"name": "Claude Haiku 3.5 (latest)",
|
|
145
145
|
"family": "claude-haiku",
|
|
146
146
|
"attachment": true,
|
|
147
147
|
"reasoning": false,
|
|
@@ -161,28 +161,28 @@
|
|
|
161
161
|
]
|
|
162
162
|
},
|
|
163
163
|
"open_weights": false,
|
|
164
|
+
"limit": {
|
|
165
|
+
"context": 200000,
|
|
166
|
+
"output": 8192
|
|
167
|
+
},
|
|
164
168
|
"cost": {
|
|
165
169
|
"input": 0.8,
|
|
166
170
|
"output": 4,
|
|
167
171
|
"cache_read": 0.08,
|
|
168
172
|
"cache_write": 1
|
|
169
|
-
},
|
|
170
|
-
"limit": {
|
|
171
|
-
"context": 200000,
|
|
172
|
-
"output": 8192
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
|
-
"claude-3-
|
|
176
|
-
"id": "claude-3-
|
|
177
|
-
"name": "Claude
|
|
178
|
-
"family": "claude-
|
|
175
|
+
"claude-3-opus-20240229": {
|
|
176
|
+
"id": "claude-3-opus-20240229",
|
|
177
|
+
"name": "Claude Opus 3",
|
|
178
|
+
"family": "claude-opus",
|
|
179
179
|
"attachment": true,
|
|
180
180
|
"reasoning": false,
|
|
181
181
|
"tool_call": true,
|
|
182
182
|
"temperature": true,
|
|
183
|
-
"knowledge": "
|
|
184
|
-
"release_date": "2024-
|
|
185
|
-
"last_updated": "2024-
|
|
183
|
+
"knowledge": "2023-08-31",
|
|
184
|
+
"release_date": "2024-02-29",
|
|
185
|
+
"last_updated": "2024-02-29",
|
|
186
186
|
"modalities": {
|
|
187
187
|
"input": [
|
|
188
188
|
"text",
|
|
@@ -194,28 +194,28 @@
|
|
|
194
194
|
]
|
|
195
195
|
},
|
|
196
196
|
"open_weights": false,
|
|
197
|
-
"cost": {
|
|
198
|
-
"input": 3,
|
|
199
|
-
"output": 15,
|
|
200
|
-
"cache_read": 0.3,
|
|
201
|
-
"cache_write": 3.75
|
|
202
|
-
},
|
|
203
197
|
"limit": {
|
|
204
198
|
"context": 200000,
|
|
205
|
-
"output":
|
|
199
|
+
"output": 4096
|
|
200
|
+
},
|
|
201
|
+
"cost": {
|
|
202
|
+
"input": 15,
|
|
203
|
+
"output": 75,
|
|
204
|
+
"cache_read": 1.5,
|
|
205
|
+
"cache_write": 18.75
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
|
-
"claude-
|
|
209
|
-
"id": "claude-
|
|
210
|
-
"name": "Claude
|
|
211
|
-
"family": "claude-
|
|
208
|
+
"claude-haiku-4-5-20251001": {
|
|
209
|
+
"id": "claude-haiku-4-5-20251001",
|
|
210
|
+
"name": "Claude Haiku 4.5",
|
|
211
|
+
"family": "claude-haiku",
|
|
212
212
|
"attachment": true,
|
|
213
213
|
"reasoning": true,
|
|
214
214
|
"tool_call": true,
|
|
215
215
|
"temperature": true,
|
|
216
|
-
"knowledge": "2025-
|
|
217
|
-
"release_date": "
|
|
218
|
-
"last_updated": "
|
|
216
|
+
"knowledge": "2025-02-28",
|
|
217
|
+
"release_date": "2025-10-15",
|
|
218
|
+
"last_updated": "2025-10-15",
|
|
219
219
|
"modalities": {
|
|
220
220
|
"input": [
|
|
221
221
|
"text",
|
|
@@ -227,28 +227,28 @@
|
|
|
227
227
|
]
|
|
228
228
|
},
|
|
229
229
|
"open_weights": false,
|
|
230
|
-
"cost": {
|
|
231
|
-
"input": 3,
|
|
232
|
-
"output": 15,
|
|
233
|
-
"cache_read": 0.3,
|
|
234
|
-
"cache_write": 3.75
|
|
235
|
-
},
|
|
236
230
|
"limit": {
|
|
237
|
-
"context":
|
|
231
|
+
"context": 200000,
|
|
238
232
|
"output": 64000
|
|
233
|
+
},
|
|
234
|
+
"cost": {
|
|
235
|
+
"input": 1,
|
|
236
|
+
"output": 5,
|
|
237
|
+
"cache_read": 0.1,
|
|
238
|
+
"cache_write": 1.25
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
|
-
"claude-
|
|
242
|
-
"id": "claude-
|
|
243
|
-
"name": "Claude
|
|
244
|
-
"family": "claude-
|
|
241
|
+
"claude-3-5-sonnet-20240620": {
|
|
242
|
+
"id": "claude-3-5-sonnet-20240620",
|
|
243
|
+
"name": "Claude Sonnet 3.5",
|
|
244
|
+
"family": "claude-sonnet",
|
|
245
245
|
"attachment": true,
|
|
246
|
-
"reasoning":
|
|
246
|
+
"reasoning": false,
|
|
247
247
|
"tool_call": true,
|
|
248
248
|
"temperature": true,
|
|
249
|
-
"knowledge": "
|
|
250
|
-
"release_date": "
|
|
251
|
-
"last_updated": "
|
|
249
|
+
"knowledge": "2024-04-30",
|
|
250
|
+
"release_date": "2024-06-20",
|
|
251
|
+
"last_updated": "2024-06-20",
|
|
252
252
|
"modalities": {
|
|
253
253
|
"input": [
|
|
254
254
|
"text",
|
|
@@ -260,28 +260,28 @@
|
|
|
260
260
|
]
|
|
261
261
|
},
|
|
262
262
|
"open_weights": false,
|
|
263
|
-
"cost": {
|
|
264
|
-
"input": 15,
|
|
265
|
-
"output": 75,
|
|
266
|
-
"cache_read": 1.5,
|
|
267
|
-
"cache_write": 18.75
|
|
268
|
-
},
|
|
269
263
|
"limit": {
|
|
270
264
|
"context": 200000,
|
|
271
|
-
"output":
|
|
265
|
+
"output": 8192
|
|
266
|
+
},
|
|
267
|
+
"cost": {
|
|
268
|
+
"input": 3,
|
|
269
|
+
"output": 15,
|
|
270
|
+
"cache_read": 0.3,
|
|
271
|
+
"cache_write": 3.75
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
|
-
"claude-opus-4-
|
|
275
|
-
"id": "claude-opus-4-
|
|
276
|
-
"name": "Claude Opus 4
|
|
274
|
+
"claude-opus-4-0": {
|
|
275
|
+
"id": "claude-opus-4-0",
|
|
276
|
+
"name": "Claude Opus 4 (latest)",
|
|
277
277
|
"family": "claude-opus",
|
|
278
278
|
"attachment": true,
|
|
279
279
|
"reasoning": true,
|
|
280
280
|
"tool_call": true,
|
|
281
|
-
"temperature":
|
|
282
|
-
"knowledge": "
|
|
283
|
-
"release_date": "
|
|
284
|
-
"last_updated": "
|
|
281
|
+
"temperature": true,
|
|
282
|
+
"knowledge": "2025-03-31",
|
|
283
|
+
"release_date": "2025-05-22",
|
|
284
|
+
"last_updated": "2025-05-22",
|
|
285
285
|
"modalities": {
|
|
286
286
|
"input": [
|
|
287
287
|
"text",
|
|
@@ -293,28 +293,28 @@
|
|
|
293
293
|
]
|
|
294
294
|
},
|
|
295
295
|
"open_weights": false,
|
|
296
|
-
"cost": {
|
|
297
|
-
"input": 5,
|
|
298
|
-
"output": 25,
|
|
299
|
-
"cache_read": 0.5,
|
|
300
|
-
"cache_write": 6.25
|
|
301
|
-
},
|
|
302
296
|
"limit": {
|
|
303
|
-
"context":
|
|
304
|
-
"output":
|
|
297
|
+
"context": 200000,
|
|
298
|
+
"output": 32000
|
|
299
|
+
},
|
|
300
|
+
"cost": {
|
|
301
|
+
"input": 15,
|
|
302
|
+
"output": 75,
|
|
303
|
+
"cache_read": 1.5,
|
|
304
|
+
"cache_write": 18.75
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
|
-
"claude-
|
|
308
|
-
"id": "claude-
|
|
309
|
-
"name": "Claude
|
|
310
|
-
"family": "claude-
|
|
307
|
+
"claude-sonnet-4-5": {
|
|
308
|
+
"id": "claude-sonnet-4-5",
|
|
309
|
+
"name": "Claude Sonnet 4.5 (latest)",
|
|
310
|
+
"family": "claude-sonnet",
|
|
311
311
|
"attachment": true,
|
|
312
|
-
"reasoning":
|
|
312
|
+
"reasoning": true,
|
|
313
313
|
"tool_call": true,
|
|
314
314
|
"temperature": true,
|
|
315
|
-
"knowledge": "
|
|
316
|
-
"release_date": "
|
|
317
|
-
"last_updated": "
|
|
315
|
+
"knowledge": "2025-07-31",
|
|
316
|
+
"release_date": "2025-09-29",
|
|
317
|
+
"last_updated": "2025-09-29",
|
|
318
318
|
"modalities": {
|
|
319
319
|
"input": [
|
|
320
320
|
"text",
|
|
@@ -326,28 +326,28 @@
|
|
|
326
326
|
]
|
|
327
327
|
},
|
|
328
328
|
"open_weights": false,
|
|
329
|
-
"cost": {
|
|
330
|
-
"input": 0.25,
|
|
331
|
-
"output": 1.25,
|
|
332
|
-
"cache_read": 0.03,
|
|
333
|
-
"cache_write": 0.3
|
|
334
|
-
},
|
|
335
329
|
"limit": {
|
|
336
330
|
"context": 200000,
|
|
337
|
-
"output":
|
|
331
|
+
"output": 64000
|
|
332
|
+
},
|
|
333
|
+
"cost": {
|
|
334
|
+
"input": 3,
|
|
335
|
+
"output": 15,
|
|
336
|
+
"cache_read": 0.3,
|
|
337
|
+
"cache_write": 3.75
|
|
338
338
|
}
|
|
339
339
|
},
|
|
340
|
-
"claude-sonnet-4-
|
|
341
|
-
"id": "claude-sonnet-4-
|
|
342
|
-
"name": "Claude Sonnet 4.
|
|
340
|
+
"claude-sonnet-4-6": {
|
|
341
|
+
"id": "claude-sonnet-4-6",
|
|
342
|
+
"name": "Claude Sonnet 4.6",
|
|
343
343
|
"family": "claude-sonnet",
|
|
344
344
|
"attachment": true,
|
|
345
345
|
"reasoning": true,
|
|
346
346
|
"tool_call": true,
|
|
347
347
|
"temperature": true,
|
|
348
|
-
"knowledge": "2025-
|
|
349
|
-
"release_date": "
|
|
350
|
-
"last_updated": "
|
|
348
|
+
"knowledge": "2025-08-31",
|
|
349
|
+
"release_date": "2026-02-17",
|
|
350
|
+
"last_updated": "2026-03-13",
|
|
351
351
|
"modalities": {
|
|
352
352
|
"input": [
|
|
353
353
|
"text",
|
|
@@ -359,28 +359,28 @@
|
|
|
359
359
|
]
|
|
360
360
|
},
|
|
361
361
|
"open_weights": false,
|
|
362
|
+
"limit": {
|
|
363
|
+
"context": 1000000,
|
|
364
|
+
"output": 64000
|
|
365
|
+
},
|
|
362
366
|
"cost": {
|
|
363
367
|
"input": 3,
|
|
364
368
|
"output": 15,
|
|
365
369
|
"cache_read": 0.3,
|
|
366
370
|
"cache_write": 3.75
|
|
367
|
-
},
|
|
368
|
-
"limit": {
|
|
369
|
-
"context": 200000,
|
|
370
|
-
"output": 64000
|
|
371
371
|
}
|
|
372
372
|
},
|
|
373
|
-
"claude-
|
|
374
|
-
"id": "claude-
|
|
375
|
-
"name": "Claude
|
|
376
|
-
"family": "claude-
|
|
373
|
+
"claude-sonnet-4-0": {
|
|
374
|
+
"id": "claude-sonnet-4-0",
|
|
375
|
+
"name": "Claude Sonnet 4 (latest)",
|
|
376
|
+
"family": "claude-sonnet",
|
|
377
377
|
"attachment": true,
|
|
378
|
-
"reasoning":
|
|
378
|
+
"reasoning": true,
|
|
379
379
|
"tool_call": true,
|
|
380
380
|
"temperature": true,
|
|
381
|
-
"knowledge": "
|
|
382
|
-
"release_date": "
|
|
383
|
-
"last_updated": "
|
|
381
|
+
"knowledge": "2025-03-31",
|
|
382
|
+
"release_date": "2025-05-22",
|
|
383
|
+
"last_updated": "2025-05-22",
|
|
384
384
|
"modalities": {
|
|
385
385
|
"input": [
|
|
386
386
|
"text",
|
|
@@ -392,15 +392,15 @@
|
|
|
392
392
|
]
|
|
393
393
|
},
|
|
394
394
|
"open_weights": false,
|
|
395
|
-
"cost": {
|
|
396
|
-
"input": 0.8,
|
|
397
|
-
"output": 4,
|
|
398
|
-
"cache_read": 0.08,
|
|
399
|
-
"cache_write": 1
|
|
400
|
-
},
|
|
401
395
|
"limit": {
|
|
402
396
|
"context": 200000,
|
|
403
|
-
"output":
|
|
397
|
+
"output": 64000
|
|
398
|
+
},
|
|
399
|
+
"cost": {
|
|
400
|
+
"input": 3,
|
|
401
|
+
"output": 15,
|
|
402
|
+
"cache_read": 0.3,
|
|
403
|
+
"cache_write": 3.75
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
"claude-opus-4-1": {
|
|
@@ -425,28 +425,28 @@
|
|
|
425
425
|
]
|
|
426
426
|
},
|
|
427
427
|
"open_weights": false,
|
|
428
|
+
"limit": {
|
|
429
|
+
"context": 200000,
|
|
430
|
+
"output": 32000
|
|
431
|
+
},
|
|
428
432
|
"cost": {
|
|
429
433
|
"input": 15,
|
|
430
434
|
"output": 75,
|
|
431
435
|
"cache_read": 1.5,
|
|
432
436
|
"cache_write": 18.75
|
|
433
|
-
},
|
|
434
|
-
"limit": {
|
|
435
|
-
"context": 200000,
|
|
436
|
-
"output": 32000
|
|
437
437
|
}
|
|
438
438
|
},
|
|
439
|
-
"claude-
|
|
440
|
-
"id": "claude-
|
|
441
|
-
"name": "Claude
|
|
442
|
-
"family": "claude-
|
|
439
|
+
"claude-3-5-haiku-20241022": {
|
|
440
|
+
"id": "claude-3-5-haiku-20241022",
|
|
441
|
+
"name": "Claude Haiku 3.5",
|
|
442
|
+
"family": "claude-haiku",
|
|
443
443
|
"attachment": true,
|
|
444
|
-
"reasoning":
|
|
444
|
+
"reasoning": false,
|
|
445
445
|
"tool_call": true,
|
|
446
446
|
"temperature": true,
|
|
447
|
-
"knowledge": "
|
|
448
|
-
"release_date": "
|
|
449
|
-
"last_updated": "
|
|
447
|
+
"knowledge": "2024-07-31",
|
|
448
|
+
"release_date": "2024-10-22",
|
|
449
|
+
"last_updated": "2024-10-22",
|
|
450
450
|
"modalities": {
|
|
451
451
|
"input": [
|
|
452
452
|
"text",
|
|
@@ -458,28 +458,28 @@
|
|
|
458
458
|
]
|
|
459
459
|
},
|
|
460
460
|
"open_weights": false,
|
|
461
|
-
"cost": {
|
|
462
|
-
"input": 3,
|
|
463
|
-
"output": 15,
|
|
464
|
-
"cache_read": 0.3,
|
|
465
|
-
"cache_write": 3.75
|
|
466
|
-
},
|
|
467
461
|
"limit": {
|
|
468
462
|
"context": 200000,
|
|
469
|
-
"output":
|
|
463
|
+
"output": 8192
|
|
464
|
+
},
|
|
465
|
+
"cost": {
|
|
466
|
+
"input": 0.8,
|
|
467
|
+
"output": 4,
|
|
468
|
+
"cache_read": 0.08,
|
|
469
|
+
"cache_write": 1
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
|
-
"claude-3-5-sonnet-
|
|
473
|
-
"id": "claude-3-5-sonnet-
|
|
474
|
-
"name": "Claude Sonnet 3.5",
|
|
472
|
+
"claude-3-5-sonnet-20241022": {
|
|
473
|
+
"id": "claude-3-5-sonnet-20241022",
|
|
474
|
+
"name": "Claude Sonnet 3.5 v2",
|
|
475
475
|
"family": "claude-sonnet",
|
|
476
476
|
"attachment": true,
|
|
477
477
|
"reasoning": false,
|
|
478
478
|
"tool_call": true,
|
|
479
479
|
"temperature": true,
|
|
480
480
|
"knowledge": "2024-04-30",
|
|
481
|
-
"release_date": "2024-
|
|
482
|
-
"last_updated": "2024-
|
|
481
|
+
"release_date": "2024-10-22",
|
|
482
|
+
"last_updated": "2024-10-22",
|
|
483
483
|
"modalities": {
|
|
484
484
|
"input": [
|
|
485
485
|
"text",
|
|
@@ -491,28 +491,28 @@
|
|
|
491
491
|
]
|
|
492
492
|
},
|
|
493
493
|
"open_weights": false,
|
|
494
|
+
"limit": {
|
|
495
|
+
"context": 200000,
|
|
496
|
+
"output": 8192
|
|
497
|
+
},
|
|
494
498
|
"cost": {
|
|
495
499
|
"input": 3,
|
|
496
500
|
"output": 15,
|
|
497
501
|
"cache_read": 0.3,
|
|
498
502
|
"cache_write": 3.75
|
|
499
|
-
},
|
|
500
|
-
"limit": {
|
|
501
|
-
"context": 200000,
|
|
502
|
-
"output": 8192
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
|
-
"claude-opus-4-5": {
|
|
506
|
-
"id": "claude-opus-4-5",
|
|
507
|
-
"name": "Claude Opus 4.5
|
|
505
|
+
"claude-opus-4-5-20251101": {
|
|
506
|
+
"id": "claude-opus-4-5-20251101",
|
|
507
|
+
"name": "Claude Opus 4.5",
|
|
508
508
|
"family": "claude-opus",
|
|
509
509
|
"attachment": true,
|
|
510
510
|
"reasoning": true,
|
|
511
511
|
"tool_call": true,
|
|
512
512
|
"temperature": true,
|
|
513
513
|
"knowledge": "2025-03-31",
|
|
514
|
-
"release_date": "2025-11-
|
|
515
|
-
"last_updated": "2025-11-
|
|
514
|
+
"release_date": "2025-11-01",
|
|
515
|
+
"last_updated": "2025-11-01",
|
|
516
516
|
"modalities": {
|
|
517
517
|
"input": [
|
|
518
518
|
"text",
|
|
@@ -524,28 +524,28 @@
|
|
|
524
524
|
]
|
|
525
525
|
},
|
|
526
526
|
"open_weights": false,
|
|
527
|
+
"limit": {
|
|
528
|
+
"context": 200000,
|
|
529
|
+
"output": 64000
|
|
530
|
+
},
|
|
527
531
|
"cost": {
|
|
528
532
|
"input": 5,
|
|
529
533
|
"output": 25,
|
|
530
534
|
"cache_read": 0.5,
|
|
531
535
|
"cache_write": 6.25
|
|
532
|
-
},
|
|
533
|
-
"limit": {
|
|
534
|
-
"context": 200000,
|
|
535
|
-
"output": 64000
|
|
536
536
|
}
|
|
537
537
|
},
|
|
538
|
-
"claude-opus-4-
|
|
539
|
-
"id": "claude-opus-4-
|
|
540
|
-
"name": "Claude Opus 4
|
|
538
|
+
"claude-opus-4-20250514": {
|
|
539
|
+
"id": "claude-opus-4-20250514",
|
|
540
|
+
"name": "Claude Opus 4",
|
|
541
541
|
"family": "claude-opus",
|
|
542
542
|
"attachment": true,
|
|
543
543
|
"reasoning": true,
|
|
544
544
|
"tool_call": true,
|
|
545
545
|
"temperature": true,
|
|
546
546
|
"knowledge": "2025-03-31",
|
|
547
|
-
"release_date": "2025-
|
|
548
|
-
"last_updated": "2025-
|
|
547
|
+
"release_date": "2025-05-22",
|
|
548
|
+
"last_updated": "2025-05-22",
|
|
549
549
|
"modalities": {
|
|
550
550
|
"input": [
|
|
551
551
|
"text",
|
|
@@ -557,28 +557,28 @@
|
|
|
557
557
|
]
|
|
558
558
|
},
|
|
559
559
|
"open_weights": false,
|
|
560
|
+
"limit": {
|
|
561
|
+
"context": 200000,
|
|
562
|
+
"output": 32000
|
|
563
|
+
},
|
|
560
564
|
"cost": {
|
|
561
565
|
"input": 15,
|
|
562
566
|
"output": 75,
|
|
563
567
|
"cache_read": 1.5,
|
|
564
568
|
"cache_write": 18.75
|
|
565
|
-
},
|
|
566
|
-
"limit": {
|
|
567
|
-
"context": 200000,
|
|
568
|
-
"output": 32000
|
|
569
569
|
}
|
|
570
570
|
},
|
|
571
|
-
"claude-
|
|
572
|
-
"id": "claude-
|
|
573
|
-
"name": "Claude
|
|
574
|
-
"family": "claude-
|
|
571
|
+
"claude-sonnet-4-5-20250929": {
|
|
572
|
+
"id": "claude-sonnet-4-5-20250929",
|
|
573
|
+
"name": "Claude Sonnet 4.5",
|
|
574
|
+
"family": "claude-sonnet",
|
|
575
575
|
"attachment": true,
|
|
576
576
|
"reasoning": true,
|
|
577
577
|
"tool_call": true,
|
|
578
578
|
"temperature": true,
|
|
579
|
-
"knowledge": "2025-
|
|
580
|
-
"release_date": "2025-
|
|
581
|
-
"last_updated": "2025-
|
|
579
|
+
"knowledge": "2025-07-31",
|
|
580
|
+
"release_date": "2025-09-29",
|
|
581
|
+
"last_updated": "2025-09-29",
|
|
582
582
|
"modalities": {
|
|
583
583
|
"input": [
|
|
584
584
|
"text",
|
|
@@ -590,28 +590,28 @@
|
|
|
590
590
|
]
|
|
591
591
|
},
|
|
592
592
|
"open_weights": false,
|
|
593
|
-
"cost": {
|
|
594
|
-
"input": 1,
|
|
595
|
-
"output": 5,
|
|
596
|
-
"cache_read": 0.1,
|
|
597
|
-
"cache_write": 1.25
|
|
598
|
-
},
|
|
599
593
|
"limit": {
|
|
600
594
|
"context": 200000,
|
|
601
595
|
"output": 64000
|
|
596
|
+
},
|
|
597
|
+
"cost": {
|
|
598
|
+
"input": 3,
|
|
599
|
+
"output": 15,
|
|
600
|
+
"cache_read": 0.3,
|
|
601
|
+
"cache_write": 3.75
|
|
602
602
|
}
|
|
603
603
|
},
|
|
604
|
-
"claude-
|
|
605
|
-
"id": "claude-
|
|
606
|
-
"name": "Claude
|
|
607
|
-
"family": "claude-
|
|
604
|
+
"claude-opus-4-7": {
|
|
605
|
+
"id": "claude-opus-4-7",
|
|
606
|
+
"name": "Claude Opus 4.7",
|
|
607
|
+
"family": "claude-opus",
|
|
608
608
|
"attachment": true,
|
|
609
609
|
"reasoning": true,
|
|
610
610
|
"tool_call": true,
|
|
611
|
-
"temperature":
|
|
612
|
-
"knowledge": "
|
|
613
|
-
"release_date": "
|
|
614
|
-
"last_updated": "
|
|
611
|
+
"temperature": false,
|
|
612
|
+
"knowledge": "2026-01-31",
|
|
613
|
+
"release_date": "2026-04-16",
|
|
614
|
+
"last_updated": "2026-04-16",
|
|
615
615
|
"modalities": {
|
|
616
616
|
"input": [
|
|
617
617
|
"text",
|
|
@@ -623,15 +623,35 @@
|
|
|
623
623
|
]
|
|
624
624
|
},
|
|
625
625
|
"open_weights": false,
|
|
626
|
-
"cost": {
|
|
627
|
-
"input": 3,
|
|
628
|
-
"output": 15,
|
|
629
|
-
"cache_read": 0.3,
|
|
630
|
-
"cache_write": 3.75
|
|
631
|
-
},
|
|
632
626
|
"limit": {
|
|
633
|
-
"context":
|
|
634
|
-
"output":
|
|
627
|
+
"context": 1000000,
|
|
628
|
+
"output": 128000
|
|
629
|
+
},
|
|
630
|
+
"experimental": {
|
|
631
|
+
"modes": {
|
|
632
|
+
"fast": {
|
|
633
|
+
"cost": {
|
|
634
|
+
"input": 30,
|
|
635
|
+
"output": 150,
|
|
636
|
+
"cache_read": 3,
|
|
637
|
+
"cache_write": 37.5
|
|
638
|
+
},
|
|
639
|
+
"provider": {
|
|
640
|
+
"body": {
|
|
641
|
+
"speed": "fast"
|
|
642
|
+
},
|
|
643
|
+
"headers": {
|
|
644
|
+
"anthropic-beta": "fast-mode-2026-02-01"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
"cost": {
|
|
651
|
+
"input": 5,
|
|
652
|
+
"output": 25,
|
|
653
|
+
"cache_read": 0.5,
|
|
654
|
+
"cache_write": 6.25
|
|
635
655
|
}
|
|
636
656
|
},
|
|
637
657
|
"claude-opus-4-6": {
|
|
@@ -656,12 +676,6 @@
|
|
|
656
676
|
]
|
|
657
677
|
},
|
|
658
678
|
"open_weights": false,
|
|
659
|
-
"cost": {
|
|
660
|
-
"input": 5,
|
|
661
|
-
"output": 25,
|
|
662
|
-
"cache_read": 0.5,
|
|
663
|
-
"cache_write": 6.25
|
|
664
|
-
},
|
|
665
679
|
"limit": {
|
|
666
680
|
"context": 1000000,
|
|
667
681
|
"output": 128000
|
|
@@ -685,6 +699,12 @@
|
|
|
685
699
|
}
|
|
686
700
|
}
|
|
687
701
|
}
|
|
702
|
+
},
|
|
703
|
+
"cost": {
|
|
704
|
+
"input": 5,
|
|
705
|
+
"output": 25,
|
|
706
|
+
"cache_read": 0.5,
|
|
707
|
+
"cache_write": 6.25
|
|
688
708
|
}
|
|
689
709
|
},
|
|
690
710
|
"claude-3-7-sonnet-20250219": {
|
|
@@ -709,28 +729,28 @@
|
|
|
709
729
|
]
|
|
710
730
|
},
|
|
711
731
|
"open_weights": false,
|
|
732
|
+
"limit": {
|
|
733
|
+
"context": 200000,
|
|
734
|
+
"output": 64000
|
|
735
|
+
},
|
|
712
736
|
"cost": {
|
|
713
737
|
"input": 3,
|
|
714
738
|
"output": 15,
|
|
715
739
|
"cache_read": 0.3,
|
|
716
740
|
"cache_write": 3.75
|
|
717
|
-
},
|
|
718
|
-
"limit": {
|
|
719
|
-
"context": 200000,
|
|
720
|
-
"output": 64000
|
|
721
741
|
}
|
|
722
742
|
},
|
|
723
|
-
"claude-sonnet-4-
|
|
724
|
-
"id": "claude-sonnet-4-
|
|
725
|
-
"name": "Claude Sonnet 4
|
|
743
|
+
"claude-sonnet-4-20250514": {
|
|
744
|
+
"id": "claude-sonnet-4-20250514",
|
|
745
|
+
"name": "Claude Sonnet 4",
|
|
726
746
|
"family": "claude-sonnet",
|
|
727
747
|
"attachment": true,
|
|
728
748
|
"reasoning": true,
|
|
729
749
|
"tool_call": true,
|
|
730
750
|
"temperature": true,
|
|
731
|
-
"knowledge": "2025-
|
|
732
|
-
"release_date": "2025-
|
|
733
|
-
"last_updated": "2025-
|
|
751
|
+
"knowledge": "2025-03-31",
|
|
752
|
+
"release_date": "2025-05-22",
|
|
753
|
+
"last_updated": "2025-05-22",
|
|
734
754
|
"modalities": {
|
|
735
755
|
"input": [
|
|
736
756
|
"text",
|
|
@@ -742,28 +762,28 @@
|
|
|
742
762
|
]
|
|
743
763
|
},
|
|
744
764
|
"open_weights": false,
|
|
765
|
+
"limit": {
|
|
766
|
+
"context": 200000,
|
|
767
|
+
"output": 64000
|
|
768
|
+
},
|
|
745
769
|
"cost": {
|
|
746
770
|
"input": 3,
|
|
747
771
|
"output": 15,
|
|
748
772
|
"cache_read": 0.3,
|
|
749
773
|
"cache_write": 3.75
|
|
750
|
-
},
|
|
751
|
-
"limit": {
|
|
752
|
-
"context": 200000,
|
|
753
|
-
"output": 64000
|
|
754
774
|
}
|
|
755
775
|
},
|
|
756
|
-
"claude-opus-4-
|
|
757
|
-
"id": "claude-opus-4-
|
|
758
|
-
"name": "Claude Opus 4",
|
|
776
|
+
"claude-opus-4-5": {
|
|
777
|
+
"id": "claude-opus-4-5",
|
|
778
|
+
"name": "Claude Opus 4.5 (latest)",
|
|
759
779
|
"family": "claude-opus",
|
|
760
780
|
"attachment": true,
|
|
761
781
|
"reasoning": true,
|
|
762
782
|
"tool_call": true,
|
|
763
783
|
"temperature": true,
|
|
764
784
|
"knowledge": "2025-03-31",
|
|
765
|
-
"release_date": "2025-
|
|
766
|
-
"last_updated": "2025-
|
|
785
|
+
"release_date": "2025-11-24",
|
|
786
|
+
"last_updated": "2025-11-24",
|
|
767
787
|
"modalities": {
|
|
768
788
|
"input": [
|
|
769
789
|
"text",
|
|
@@ -775,15 +795,15 @@
|
|
|
775
795
|
]
|
|
776
796
|
},
|
|
777
797
|
"open_weights": false,
|
|
778
|
-
"cost": {
|
|
779
|
-
"input": 15,
|
|
780
|
-
"output": 75,
|
|
781
|
-
"cache_read": 1.5,
|
|
782
|
-
"cache_write": 18.75
|
|
783
|
-
},
|
|
784
798
|
"limit": {
|
|
785
799
|
"context": 200000,
|
|
786
|
-
"output":
|
|
800
|
+
"output": 64000
|
|
801
|
+
},
|
|
802
|
+
"cost": {
|
|
803
|
+
"input": 5,
|
|
804
|
+
"output": 25,
|
|
805
|
+
"cache_read": 0.5,
|
|
806
|
+
"cache_write": 6.25
|
|
787
807
|
}
|
|
788
808
|
}
|
|
789
809
|
}
|