llm.rb 12.3.1 → 12.5.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 +395 -0
- data/README.md +103 -16
- data/data/anthropic.json +249 -249
- data/data/bedrock.json +2038 -1879
- data/data/deepinfra.json +591 -591
- data/data/deepseek.json +31 -31
- data/data/google.json +332 -329
- data/data/mistral.json +381 -381
- data/data/openai.json +1132 -1132
- data/data/xai.json +138 -138
- data/data/zai.json +165 -165
- data/lib/llm/agent.rb +12 -7
- data/lib/llm/buffer.rb +15 -0
- data/lib/llm/context/deserializer.rb +2 -5
- data/lib/llm/context.rb +4 -5
- data/lib/llm/function.rb +2 -35
- data/lib/llm/message.rb +12 -2
- data/lib/llm/provider.rb +11 -1
- data/lib/llm/providers/anthropic/stream_parser.rb +3 -12
- data/lib/llm/providers/anthropic.rb +11 -0
- data/lib/llm/providers/bedrock/stream_parser.rb +4 -13
- data/lib/llm/providers/google/stream_parser.rb +3 -12
- data/lib/llm/providers/google.rb +7 -0
- data/lib/llm/providers/mistral.rb +11 -0
- data/lib/llm/providers/ollama/stream_parser.rb +4 -4
- data/lib/llm/providers/ollama.rb +11 -0
- data/lib/llm/providers/openai/responses/stream_parser.rb +4 -14
- data/lib/llm/providers/openai/responses.rb +10 -0
- data/lib/llm/providers/openai/stream_parser.rb +5 -15
- data/lib/llm/providers/openai.rb +11 -0
- data/lib/llm/repl/command.rb +201 -0
- data/lib/llm/repl/commands/exit.rb +23 -0
- data/lib/llm/repl/commands/help.rb +24 -0
- data/lib/llm/repl/input.rb +118 -35
- data/lib/llm/repl/stream.rb +43 -8
- data/lib/llm/repl/transcript.rb +6 -0
- data/lib/llm/repl/window.rb +28 -6
- data/lib/llm/repl.rb +125 -27
- data/lib/llm/stream.rb +2 -7
- data/lib/llm/tools/ls.rb +30 -0
- data/lib/llm/tools/which.rb +38 -0
- data/lib/llm/version.rb +1 -1
- data/resources/deepdive.md +67 -1
- metadata +6 -1
data/data/anthropic.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"name": "Anthropic",
|
|
8
8
|
"doc": "https://docs.anthropic.com/en/docs/about-claude/models",
|
|
9
9
|
"models": {
|
|
10
|
-
"claude-opus-4-
|
|
11
|
-
"id": "claude-opus-4-
|
|
12
|
-
"name": "Claude Opus 4.
|
|
13
|
-
"description": "
|
|
10
|
+
"claude-opus-4-8": {
|
|
11
|
+
"id": "claude-opus-4-8",
|
|
12
|
+
"name": "Claude Opus 4.8",
|
|
13
|
+
"description": "Top Claude Opus tier for the hardest reasoning, coding, and long-horizon agents",
|
|
14
14
|
"family": "claude-opus",
|
|
15
15
|
"attachment": true,
|
|
16
16
|
"reasoning": true,
|
|
@@ -20,20 +20,18 @@
|
|
|
20
20
|
"values": [
|
|
21
21
|
"low",
|
|
22
22
|
"medium",
|
|
23
|
-
"high"
|
|
23
|
+
"high",
|
|
24
|
+
"xhigh",
|
|
25
|
+
"max"
|
|
24
26
|
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": "budget_tokens",
|
|
28
|
-
"min": 1024
|
|
29
27
|
}
|
|
30
28
|
],
|
|
31
29
|
"tool_call": true,
|
|
32
30
|
"structured_output": true,
|
|
33
|
-
"temperature":
|
|
34
|
-
"knowledge": "
|
|
35
|
-
"release_date": "
|
|
36
|
-
"last_updated": "
|
|
31
|
+
"temperature": false,
|
|
32
|
+
"knowledge": "2026-01",
|
|
33
|
+
"release_date": "2026-05-28",
|
|
34
|
+
"last_updated": "2026-05-28",
|
|
37
35
|
"modalities": {
|
|
38
36
|
"input": [
|
|
39
37
|
"text",
|
|
@@ -46,8 +44,28 @@
|
|
|
46
44
|
},
|
|
47
45
|
"open_weights": false,
|
|
48
46
|
"limit": {
|
|
49
|
-
"context":
|
|
50
|
-
"output":
|
|
47
|
+
"context": 1000000,
|
|
48
|
+
"output": 128000
|
|
49
|
+
},
|
|
50
|
+
"experimental": {
|
|
51
|
+
"modes": {
|
|
52
|
+
"fast": {
|
|
53
|
+
"cost": {
|
|
54
|
+
"input": 10,
|
|
55
|
+
"output": 50,
|
|
56
|
+
"cache_read": 1,
|
|
57
|
+
"cache_write": 12.5
|
|
58
|
+
},
|
|
59
|
+
"provider": {
|
|
60
|
+
"body": {
|
|
61
|
+
"speed": "fast"
|
|
62
|
+
},
|
|
63
|
+
"headers": {
|
|
64
|
+
"anthropic-beta": "fast-mode-2026-02-01"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
51
69
|
},
|
|
52
70
|
"cost": {
|
|
53
71
|
"input": 5,
|
|
@@ -56,50 +74,9 @@
|
|
|
56
74
|
"cache_write": 6.25
|
|
57
75
|
}
|
|
58
76
|
},
|
|
59
|
-
"claude-
|
|
60
|
-
"id": "claude-
|
|
61
|
-
"name": "Claude
|
|
62
|
-
"description": "Fast Claude model for responsive assistance, classification, and lightweight agents",
|
|
63
|
-
"family": "claude-haiku",
|
|
64
|
-
"attachment": true,
|
|
65
|
-
"reasoning": true,
|
|
66
|
-
"reasoning_options": [
|
|
67
|
-
{
|
|
68
|
-
"type": "budget_tokens",
|
|
69
|
-
"min": 1024
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"tool_call": true,
|
|
73
|
-
"structured_output": true,
|
|
74
|
-
"temperature": true,
|
|
75
|
-
"knowledge": "2025-02-28",
|
|
76
|
-
"release_date": "2025-10-15",
|
|
77
|
-
"last_updated": "2025-10-15",
|
|
78
|
-
"modalities": {
|
|
79
|
-
"input": [
|
|
80
|
-
"text",
|
|
81
|
-
"image",
|
|
82
|
-
"pdf"
|
|
83
|
-
],
|
|
84
|
-
"output": [
|
|
85
|
-
"text"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"open_weights": false,
|
|
89
|
-
"limit": {
|
|
90
|
-
"context": 200000,
|
|
91
|
-
"output": 64000
|
|
92
|
-
},
|
|
93
|
-
"cost": {
|
|
94
|
-
"input": 1,
|
|
95
|
-
"output": 5,
|
|
96
|
-
"cache_read": 0.1,
|
|
97
|
-
"cache_write": 1.25
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"claude-opus-4-1-20250805": {
|
|
101
|
-
"id": "claude-opus-4-1-20250805",
|
|
102
|
-
"name": "Claude Opus 4.1",
|
|
77
|
+
"claude-opus-4-1": {
|
|
78
|
+
"id": "claude-opus-4-1",
|
|
79
|
+
"name": "Claude Opus 4.1 (latest)",
|
|
103
80
|
"description": "Flagship Claude model for deep reasoning, coding, and long-horizon agents",
|
|
104
81
|
"family": "claude-opus",
|
|
105
82
|
"attachment": true,
|
|
@@ -139,14 +116,23 @@
|
|
|
139
116
|
"cache_write": 18.75
|
|
140
117
|
}
|
|
141
118
|
},
|
|
142
|
-
"claude-sonnet-4-
|
|
143
|
-
"id": "claude-sonnet-4-
|
|
144
|
-
"name": "Claude Sonnet 4.
|
|
145
|
-
"description": "
|
|
119
|
+
"claude-sonnet-4-6": {
|
|
120
|
+
"id": "claude-sonnet-4-6",
|
|
121
|
+
"name": "Claude Sonnet 4.6",
|
|
122
|
+
"description": "Claude workhorse for coding agents, careful analysis, and production cost control",
|
|
146
123
|
"family": "claude-sonnet",
|
|
147
124
|
"attachment": true,
|
|
148
125
|
"reasoning": true,
|
|
149
126
|
"reasoning_options": [
|
|
127
|
+
{
|
|
128
|
+
"type": "effort",
|
|
129
|
+
"values": [
|
|
130
|
+
"low",
|
|
131
|
+
"medium",
|
|
132
|
+
"high",
|
|
133
|
+
"max"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
150
136
|
{
|
|
151
137
|
"type": "budget_tokens",
|
|
152
138
|
"min": 1024
|
|
@@ -155,9 +141,9 @@
|
|
|
155
141
|
"tool_call": true,
|
|
156
142
|
"structured_output": true,
|
|
157
143
|
"temperature": true,
|
|
158
|
-
"knowledge": "2025-
|
|
159
|
-
"release_date": "
|
|
160
|
-
"last_updated": "
|
|
144
|
+
"knowledge": "2025-08-31",
|
|
145
|
+
"release_date": "2026-02-17",
|
|
146
|
+
"last_updated": "2026-03-13",
|
|
161
147
|
"modalities": {
|
|
162
148
|
"input": [
|
|
163
149
|
"text",
|
|
@@ -171,7 +157,7 @@
|
|
|
171
157
|
"open_weights": false,
|
|
172
158
|
"limit": {
|
|
173
159
|
"context": 1000000,
|
|
174
|
-
"output":
|
|
160
|
+
"output": 128000
|
|
175
161
|
},
|
|
176
162
|
"cost": {
|
|
177
163
|
"input": 3,
|
|
@@ -180,31 +166,25 @@
|
|
|
180
166
|
"cache_write": 3.75
|
|
181
167
|
}
|
|
182
168
|
},
|
|
183
|
-
"claude-opus-4-
|
|
184
|
-
"id": "claude-opus-4-
|
|
185
|
-
"name": "Claude Opus 4.
|
|
186
|
-
"description": "
|
|
169
|
+
"claude-opus-4-1-20250805": {
|
|
170
|
+
"id": "claude-opus-4-1-20250805",
|
|
171
|
+
"name": "Claude Opus 4.1",
|
|
172
|
+
"description": "Flagship Claude model for deep reasoning, coding, and long-horizon agents",
|
|
187
173
|
"family": "claude-opus",
|
|
188
174
|
"attachment": true,
|
|
189
175
|
"reasoning": true,
|
|
190
176
|
"reasoning_options": [
|
|
191
177
|
{
|
|
192
|
-
"type": "
|
|
193
|
-
"
|
|
194
|
-
"low",
|
|
195
|
-
"medium",
|
|
196
|
-
"high",
|
|
197
|
-
"xhigh",
|
|
198
|
-
"max"
|
|
199
|
-
]
|
|
178
|
+
"type": "budget_tokens",
|
|
179
|
+
"min": 1024
|
|
200
180
|
}
|
|
201
181
|
],
|
|
202
182
|
"tool_call": true,
|
|
203
183
|
"structured_output": true,
|
|
204
|
-
"temperature":
|
|
205
|
-
"knowledge": "
|
|
206
|
-
"release_date": "
|
|
207
|
-
"last_updated": "
|
|
184
|
+
"temperature": true,
|
|
185
|
+
"knowledge": "2025-03-31",
|
|
186
|
+
"release_date": "2025-08-05",
|
|
187
|
+
"last_updated": "2025-08-05",
|
|
208
188
|
"modalities": {
|
|
209
189
|
"input": [
|
|
210
190
|
"text",
|
|
@@ -217,64 +197,36 @@
|
|
|
217
197
|
},
|
|
218
198
|
"open_weights": false,
|
|
219
199
|
"limit": {
|
|
220
|
-
"context":
|
|
221
|
-
"output":
|
|
222
|
-
},
|
|
223
|
-
"experimental": {
|
|
224
|
-
"modes": {
|
|
225
|
-
"fast": {
|
|
226
|
-
"cost": {
|
|
227
|
-
"input": 30,
|
|
228
|
-
"output": 150,
|
|
229
|
-
"cache_read": 3,
|
|
230
|
-
"cache_write": 37.5
|
|
231
|
-
},
|
|
232
|
-
"provider": {
|
|
233
|
-
"body": {
|
|
234
|
-
"speed": "fast"
|
|
235
|
-
},
|
|
236
|
-
"headers": {
|
|
237
|
-
"anthropic-beta": "fast-mode-2026-02-01"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
200
|
+
"context": 200000,
|
|
201
|
+
"output": 32000
|
|
242
202
|
},
|
|
203
|
+
"status": "deprecated",
|
|
243
204
|
"cost": {
|
|
244
|
-
"input":
|
|
245
|
-
"output":
|
|
246
|
-
"cache_read":
|
|
247
|
-
"cache_write":
|
|
205
|
+
"input": 15,
|
|
206
|
+
"output": 75,
|
|
207
|
+
"cache_read": 1.5,
|
|
208
|
+
"cache_write": 18.75
|
|
248
209
|
}
|
|
249
210
|
},
|
|
250
|
-
"claude-
|
|
251
|
-
"id": "claude-
|
|
252
|
-
"name": "Claude
|
|
253
|
-
"description": "
|
|
254
|
-
"family": "claude-
|
|
211
|
+
"claude-haiku-4-5": {
|
|
212
|
+
"id": "claude-haiku-4-5",
|
|
213
|
+
"name": "Claude Haiku 4.5 (latest)",
|
|
214
|
+
"description": "Fast Claude lane for lightweight agents, office tasks, and responsive chat",
|
|
215
|
+
"family": "claude-haiku",
|
|
255
216
|
"attachment": true,
|
|
256
217
|
"reasoning": true,
|
|
257
218
|
"reasoning_options": [
|
|
258
219
|
{
|
|
259
|
-
"type": "
|
|
260
|
-
|
|
261
|
-
{
|
|
262
|
-
"type": "effort",
|
|
263
|
-
"values": [
|
|
264
|
-
"low",
|
|
265
|
-
"medium",
|
|
266
|
-
"high",
|
|
267
|
-
"xhigh",
|
|
268
|
-
"max"
|
|
269
|
-
]
|
|
220
|
+
"type": "budget_tokens",
|
|
221
|
+
"min": 1024
|
|
270
222
|
}
|
|
271
223
|
],
|
|
272
224
|
"tool_call": true,
|
|
273
225
|
"structured_output": true,
|
|
274
|
-
"temperature":
|
|
275
|
-
"knowledge": "
|
|
276
|
-
"release_date": "
|
|
277
|
-
"last_updated": "
|
|
226
|
+
"temperature": true,
|
|
227
|
+
"knowledge": "2025-02-28",
|
|
228
|
+
"release_date": "2025-10-15",
|
|
229
|
+
"last_updated": "2025-10-15",
|
|
278
230
|
"modalities": {
|
|
279
231
|
"input": [
|
|
280
232
|
"text",
|
|
@@ -287,14 +239,14 @@
|
|
|
287
239
|
},
|
|
288
240
|
"open_weights": false,
|
|
289
241
|
"limit": {
|
|
290
|
-
"context":
|
|
291
|
-
"output":
|
|
242
|
+
"context": 200000,
|
|
243
|
+
"output": 64000
|
|
292
244
|
},
|
|
293
245
|
"cost": {
|
|
294
|
-
"input":
|
|
295
|
-
"output":
|
|
296
|
-
"cache_read": 0.
|
|
297
|
-
"cache_write":
|
|
246
|
+
"input": 1,
|
|
247
|
+
"output": 5,
|
|
248
|
+
"cache_read": 0.1,
|
|
249
|
+
"cache_write": 1.25
|
|
298
250
|
}
|
|
299
251
|
},
|
|
300
252
|
"claude-opus-4-5-20251101": {
|
|
@@ -346,31 +298,25 @@
|
|
|
346
298
|
"cache_write": 6.25
|
|
347
299
|
}
|
|
348
300
|
},
|
|
349
|
-
"claude-
|
|
350
|
-
"id": "claude-
|
|
351
|
-
"name": "Claude
|
|
352
|
-
"description": "
|
|
353
|
-
"family": "claude-
|
|
301
|
+
"claude-sonnet-4-5-20250929": {
|
|
302
|
+
"id": "claude-sonnet-4-5-20250929",
|
|
303
|
+
"name": "Claude Sonnet 4.5",
|
|
304
|
+
"description": "Balanced Claude model for coding, analysis, agent workflows, and cost control",
|
|
305
|
+
"family": "claude-sonnet",
|
|
354
306
|
"attachment": true,
|
|
355
307
|
"reasoning": true,
|
|
356
308
|
"reasoning_options": [
|
|
357
309
|
{
|
|
358
|
-
"type": "
|
|
359
|
-
"
|
|
360
|
-
"low",
|
|
361
|
-
"medium",
|
|
362
|
-
"high",
|
|
363
|
-
"xhigh",
|
|
364
|
-
"max"
|
|
365
|
-
]
|
|
310
|
+
"type": "budget_tokens",
|
|
311
|
+
"min": 1024
|
|
366
312
|
}
|
|
367
313
|
],
|
|
368
314
|
"tool_call": true,
|
|
369
315
|
"structured_output": true,
|
|
370
|
-
"temperature":
|
|
371
|
-
"knowledge": "
|
|
372
|
-
"release_date": "
|
|
373
|
-
"last_updated": "
|
|
316
|
+
"temperature": true,
|
|
317
|
+
"knowledge": "2025-07-31",
|
|
318
|
+
"release_date": "2025-09-29",
|
|
319
|
+
"last_updated": "2025-09-29",
|
|
374
320
|
"modalities": {
|
|
375
321
|
"input": [
|
|
376
322
|
"text",
|
|
@@ -384,54 +330,39 @@
|
|
|
384
330
|
"open_weights": false,
|
|
385
331
|
"limit": {
|
|
386
332
|
"context": 1000000,
|
|
387
|
-
"output":
|
|
388
|
-
},
|
|
389
|
-
"experimental": {
|
|
390
|
-
"modes": {
|
|
391
|
-
"fast": {
|
|
392
|
-
"cost": {
|
|
393
|
-
"input": 10,
|
|
394
|
-
"output": 50,
|
|
395
|
-
"cache_read": 1,
|
|
396
|
-
"cache_write": 12.5
|
|
397
|
-
},
|
|
398
|
-
"provider": {
|
|
399
|
-
"body": {
|
|
400
|
-
"speed": "fast"
|
|
401
|
-
},
|
|
402
|
-
"headers": {
|
|
403
|
-
"anthropic-beta": "fast-mode-2026-02-01"
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
333
|
+
"output": 64000
|
|
408
334
|
},
|
|
409
335
|
"cost": {
|
|
410
|
-
"input":
|
|
411
|
-
"output":
|
|
412
|
-
"cache_read": 0.
|
|
413
|
-
"cache_write":
|
|
336
|
+
"input": 3,
|
|
337
|
+
"output": 15,
|
|
338
|
+
"cache_read": 0.3,
|
|
339
|
+
"cache_write": 3.75
|
|
414
340
|
}
|
|
415
341
|
},
|
|
416
|
-
"claude-
|
|
417
|
-
"id": "claude-
|
|
418
|
-
"name": "Claude
|
|
419
|
-
"description": "
|
|
420
|
-
"family": "claude-
|
|
342
|
+
"claude-fable-5": {
|
|
343
|
+
"id": "claude-fable-5",
|
|
344
|
+
"name": "Claude Fable 5",
|
|
345
|
+
"description": "Claude model for creative writing, analysis, and controlled agent workflows",
|
|
346
|
+
"family": "claude-fable",
|
|
421
347
|
"attachment": true,
|
|
422
348
|
"reasoning": true,
|
|
423
349
|
"reasoning_options": [
|
|
424
350
|
{
|
|
425
|
-
"type": "
|
|
426
|
-
"
|
|
351
|
+
"type": "effort",
|
|
352
|
+
"values": [
|
|
353
|
+
"low",
|
|
354
|
+
"medium",
|
|
355
|
+
"high",
|
|
356
|
+
"xhigh",
|
|
357
|
+
"max"
|
|
358
|
+
]
|
|
427
359
|
}
|
|
428
360
|
],
|
|
429
361
|
"tool_call": true,
|
|
430
362
|
"structured_output": true,
|
|
431
|
-
"temperature":
|
|
432
|
-
"
|
|
433
|
-
"
|
|
434
|
-
"last_updated": "2025-08-05",
|
|
363
|
+
"temperature": false,
|
|
364
|
+
"release_date": "2026-06-07",
|
|
365
|
+
"last_updated": "2026-06-09",
|
|
435
366
|
"modalities": {
|
|
436
367
|
"input": [
|
|
437
368
|
"text",
|
|
@@ -444,25 +375,27 @@
|
|
|
444
375
|
},
|
|
445
376
|
"open_weights": false,
|
|
446
377
|
"limit": {
|
|
447
|
-
"context":
|
|
448
|
-
"output":
|
|
378
|
+
"context": 1000000,
|
|
379
|
+
"output": 128000
|
|
449
380
|
},
|
|
450
|
-
"status": "deprecated",
|
|
451
381
|
"cost": {
|
|
452
|
-
"input":
|
|
453
|
-
"output":
|
|
454
|
-
"cache_read": 1
|
|
455
|
-
"cache_write":
|
|
382
|
+
"input": 10,
|
|
383
|
+
"output": 50,
|
|
384
|
+
"cache_read": 1,
|
|
385
|
+
"cache_write": 12.5
|
|
456
386
|
}
|
|
457
387
|
},
|
|
458
|
-
"claude-
|
|
459
|
-
"id": "claude-
|
|
460
|
-
"name": "Claude
|
|
461
|
-
"description": "Claude model for
|
|
462
|
-
"family": "claude-
|
|
388
|
+
"claude-sonnet-5": {
|
|
389
|
+
"id": "claude-sonnet-5",
|
|
390
|
+
"name": "Claude Sonnet 5",
|
|
391
|
+
"description": "Everyday Claude agent model for coding, planning, browsing, and general work",
|
|
392
|
+
"family": "claude-sonnet",
|
|
463
393
|
"attachment": true,
|
|
464
394
|
"reasoning": true,
|
|
465
395
|
"reasoning_options": [
|
|
396
|
+
{
|
|
397
|
+
"type": "toggle"
|
|
398
|
+
},
|
|
466
399
|
{
|
|
467
400
|
"type": "effort",
|
|
468
401
|
"values": [
|
|
@@ -477,8 +410,9 @@
|
|
|
477
410
|
"tool_call": true,
|
|
478
411
|
"structured_output": true,
|
|
479
412
|
"temperature": false,
|
|
480
|
-
"
|
|
481
|
-
"
|
|
413
|
+
"knowledge": "2026-01-31",
|
|
414
|
+
"release_date": "2026-06-29",
|
|
415
|
+
"last_updated": "2026-06-30",
|
|
482
416
|
"modalities": {
|
|
483
417
|
"input": [
|
|
484
418
|
"text",
|
|
@@ -495,16 +429,16 @@
|
|
|
495
429
|
"output": 128000
|
|
496
430
|
},
|
|
497
431
|
"cost": {
|
|
498
|
-
"input":
|
|
499
|
-
"output":
|
|
500
|
-
"cache_read":
|
|
501
|
-
"cache_write":
|
|
432
|
+
"input": 2,
|
|
433
|
+
"output": 10,
|
|
434
|
+
"cache_read": 0.2,
|
|
435
|
+
"cache_write": 2.5
|
|
502
436
|
}
|
|
503
437
|
},
|
|
504
|
-
"claude-haiku-4-5": {
|
|
505
|
-
"id": "claude-haiku-4-5",
|
|
506
|
-
"name": "Claude Haiku 4.5
|
|
507
|
-
"description": "Fast Claude
|
|
438
|
+
"claude-haiku-4-5-20251001": {
|
|
439
|
+
"id": "claude-haiku-4-5-20251001",
|
|
440
|
+
"name": "Claude Haiku 4.5",
|
|
441
|
+
"description": "Fast Claude model for responsive assistance, classification, and lightweight agents",
|
|
508
442
|
"family": "claude-haiku",
|
|
509
443
|
"attachment": true,
|
|
510
444
|
"reasoning": true,
|
|
@@ -542,10 +476,10 @@
|
|
|
542
476
|
"cache_write": 1.25
|
|
543
477
|
}
|
|
544
478
|
},
|
|
545
|
-
"claude-opus-4-
|
|
546
|
-
"id": "claude-opus-4-
|
|
547
|
-
"name": "Claude Opus 4.
|
|
548
|
-
"description": "
|
|
479
|
+
"claude-opus-4-5": {
|
|
480
|
+
"id": "claude-opus-4-5",
|
|
481
|
+
"name": "Claude Opus 4.5 (latest)",
|
|
482
|
+
"description": "Flagship Claude model for deep reasoning, coding, and long-horizon agents",
|
|
549
483
|
"family": "claude-opus",
|
|
550
484
|
"attachment": true,
|
|
551
485
|
"reasoning": true,
|
|
@@ -555,8 +489,7 @@
|
|
|
555
489
|
"values": [
|
|
556
490
|
"low",
|
|
557
491
|
"medium",
|
|
558
|
-
"high"
|
|
559
|
-
"max"
|
|
492
|
+
"high"
|
|
560
493
|
]
|
|
561
494
|
},
|
|
562
495
|
{
|
|
@@ -567,9 +500,56 @@
|
|
|
567
500
|
"tool_call": true,
|
|
568
501
|
"structured_output": true,
|
|
569
502
|
"temperature": true,
|
|
570
|
-
"knowledge": "2025-05
|
|
571
|
-
"release_date": "
|
|
572
|
-
"last_updated": "
|
|
503
|
+
"knowledge": "2025-05",
|
|
504
|
+
"release_date": "2025-11-24",
|
|
505
|
+
"last_updated": "2025-11-24",
|
|
506
|
+
"modalities": {
|
|
507
|
+
"input": [
|
|
508
|
+
"text",
|
|
509
|
+
"image",
|
|
510
|
+
"pdf"
|
|
511
|
+
],
|
|
512
|
+
"output": [
|
|
513
|
+
"text"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
"open_weights": false,
|
|
517
|
+
"limit": {
|
|
518
|
+
"context": 200000,
|
|
519
|
+
"output": 64000
|
|
520
|
+
},
|
|
521
|
+
"cost": {
|
|
522
|
+
"input": 5,
|
|
523
|
+
"output": 25,
|
|
524
|
+
"cache_read": 0.5,
|
|
525
|
+
"cache_write": 6.25
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"claude-opus-4-7": {
|
|
529
|
+
"id": "claude-opus-4-7",
|
|
530
|
+
"name": "Claude Opus 4.7",
|
|
531
|
+
"description": "Stronger Opus tier for advanced software work and high-stakes reasoning",
|
|
532
|
+
"family": "claude-opus",
|
|
533
|
+
"attachment": true,
|
|
534
|
+
"reasoning": true,
|
|
535
|
+
"reasoning_options": [
|
|
536
|
+
{
|
|
537
|
+
"type": "effort",
|
|
538
|
+
"values": [
|
|
539
|
+
"low",
|
|
540
|
+
"medium",
|
|
541
|
+
"high",
|
|
542
|
+
"xhigh",
|
|
543
|
+
"max"
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
],
|
|
547
|
+
"tool_call": true,
|
|
548
|
+
"structured_output": true,
|
|
549
|
+
"temperature": false,
|
|
550
|
+
"knowledge": "2026-01-31",
|
|
551
|
+
"release_date": "2026-04-14",
|
|
552
|
+
"last_updated": "2026-04-16",
|
|
573
553
|
"modalities": {
|
|
574
554
|
"input": [
|
|
575
555
|
"text",
|
|
@@ -612,14 +592,23 @@
|
|
|
612
592
|
"cache_write": 6.25
|
|
613
593
|
}
|
|
614
594
|
},
|
|
615
|
-
"claude-
|
|
616
|
-
"id": "claude-
|
|
617
|
-
"name": "Claude
|
|
618
|
-
"description": "
|
|
619
|
-
"family": "claude-
|
|
595
|
+
"claude-opus-4-6": {
|
|
596
|
+
"id": "claude-opus-4-6",
|
|
597
|
+
"name": "Claude Opus 4.6",
|
|
598
|
+
"description": "High-end Claude for difficult coding, planning, and slower expert reasoning",
|
|
599
|
+
"family": "claude-opus",
|
|
620
600
|
"attachment": true,
|
|
621
601
|
"reasoning": true,
|
|
622
602
|
"reasoning_options": [
|
|
603
|
+
{
|
|
604
|
+
"type": "effort",
|
|
605
|
+
"values": [
|
|
606
|
+
"low",
|
|
607
|
+
"medium",
|
|
608
|
+
"high",
|
|
609
|
+
"max"
|
|
610
|
+
]
|
|
611
|
+
},
|
|
623
612
|
{
|
|
624
613
|
"type": "budget_tokens",
|
|
625
614
|
"min": 1024
|
|
@@ -628,9 +617,9 @@
|
|
|
628
617
|
"tool_call": true,
|
|
629
618
|
"structured_output": true,
|
|
630
619
|
"temperature": true,
|
|
631
|
-
"knowledge": "2025-
|
|
632
|
-
"release_date": "
|
|
633
|
-
"last_updated": "
|
|
620
|
+
"knowledge": "2025-05-31",
|
|
621
|
+
"release_date": "2026-02-04",
|
|
622
|
+
"last_updated": "2026-03-13",
|
|
634
623
|
"modalities": {
|
|
635
624
|
"input": [
|
|
636
625
|
"text",
|
|
@@ -644,32 +633,43 @@
|
|
|
644
633
|
"open_weights": false,
|
|
645
634
|
"limit": {
|
|
646
635
|
"context": 1000000,
|
|
647
|
-
"output":
|
|
636
|
+
"output": 128000
|
|
637
|
+
},
|
|
638
|
+
"experimental": {
|
|
639
|
+
"modes": {
|
|
640
|
+
"fast": {
|
|
641
|
+
"cost": {
|
|
642
|
+
"input": 30,
|
|
643
|
+
"output": 150,
|
|
644
|
+
"cache_read": 3,
|
|
645
|
+
"cache_write": 37.5
|
|
646
|
+
},
|
|
647
|
+
"provider": {
|
|
648
|
+
"body": {
|
|
649
|
+
"speed": "fast"
|
|
650
|
+
},
|
|
651
|
+
"headers": {
|
|
652
|
+
"anthropic-beta": "fast-mode-2026-02-01"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
648
657
|
},
|
|
649
658
|
"cost": {
|
|
650
|
-
"input":
|
|
651
|
-
"output":
|
|
652
|
-
"cache_read": 0.
|
|
653
|
-
"cache_write":
|
|
659
|
+
"input": 5,
|
|
660
|
+
"output": 25,
|
|
661
|
+
"cache_read": 0.5,
|
|
662
|
+
"cache_write": 6.25
|
|
654
663
|
}
|
|
655
664
|
},
|
|
656
|
-
"claude-sonnet-4-
|
|
657
|
-
"id": "claude-sonnet-4-
|
|
658
|
-
"name": "Claude Sonnet 4.
|
|
659
|
-
"description": "Claude
|
|
665
|
+
"claude-sonnet-4-5": {
|
|
666
|
+
"id": "claude-sonnet-4-5",
|
|
667
|
+
"name": "Claude Sonnet 4.5 (latest)",
|
|
668
|
+
"description": "Balanced Claude model for coding, analysis, agent workflows, and cost control",
|
|
660
669
|
"family": "claude-sonnet",
|
|
661
670
|
"attachment": true,
|
|
662
671
|
"reasoning": true,
|
|
663
672
|
"reasoning_options": [
|
|
664
|
-
{
|
|
665
|
-
"type": "effort",
|
|
666
|
-
"values": [
|
|
667
|
-
"low",
|
|
668
|
-
"medium",
|
|
669
|
-
"high",
|
|
670
|
-
"max"
|
|
671
|
-
]
|
|
672
|
-
},
|
|
673
673
|
{
|
|
674
674
|
"type": "budget_tokens",
|
|
675
675
|
"min": 1024
|
|
@@ -678,9 +678,9 @@
|
|
|
678
678
|
"tool_call": true,
|
|
679
679
|
"structured_output": true,
|
|
680
680
|
"temperature": true,
|
|
681
|
-
"knowledge": "2025-
|
|
682
|
-
"release_date": "
|
|
683
|
-
"last_updated": "
|
|
681
|
+
"knowledge": "2025-07-31",
|
|
682
|
+
"release_date": "2025-09-29",
|
|
683
|
+
"last_updated": "2025-09-29",
|
|
684
684
|
"modalities": {
|
|
685
685
|
"input": [
|
|
686
686
|
"text",
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
"open_weights": false,
|
|
695
695
|
"limit": {
|
|
696
696
|
"context": 1000000,
|
|
697
|
-
"output":
|
|
697
|
+
"output": 64000
|
|
698
698
|
},
|
|
699
699
|
"cost": {
|
|
700
700
|
"input": 3,
|