llm.rb 14.0.0 → 15.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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +396 -1826
  3. data/README.md +596 -490
  4. data/bin/llm.rb +148 -72
  5. data/data/alibaba.json +1999 -0
  6. data/data/anthropic.json +205 -205
  7. data/data/bedrock.json +2171 -2114
  8. data/data/deepinfra.json +1143 -938
  9. data/data/deepseek.json +4 -5
  10. data/data/google.json +691 -779
  11. data/data/mistral.json +450 -450
  12. data/data/moonshot.json +100 -100
  13. data/data/openai.json +976 -976
  14. data/data/xai.json +193 -116
  15. data/data/zai.json +187 -187
  16. data/{resources → docs}/deepdive/advanced/cancellation.md +2 -2
  17. data/{resources → docs}/deepdive/advanced/compaction.md +5 -3
  18. data/{resources → docs}/deepdive/advanced/context.md +13 -0
  19. data/{resources → docs}/deepdive/advanced/guard.md +1 -1
  20. data/{resources/deepdive/fundamentals → docs/deepdive/features}/concurrency.md +6 -0
  21. data/{resources/deepdive/fundamentals → docs/deepdive/features}/repl.md +56 -2
  22. data/{resources → docs}/deepdive/fundamentals/agents.md +52 -1
  23. data/docs/deepdive/fundamentals/providers.md +159 -0
  24. data/{resources → docs}/deepdive/fundamentals/skills.md +5 -0
  25. data/{resources → docs}/deepdive/fundamentals/stream.md +36 -3
  26. data/{resources → docs}/deepdive/fundamentals/tools.md +87 -23
  27. data/{resources/deepdive/everything_else → docs/deepdive/reference}/cost.md +20 -10
  28. data/docs/deepdive/reference/model_registry.md +271 -0
  29. data/{resources/deepdive/advanced → docs/deepdive/reference}/tracer.md +7 -0
  30. data/{resources → docs}/deepdive.md +35 -27
  31. data/lib/llm/a2a/transport/http.rb +1 -1
  32. data/lib/llm/active_record/acts_as_llm.rb +19 -5
  33. data/lib/llm/agent.rb +62 -5
  34. data/lib/llm/context.rb +93 -46
  35. data/lib/llm/cost.rb +110 -51
  36. data/lib/llm/error.rb +7 -0
  37. data/lib/llm/function/array.rb +1 -1
  38. data/lib/llm/function/fork/task.rb +14 -1
  39. data/lib/llm/function/sequential/group.rb +20 -13
  40. data/lib/llm/function/sequential/task.rb +1 -8
  41. data/lib/llm/function.rb +5 -4
  42. data/lib/llm/message.rb +5 -4
  43. data/lib/llm/provider.rb +7 -0
  44. data/lib/llm/providers/alibaba/error_handler.rb +34 -0
  45. data/lib/llm/providers/alibaba/request_adapter.rb +13 -0
  46. data/lib/llm/providers/alibaba.rb +93 -0
  47. data/lib/llm/providers/anthropic.rb +0 -1
  48. data/lib/llm/providers/bedrock.rb +8 -1
  49. data/lib/llm/providers/deepseek/request_adapter.rb +2 -33
  50. data/lib/llm/providers/google.rb +0 -1
  51. data/lib/llm/providers/ollama.rb +0 -1
  52. data/lib/llm/providers/openai/responses.rb +0 -1
  53. data/lib/llm/providers/openai/schema.rb +37 -0
  54. data/lib/llm/providers/openai.rb +1 -2
  55. data/lib/llm/registry/model.rb +186 -0
  56. data/lib/llm/registry.rb +45 -14
  57. data/lib/llm/repl/bar.rb +11 -13
  58. data/lib/llm/repl/buffer.rb +1 -1
  59. data/lib/llm/repl/color.rb +8 -1
  60. data/lib/llm/repl/command.rb +12 -0
  61. data/lib/llm/repl/commands/model.rb +39 -0
  62. data/lib/llm/repl/input/cache.rb +45 -0
  63. data/lib/llm/repl/input/char.rb +2 -2
  64. data/lib/llm/repl/input.rb +86 -23
  65. data/lib/llm/repl/markdown.rb +25 -1
  66. data/lib/llm/repl/node.rb +7 -0
  67. data/lib/llm/repl/status.rb +17 -3
  68. data/lib/llm/repl/window.rb +91 -11
  69. data/lib/llm/repl.rb +18 -8
  70. data/lib/llm/sequel/plugin.rb +19 -5
  71. data/lib/llm/skill.rb +21 -8
  72. data/lib/llm/stream.rb +27 -0
  73. data/lib/llm/tool.rb +3 -5
  74. data/lib/llm/tools/rg.rb +2 -1
  75. data/lib/llm/transport/curb.rb +23 -3
  76. data/lib/llm/usage.rb +155 -9
  77. data/lib/llm/version.rb +1 -1
  78. data/lib/llm.rb +111 -29
  79. data/llm.gemspec +16 -11
  80. metadata +89 -35
  81. /data/{resources → docs}/deepdive/advanced/transformer.md +0 -0
  82. /data/{resources → docs}/deepdive/advanced/transports.md +0 -0
  83. /data/{resources/deepdive/fundamentals → docs/deepdive/features}/builtin_tools.md +0 -0
  84. /data/{resources/deepdive/fundamentals → docs/deepdive/features}/database.md +0 -0
  85. /data/{resources/deepdive/fundamentals → docs/deepdive/features}/embeddings.md +0 -0
  86. /data/{resources → docs}/deepdive/fundamentals/schema.md +0 -0
  87. /data/{resources/deepdive/everything_else → docs/deepdive/media}/audio.md +0 -0
  88. /data/{resources/deepdive/everything_else → docs/deepdive/media}/images.md +0 -0
  89. /data/{resources/deepdive/everything_else → docs/deepdive/media}/ocr.md +0 -0
  90. /data/{resources → docs}/deepdive/protocols/a2a.md +0 -0
  91. /data/{resources → docs}/deepdive/protocols/mcp.md +0 -0
  92. /data/{resources/deepdive/everything_else → docs/deepdive/reference}/object.md +0 -0
data/data/alibaba.json ADDED
@@ -0,0 +1,1999 @@
1
+ {
2
+ "id": "alibaba",
3
+ "env": [
4
+ "DASHSCOPE_API_KEY"
5
+ ],
6
+ "npm": "@ai-sdk/openai-compatible",
7
+ "api": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
8
+ "name": "Alibaba",
9
+ "doc": "https://www.alibabacloud.com/help/en/model-studio/models",
10
+ "models": {
11
+ "qwen2-5-vl-7b-instruct": {
12
+ "id": "qwen2-5-vl-7b-instruct",
13
+ "name": "Qwen2.5-VL 7B Instruct",
14
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
15
+ "family": "qwen",
16
+ "attachment": false,
17
+ "reasoning": false,
18
+ "tool_call": true,
19
+ "temperature": true,
20
+ "knowledge": "2024-04",
21
+ "release_date": "2024-09",
22
+ "last_updated": "2024-09",
23
+ "modalities": {
24
+ "input": [
25
+ "text",
26
+ "image"
27
+ ],
28
+ "output": [
29
+ "text"
30
+ ]
31
+ },
32
+ "open_weights": true,
33
+ "limit": {
34
+ "context": 131072,
35
+ "output": 8192
36
+ },
37
+ "cost": {
38
+ "input": 0.35,
39
+ "output": 1.05
40
+ }
41
+ },
42
+ "qwen3-vl-plus": {
43
+ "id": "qwen3-vl-plus",
44
+ "name": "Qwen3-VL Plus",
45
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
46
+ "family": "qwen",
47
+ "attachment": false,
48
+ "reasoning": true,
49
+ "reasoning_options": [
50
+ {
51
+ "type": "toggle"
52
+ },
53
+ {
54
+ "type": "budget_tokens"
55
+ }
56
+ ],
57
+ "tool_call": true,
58
+ "temperature": true,
59
+ "knowledge": "2025-04",
60
+ "release_date": "2025-09-23",
61
+ "last_updated": "2025-09-23",
62
+ "modalities": {
63
+ "input": [
64
+ "text",
65
+ "image"
66
+ ],
67
+ "output": [
68
+ "text"
69
+ ]
70
+ },
71
+ "open_weights": false,
72
+ "limit": {
73
+ "context": 262144,
74
+ "output": 32768
75
+ },
76
+ "cost": {
77
+ "input": 0.2,
78
+ "output": 1.6,
79
+ "reasoning": 4.8
80
+ }
81
+ },
82
+ "qwen3-coder-30b-a3b-instruct": {
83
+ "id": "qwen3-coder-30b-a3b-instruct",
84
+ "name": "Qwen3-Coder 30B-A3B Instruct",
85
+ "description": "Smaller Qwen coder for efficient local agents and repo-level fixes",
86
+ "family": "qwen",
87
+ "attachment": false,
88
+ "reasoning": false,
89
+ "tool_call": true,
90
+ "temperature": true,
91
+ "knowledge": "2025-04",
92
+ "release_date": "2025-04",
93
+ "last_updated": "2025-04",
94
+ "modalities": {
95
+ "input": [
96
+ "text"
97
+ ],
98
+ "output": [
99
+ "text"
100
+ ]
101
+ },
102
+ "open_weights": true,
103
+ "limit": {
104
+ "context": 262144,
105
+ "output": 65536
106
+ },
107
+ "cost": {
108
+ "input": 0.45,
109
+ "output": 2.25
110
+ }
111
+ },
112
+ "qwen3.7-max": {
113
+ "id": "qwen3.7-max",
114
+ "name": "Qwen3.7 Max",
115
+ "description": "Qwen frontier model tuned for agent frameworks, coding assistants, and long tasks",
116
+ "family": "qwen",
117
+ "attachment": false,
118
+ "reasoning": true,
119
+ "reasoning_options": [
120
+ {
121
+ "type": "toggle"
122
+ },
123
+ {
124
+ "type": "budget_tokens"
125
+ }
126
+ ],
127
+ "tool_call": true,
128
+ "temperature": true,
129
+ "release_date": "2026-05-21",
130
+ "last_updated": "2026-05-21",
131
+ "modalities": {
132
+ "input": [
133
+ "text"
134
+ ],
135
+ "output": [
136
+ "text"
137
+ ]
138
+ },
139
+ "open_weights": false,
140
+ "limit": {
141
+ "context": 1000000,
142
+ "output": 65536
143
+ },
144
+ "cost": {
145
+ "input": 2.5,
146
+ "output": 7.5,
147
+ "cache_read": 0.5,
148
+ "cache_write": 3.125
149
+ }
150
+ },
151
+ "qwen-turbo": {
152
+ "id": "qwen-turbo",
153
+ "name": "Qwen Turbo",
154
+ "description": "Efficient Qwen model for fast chat, extraction, and high-volume workloads",
155
+ "family": "qwen",
156
+ "attachment": false,
157
+ "reasoning": true,
158
+ "reasoning_options": [
159
+ {
160
+ "type": "toggle"
161
+ },
162
+ {
163
+ "type": "budget_tokens"
164
+ }
165
+ ],
166
+ "tool_call": true,
167
+ "temperature": true,
168
+ "knowledge": "2024-04",
169
+ "release_date": "2024-11-01",
170
+ "last_updated": "2025-04-28",
171
+ "modalities": {
172
+ "input": [
173
+ "text"
174
+ ],
175
+ "output": [
176
+ "text"
177
+ ]
178
+ },
179
+ "open_weights": false,
180
+ "limit": {
181
+ "context": 1000000,
182
+ "output": 16384
183
+ },
184
+ "cost": {
185
+ "input": 0.05,
186
+ "output": 0.2,
187
+ "reasoning": 0.5
188
+ }
189
+ },
190
+ "qwen-omni-turbo": {
191
+ "id": "qwen-omni-turbo",
192
+ "name": "Qwen-Omni Turbo",
193
+ "description": "Qwen omni model for text, vision, audio, and multimodal agent tasks",
194
+ "family": "qwen",
195
+ "attachment": false,
196
+ "reasoning": false,
197
+ "tool_call": true,
198
+ "temperature": true,
199
+ "knowledge": "2024-04",
200
+ "release_date": "2025-01-19",
201
+ "last_updated": "2025-03-26",
202
+ "modalities": {
203
+ "input": [
204
+ "text",
205
+ "image",
206
+ "audio",
207
+ "video"
208
+ ],
209
+ "output": [
210
+ "text",
211
+ "audio"
212
+ ]
213
+ },
214
+ "open_weights": false,
215
+ "limit": {
216
+ "context": 32768,
217
+ "output": 2048
218
+ },
219
+ "cost": {
220
+ "input": 0.07,
221
+ "output": 0.27,
222
+ "input_audio": 4.44,
223
+ "output_audio": 8.89
224
+ }
225
+ },
226
+ "qwen-vl-max": {
227
+ "id": "qwen-vl-max",
228
+ "name": "Qwen-VL Max",
229
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
230
+ "family": "qwen",
231
+ "attachment": false,
232
+ "reasoning": false,
233
+ "tool_call": true,
234
+ "temperature": true,
235
+ "knowledge": "2024-04",
236
+ "release_date": "2024-04-08",
237
+ "last_updated": "2025-08-13",
238
+ "modalities": {
239
+ "input": [
240
+ "text",
241
+ "image"
242
+ ],
243
+ "output": [
244
+ "text"
245
+ ]
246
+ },
247
+ "open_weights": false,
248
+ "limit": {
249
+ "context": 131072,
250
+ "output": 8192
251
+ },
252
+ "cost": {
253
+ "input": 0.8,
254
+ "output": 3.2
255
+ }
256
+ },
257
+ "qwen3-32b": {
258
+ "id": "qwen3-32b",
259
+ "name": "Qwen3 32B",
260
+ "description": "Dense open Qwen model for self-hosted chat, reasoning, and coding",
261
+ "family": "qwen",
262
+ "attachment": false,
263
+ "reasoning": true,
264
+ "reasoning_options": [
265
+ {
266
+ "type": "toggle"
267
+ },
268
+ {
269
+ "type": "budget_tokens"
270
+ }
271
+ ],
272
+ "tool_call": true,
273
+ "temperature": true,
274
+ "knowledge": "2025-04",
275
+ "release_date": "2025-04",
276
+ "last_updated": "2025-04",
277
+ "modalities": {
278
+ "input": [
279
+ "text"
280
+ ],
281
+ "output": [
282
+ "text"
283
+ ]
284
+ },
285
+ "open_weights": true,
286
+ "limit": {
287
+ "context": 131072,
288
+ "output": 16384
289
+ },
290
+ "cost": {
291
+ "input": 0.7,
292
+ "output": 2.8,
293
+ "reasoning": 8.4
294
+ }
295
+ },
296
+ "qwen3-vl-30b-a3b": {
297
+ "id": "qwen3-vl-30b-a3b",
298
+ "name": "Qwen3-VL 30B-A3B",
299
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
300
+ "family": "qwen",
301
+ "attachment": false,
302
+ "reasoning": true,
303
+ "reasoning_options": [
304
+ {
305
+ "type": "budget_tokens"
306
+ }
307
+ ],
308
+ "tool_call": true,
309
+ "temperature": true,
310
+ "knowledge": "2025-04",
311
+ "release_date": "2025-04",
312
+ "last_updated": "2025-04",
313
+ "modalities": {
314
+ "input": [
315
+ "text",
316
+ "image"
317
+ ],
318
+ "output": [
319
+ "text"
320
+ ]
321
+ },
322
+ "open_weights": true,
323
+ "limit": {
324
+ "context": 131072,
325
+ "output": 32768
326
+ },
327
+ "cost": {
328
+ "input": 0.2,
329
+ "output": 0.8,
330
+ "reasoning": 2.4
331
+ }
332
+ },
333
+ "qwen3-235b-a22b": {
334
+ "id": "qwen3-235b-a22b",
335
+ "name": "Qwen3 235B-A22B",
336
+ "description": "Large open Qwen MoE for multilingual reasoning, coding, and tool use",
337
+ "family": "qwen",
338
+ "attachment": false,
339
+ "reasoning": true,
340
+ "reasoning_options": [
341
+ {
342
+ "type": "toggle"
343
+ },
344
+ {
345
+ "type": "budget_tokens"
346
+ }
347
+ ],
348
+ "tool_call": true,
349
+ "temperature": true,
350
+ "knowledge": "2025-04",
351
+ "release_date": "2025-04",
352
+ "last_updated": "2025-04",
353
+ "modalities": {
354
+ "input": [
355
+ "text"
356
+ ],
357
+ "output": [
358
+ "text"
359
+ ]
360
+ },
361
+ "open_weights": true,
362
+ "limit": {
363
+ "context": 131072,
364
+ "output": 16384
365
+ },
366
+ "cost": {
367
+ "input": 0.7,
368
+ "output": 2.8,
369
+ "reasoning": 8.4
370
+ }
371
+ },
372
+ "qwen-max": {
373
+ "id": "qwen-max",
374
+ "name": "Qwen Max",
375
+ "description": "Flagship Qwen model for complex reasoning, coding, and agentic workflows",
376
+ "family": "qwen",
377
+ "attachment": false,
378
+ "reasoning": false,
379
+ "tool_call": true,
380
+ "temperature": true,
381
+ "knowledge": "2024-04",
382
+ "release_date": "2024-04-03",
383
+ "last_updated": "2025-01-25",
384
+ "modalities": {
385
+ "input": [
386
+ "text"
387
+ ],
388
+ "output": [
389
+ "text"
390
+ ]
391
+ },
392
+ "open_weights": false,
393
+ "limit": {
394
+ "context": 32768,
395
+ "output": 8192
396
+ },
397
+ "cost": {
398
+ "input": 1.6,
399
+ "output": 6.4
400
+ }
401
+ },
402
+ "qwen3.5-35b-a3b": {
403
+ "id": "qwen3.5-35b-a3b",
404
+ "name": "Qwen3.5 35B-A3B",
405
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
406
+ "family": "qwen",
407
+ "attachment": true,
408
+ "reasoning": true,
409
+ "reasoning_options": [
410
+ {
411
+ "type": "toggle"
412
+ },
413
+ {
414
+ "type": "budget_tokens"
415
+ }
416
+ ],
417
+ "tool_call": true,
418
+ "structured_output": true,
419
+ "temperature": true,
420
+ "release_date": "2026-02-23",
421
+ "last_updated": "2026-02-23",
422
+ "modalities": {
423
+ "input": [
424
+ "text",
425
+ "image",
426
+ "video",
427
+ "audio"
428
+ ],
429
+ "output": [
430
+ "text"
431
+ ]
432
+ },
433
+ "open_weights": true,
434
+ "limit": {
435
+ "context": 262144,
436
+ "output": 65536
437
+ },
438
+ "cost": {
439
+ "input": 0.25,
440
+ "output": 2
441
+ }
442
+ },
443
+ "qwen3.5-397b-a17b": {
444
+ "id": "qwen3.5-397b-a17b",
445
+ "name": "Qwen3.5 397B-A17B",
446
+ "description": "Large open Qwen multimodal MoE for visual agents and long technical tasks",
447
+ "family": "qwen",
448
+ "attachment": true,
449
+ "reasoning": true,
450
+ "reasoning_options": [
451
+ {
452
+ "type": "toggle"
453
+ },
454
+ {
455
+ "type": "budget_tokens"
456
+ }
457
+ ],
458
+ "tool_call": true,
459
+ "structured_output": true,
460
+ "temperature": true,
461
+ "release_date": "2026-02-15",
462
+ "last_updated": "2026-02-15",
463
+ "modalities": {
464
+ "input": [
465
+ "text",
466
+ "image",
467
+ "video",
468
+ "audio"
469
+ ],
470
+ "output": [
471
+ "text"
472
+ ]
473
+ },
474
+ "open_weights": true,
475
+ "limit": {
476
+ "context": 262144,
477
+ "output": 65536
478
+ },
479
+ "cost": {
480
+ "input": 0.6,
481
+ "output": 3.6
482
+ }
483
+ },
484
+ "qwen-plus": {
485
+ "id": "qwen-plus",
486
+ "name": "Qwen Plus",
487
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
488
+ "family": "qwen",
489
+ "attachment": false,
490
+ "reasoning": true,
491
+ "reasoning_options": [
492
+ {
493
+ "type": "toggle"
494
+ },
495
+ {
496
+ "type": "budget_tokens"
497
+ }
498
+ ],
499
+ "tool_call": true,
500
+ "temperature": true,
501
+ "knowledge": "2024-04",
502
+ "release_date": "2024-01-25",
503
+ "last_updated": "2025-09-11",
504
+ "modalities": {
505
+ "input": [
506
+ "text"
507
+ ],
508
+ "output": [
509
+ "text"
510
+ ]
511
+ },
512
+ "open_weights": false,
513
+ "limit": {
514
+ "context": 1000000,
515
+ "output": 32768
516
+ },
517
+ "cost": {
518
+ "input": 0.4,
519
+ "output": 1.2,
520
+ "reasoning": 4
521
+ }
522
+ },
523
+ "qwen3.5-plus": {
524
+ "id": "qwen3.5-plus",
525
+ "name": "Qwen3.5 Plus",
526
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
527
+ "family": "qwen",
528
+ "attachment": false,
529
+ "reasoning": true,
530
+ "reasoning_options": [
531
+ {
532
+ "type": "toggle"
533
+ },
534
+ {
535
+ "type": "budget_tokens"
536
+ }
537
+ ],
538
+ "tool_call": true,
539
+ "temperature": true,
540
+ "knowledge": "2025-04",
541
+ "release_date": "2026-02-16",
542
+ "last_updated": "2026-02-16",
543
+ "modalities": {
544
+ "input": [
545
+ "text",
546
+ "image",
547
+ "video"
548
+ ],
549
+ "output": [
550
+ "text"
551
+ ]
552
+ },
553
+ "open_weights": false,
554
+ "limit": {
555
+ "context": 1000000,
556
+ "output": 65536
557
+ },
558
+ "cost": {
559
+ "input": 0.4,
560
+ "output": 2.4,
561
+ "reasoning": 2.4
562
+ }
563
+ },
564
+ "qwen2-5-vl-72b-instruct": {
565
+ "id": "qwen2-5-vl-72b-instruct",
566
+ "name": "Qwen2.5-VL 72B Instruct",
567
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
568
+ "family": "qwen",
569
+ "attachment": false,
570
+ "reasoning": false,
571
+ "tool_call": true,
572
+ "temperature": true,
573
+ "knowledge": "2024-04",
574
+ "release_date": "2024-09",
575
+ "last_updated": "2024-09",
576
+ "modalities": {
577
+ "input": [
578
+ "text",
579
+ "image"
580
+ ],
581
+ "output": [
582
+ "text"
583
+ ]
584
+ },
585
+ "open_weights": true,
586
+ "limit": {
587
+ "context": 131072,
588
+ "output": 8192
589
+ },
590
+ "cost": {
591
+ "input": 2.8,
592
+ "output": 8.4
593
+ }
594
+ },
595
+ "qwen3-livetranslate-flash-realtime": {
596
+ "id": "qwen3-livetranslate-flash-realtime",
597
+ "name": "Qwen3-LiveTranslate Flash Realtime",
598
+ "description": "Speech generation model for controllable voice, narration, and audio delivery",
599
+ "family": "qwen",
600
+ "attachment": false,
601
+ "reasoning": false,
602
+ "tool_call": false,
603
+ "temperature": true,
604
+ "knowledge": "2024-04",
605
+ "release_date": "2025-09-22",
606
+ "last_updated": "2025-09-22",
607
+ "modalities": {
608
+ "input": [
609
+ "text",
610
+ "image",
611
+ "audio",
612
+ "video"
613
+ ],
614
+ "output": [
615
+ "text",
616
+ "audio"
617
+ ]
618
+ },
619
+ "open_weights": false,
620
+ "limit": {
621
+ "context": 53248,
622
+ "output": 4096
623
+ },
624
+ "cost": {
625
+ "input": 10,
626
+ "output": 10,
627
+ "input_audio": 10,
628
+ "output_audio": 38
629
+ }
630
+ },
631
+ "qwen3-coder-flash": {
632
+ "id": "qwen3-coder-flash",
633
+ "name": "Qwen3 Coder Flash",
634
+ "description": "Qwen coding model for software agents, repository edits, and code reasoning",
635
+ "family": "qwen",
636
+ "attachment": false,
637
+ "reasoning": false,
638
+ "tool_call": true,
639
+ "temperature": true,
640
+ "knowledge": "2025-04",
641
+ "release_date": "2025-07-28",
642
+ "last_updated": "2025-07-28",
643
+ "modalities": {
644
+ "input": [
645
+ "text"
646
+ ],
647
+ "output": [
648
+ "text"
649
+ ]
650
+ },
651
+ "open_weights": false,
652
+ "limit": {
653
+ "context": 1000000,
654
+ "output": 65536
655
+ },
656
+ "cost": {
657
+ "input": 0.3,
658
+ "output": 1.5
659
+ }
660
+ },
661
+ "qwen3.6-max-preview": {
662
+ "id": "qwen3.6-max-preview",
663
+ "name": "Qwen3.6 Max Preview",
664
+ "description": "Flagship Qwen model for complex reasoning, coding, and agentic workflows",
665
+ "family": "qwen",
666
+ "attachment": false,
667
+ "reasoning": true,
668
+ "reasoning_options": [
669
+ {
670
+ "type": "toggle"
671
+ },
672
+ {
673
+ "type": "budget_tokens"
674
+ }
675
+ ],
676
+ "tool_call": true,
677
+ "temperature": true,
678
+ "knowledge": "2025-04",
679
+ "release_date": "2026-04-20",
680
+ "last_updated": "2026-04-20",
681
+ "modalities": {
682
+ "input": [
683
+ "text"
684
+ ],
685
+ "output": [
686
+ "text"
687
+ ]
688
+ },
689
+ "open_weights": false,
690
+ "limit": {
691
+ "context": 262144,
692
+ "output": 65536
693
+ },
694
+ "cost": {
695
+ "input": 1.3,
696
+ "output": 7.8,
697
+ "cache_read": 0.13,
698
+ "cache_write": 1.625
699
+ }
700
+ },
701
+ "qwen3.8-max": {
702
+ "id": "qwen3.8-max",
703
+ "name": "Qwen3.8 Max",
704
+ "description": "2.4-trillion-parameter MoE flagship for coding, professional work, multimodal understanding, and long-horizon agentic workflows",
705
+ "family": "qwen",
706
+ "attachment": true,
707
+ "reasoning": true,
708
+ "reasoning_options": [
709
+ {
710
+ "type": "toggle"
711
+ },
712
+ {
713
+ "type": "effort",
714
+ "values": [
715
+ "low",
716
+ "medium",
717
+ "xhigh"
718
+ ]
719
+ },
720
+ {
721
+ "type": "budget_tokens",
722
+ "min": 0,
723
+ "max": 262144
724
+ }
725
+ ],
726
+ "tool_call": true,
727
+ "interleaved": {
728
+ "field": "reasoning_content"
729
+ },
730
+ "structured_output": true,
731
+ "temperature": true,
732
+ "release_date": "2026-08-03",
733
+ "last_updated": "2026-08-03",
734
+ "modalities": {
735
+ "input": [
736
+ "text",
737
+ "image",
738
+ "video",
739
+ "pdf"
740
+ ],
741
+ "output": [
742
+ "text"
743
+ ]
744
+ },
745
+ "open_weights": false,
746
+ "limit": {
747
+ "context": 1000000,
748
+ "output": 131072
749
+ },
750
+ "cost": {
751
+ "input": 2,
752
+ "output": 6,
753
+ "cache_read": 0.25,
754
+ "cache_write": 2.5
755
+ }
756
+ },
757
+ "qwen3.7-plus": {
758
+ "id": "qwen3.7-plus",
759
+ "name": "Qwen3.7 Plus",
760
+ "description": "Multimodal Qwen workhorse for long-context agents, visual inputs, and coding",
761
+ "family": "qwen",
762
+ "attachment": false,
763
+ "reasoning": true,
764
+ "reasoning_options": [
765
+ {
766
+ "type": "toggle"
767
+ },
768
+ {
769
+ "type": "budget_tokens"
770
+ }
771
+ ],
772
+ "tool_call": true,
773
+ "temperature": true,
774
+ "knowledge": "2025-04",
775
+ "release_date": "2026-06-02",
776
+ "last_updated": "2026-06-04",
777
+ "modalities": {
778
+ "input": [
779
+ "text",
780
+ "image",
781
+ "video"
782
+ ],
783
+ "output": [
784
+ "text"
785
+ ]
786
+ },
787
+ "open_weights": false,
788
+ "limit": {
789
+ "context": 1000000,
790
+ "output": 65536
791
+ },
792
+ "cost": {
793
+ "input": 0.5,
794
+ "output": 3,
795
+ "cache_read": 0.05,
796
+ "cache_write": 0.625,
797
+ "tiers": [
798
+ {
799
+ "input": 2,
800
+ "output": 6,
801
+ "cache_read": 0.2,
802
+ "cache_write": 2.5,
803
+ "tier": {
804
+ "type": "context",
805
+ "size": 256000
806
+ }
807
+ }
808
+ ],
809
+ "context_over_200k": {
810
+ "input": 2,
811
+ "output": 6,
812
+ "cache_read": 0.2,
813
+ "cache_write": 2.5
814
+ }
815
+ }
816
+ },
817
+ "qwen3-vl-235b-a22b": {
818
+ "id": "qwen3-vl-235b-a22b",
819
+ "name": "Qwen3-VL 235B-A22B",
820
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
821
+ "family": "qwen",
822
+ "attachment": false,
823
+ "reasoning": true,
824
+ "reasoning_options": [
825
+ {
826
+ "type": "budget_tokens"
827
+ }
828
+ ],
829
+ "tool_call": true,
830
+ "temperature": true,
831
+ "knowledge": "2025-04",
832
+ "release_date": "2025-04",
833
+ "last_updated": "2025-04",
834
+ "modalities": {
835
+ "input": [
836
+ "text",
837
+ "image"
838
+ ],
839
+ "output": [
840
+ "text"
841
+ ]
842
+ },
843
+ "open_weights": true,
844
+ "limit": {
845
+ "context": 131072,
846
+ "output": 32768
847
+ },
848
+ "cost": {
849
+ "input": 0.7,
850
+ "output": 2.8,
851
+ "reasoning": 8.4
852
+ }
853
+ },
854
+ "qwen-vl-ocr": {
855
+ "id": "qwen-vl-ocr",
856
+ "name": "Qwen-VL OCR",
857
+ "description": "OCR model for extracting structured text from documents and screenshots",
858
+ "family": "qwen",
859
+ "attachment": false,
860
+ "reasoning": false,
861
+ "tool_call": false,
862
+ "temperature": true,
863
+ "knowledge": "2024-04",
864
+ "release_date": "2024-10-28",
865
+ "last_updated": "2025-04-13",
866
+ "modalities": {
867
+ "input": [
868
+ "text",
869
+ "image"
870
+ ],
871
+ "output": [
872
+ "text"
873
+ ]
874
+ },
875
+ "open_weights": false,
876
+ "limit": {
877
+ "context": 34096,
878
+ "output": 4096
879
+ },
880
+ "cost": {
881
+ "input": 0.72,
882
+ "output": 0.72
883
+ }
884
+ },
885
+ "qwen2-5-72b-instruct": {
886
+ "id": "qwen2-5-72b-instruct",
887
+ "name": "Qwen2.5 72B Instruct",
888
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
889
+ "family": "qwen",
890
+ "attachment": false,
891
+ "reasoning": false,
892
+ "tool_call": true,
893
+ "temperature": true,
894
+ "knowledge": "2024-04",
895
+ "release_date": "2024-09",
896
+ "last_updated": "2024-09",
897
+ "modalities": {
898
+ "input": [
899
+ "text"
900
+ ],
901
+ "output": [
902
+ "text"
903
+ ]
904
+ },
905
+ "open_weights": true,
906
+ "limit": {
907
+ "context": 131072,
908
+ "output": 8192
909
+ },
910
+ "cost": {
911
+ "input": 1.4,
912
+ "output": 5.6
913
+ }
914
+ },
915
+ "qwen3-14b": {
916
+ "id": "qwen3-14b",
917
+ "name": "Qwen3 14B",
918
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
919
+ "family": "qwen",
920
+ "attachment": false,
921
+ "reasoning": true,
922
+ "reasoning_options": [
923
+ {
924
+ "type": "toggle"
925
+ },
926
+ {
927
+ "type": "budget_tokens"
928
+ }
929
+ ],
930
+ "tool_call": true,
931
+ "temperature": true,
932
+ "knowledge": "2025-04",
933
+ "release_date": "2025-04",
934
+ "last_updated": "2025-04",
935
+ "modalities": {
936
+ "input": [
937
+ "text"
938
+ ],
939
+ "output": [
940
+ "text"
941
+ ]
942
+ },
943
+ "open_weights": true,
944
+ "limit": {
945
+ "context": 131072,
946
+ "output": 8192
947
+ },
948
+ "cost": {
949
+ "input": 0.35,
950
+ "output": 1.4,
951
+ "reasoning": 4.2
952
+ }
953
+ },
954
+ "qwen-mt-turbo": {
955
+ "id": "qwen-mt-turbo",
956
+ "name": "Qwen-MT Turbo",
957
+ "description": "Translation model for multilingual conversion, localization, and cross-language workflows",
958
+ "family": "qwen",
959
+ "attachment": false,
960
+ "reasoning": false,
961
+ "tool_call": false,
962
+ "temperature": true,
963
+ "knowledge": "2024-04",
964
+ "release_date": "2025-01",
965
+ "last_updated": "2025-01",
966
+ "modalities": {
967
+ "input": [
968
+ "text"
969
+ ],
970
+ "output": [
971
+ "text"
972
+ ]
973
+ },
974
+ "open_weights": false,
975
+ "limit": {
976
+ "context": 16384,
977
+ "output": 8192
978
+ },
979
+ "cost": {
980
+ "input": 0.16,
981
+ "output": 0.49
982
+ }
983
+ },
984
+ "qwen3-next-80b-a3b-thinking": {
985
+ "id": "qwen3-next-80b-a3b-thinking",
986
+ "name": "Qwen3-Next 80B-A3B (Thinking)",
987
+ "description": "Efficient Qwen thinking model for local reasoning, math, and coding agents",
988
+ "family": "qwen",
989
+ "attachment": false,
990
+ "reasoning": true,
991
+ "reasoning_options": [
992
+ {
993
+ "type": "budget_tokens"
994
+ }
995
+ ],
996
+ "tool_call": true,
997
+ "temperature": true,
998
+ "knowledge": "2025-04",
999
+ "release_date": "2025-09",
1000
+ "last_updated": "2025-09",
1001
+ "modalities": {
1002
+ "input": [
1003
+ "text"
1004
+ ],
1005
+ "output": [
1006
+ "text"
1007
+ ]
1008
+ },
1009
+ "open_weights": true,
1010
+ "limit": {
1011
+ "context": 131072,
1012
+ "output": 32768
1013
+ },
1014
+ "cost": {
1015
+ "input": 0.5,
1016
+ "output": 6
1017
+ }
1018
+ },
1019
+ "qwen3-coder-480b-a35b-instruct": {
1020
+ "id": "qwen3-coder-480b-a35b-instruct",
1021
+ "name": "Qwen3-Coder 480B-A35B Instruct",
1022
+ "description": "Open Qwen coding heavyweight for repository reasoning and agentic engineering",
1023
+ "family": "qwen",
1024
+ "attachment": false,
1025
+ "reasoning": false,
1026
+ "tool_call": true,
1027
+ "temperature": true,
1028
+ "knowledge": "2025-04",
1029
+ "release_date": "2025-04",
1030
+ "last_updated": "2025-04",
1031
+ "modalities": {
1032
+ "input": [
1033
+ "text"
1034
+ ],
1035
+ "output": [
1036
+ "text"
1037
+ ]
1038
+ },
1039
+ "open_weights": true,
1040
+ "limit": {
1041
+ "context": 262144,
1042
+ "output": 65536
1043
+ },
1044
+ "cost": {
1045
+ "input": 1.5,
1046
+ "output": 7.5
1047
+ }
1048
+ },
1049
+ "qwen3-omni-flash": {
1050
+ "id": "qwen3-omni-flash",
1051
+ "name": "Qwen3-Omni Flash",
1052
+ "description": "Qwen omni model for text, vision, audio, and multimodal agent tasks",
1053
+ "family": "qwen",
1054
+ "attachment": false,
1055
+ "reasoning": true,
1056
+ "reasoning_options": [
1057
+ {
1058
+ "type": "toggle"
1059
+ }
1060
+ ],
1061
+ "tool_call": true,
1062
+ "temperature": true,
1063
+ "knowledge": "2024-04",
1064
+ "release_date": "2025-09-15",
1065
+ "last_updated": "2025-09-15",
1066
+ "modalities": {
1067
+ "input": [
1068
+ "text",
1069
+ "image",
1070
+ "audio",
1071
+ "video"
1072
+ ],
1073
+ "output": [
1074
+ "text",
1075
+ "audio"
1076
+ ]
1077
+ },
1078
+ "open_weights": false,
1079
+ "limit": {
1080
+ "context": 65536,
1081
+ "output": 16384
1082
+ },
1083
+ "cost": {
1084
+ "input": 0.43,
1085
+ "output": 1.66,
1086
+ "input_audio": 3.81,
1087
+ "output_audio": 15.11
1088
+ }
1089
+ },
1090
+ "qwen-flash": {
1091
+ "id": "qwen-flash",
1092
+ "name": "Qwen Flash",
1093
+ "description": "Efficient Qwen model for fast chat, extraction, and high-volume workloads",
1094
+ "family": "qwen",
1095
+ "attachment": false,
1096
+ "reasoning": true,
1097
+ "reasoning_options": [
1098
+ {
1099
+ "type": "toggle"
1100
+ },
1101
+ {
1102
+ "type": "budget_tokens"
1103
+ }
1104
+ ],
1105
+ "tool_call": true,
1106
+ "temperature": true,
1107
+ "knowledge": "2024-04",
1108
+ "release_date": "2025-07-28",
1109
+ "last_updated": "2025-07-28",
1110
+ "modalities": {
1111
+ "input": [
1112
+ "text"
1113
+ ],
1114
+ "output": [
1115
+ "text"
1116
+ ]
1117
+ },
1118
+ "open_weights": false,
1119
+ "limit": {
1120
+ "context": 1000000,
1121
+ "output": 32768
1122
+ },
1123
+ "cost": {
1124
+ "input": 0.05,
1125
+ "output": 0.4
1126
+ }
1127
+ },
1128
+ "qwen3-8b": {
1129
+ "id": "qwen3-8b",
1130
+ "name": "Qwen3 8B",
1131
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
1132
+ "family": "qwen",
1133
+ "attachment": false,
1134
+ "reasoning": true,
1135
+ "reasoning_options": [
1136
+ {
1137
+ "type": "toggle"
1138
+ },
1139
+ {
1140
+ "type": "budget_tokens"
1141
+ }
1142
+ ],
1143
+ "tool_call": true,
1144
+ "temperature": true,
1145
+ "knowledge": "2025-04",
1146
+ "release_date": "2025-04",
1147
+ "last_updated": "2025-04",
1148
+ "modalities": {
1149
+ "input": [
1150
+ "text"
1151
+ ],
1152
+ "output": [
1153
+ "text"
1154
+ ]
1155
+ },
1156
+ "open_weights": true,
1157
+ "limit": {
1158
+ "context": 131072,
1159
+ "output": 8192
1160
+ },
1161
+ "cost": {
1162
+ "input": 0.18,
1163
+ "output": 0.7,
1164
+ "reasoning": 2.1
1165
+ }
1166
+ },
1167
+ "qwen3-max": {
1168
+ "id": "qwen3-max",
1169
+ "name": "Qwen3 Max",
1170
+ "description": "Flagship Qwen3 model for coding agents, complex reasoning, and tool use",
1171
+ "family": "qwen",
1172
+ "attachment": false,
1173
+ "reasoning": false,
1174
+ "tool_call": true,
1175
+ "temperature": true,
1176
+ "knowledge": "2025-04",
1177
+ "release_date": "2025-09-23",
1178
+ "last_updated": "2025-09-23",
1179
+ "modalities": {
1180
+ "input": [
1181
+ "text"
1182
+ ],
1183
+ "output": [
1184
+ "text"
1185
+ ]
1186
+ },
1187
+ "open_weights": false,
1188
+ "limit": {
1189
+ "context": 262144,
1190
+ "output": 65536
1191
+ },
1192
+ "cost": {
1193
+ "input": 1.2,
1194
+ "output": 6
1195
+ }
1196
+ },
1197
+ "glm-5.2": {
1198
+ "id": "glm-5.2",
1199
+ "name": "GLM-5.2",
1200
+ "description": "Open flagship GLM for long-horizon coding agents and million-token context work",
1201
+ "family": "glm",
1202
+ "attachment": false,
1203
+ "reasoning": true,
1204
+ "reasoning_options": [
1205
+ {
1206
+ "type": "effort",
1207
+ "values": [
1208
+ "none",
1209
+ "minimal",
1210
+ "low",
1211
+ "medium",
1212
+ "high",
1213
+ "xhigh",
1214
+ "max"
1215
+ ]
1216
+ }
1217
+ ],
1218
+ "tool_call": true,
1219
+ "interleaved": {
1220
+ "field": "reasoning_content"
1221
+ },
1222
+ "structured_output": true,
1223
+ "temperature": true,
1224
+ "release_date": "2026-06-13",
1225
+ "last_updated": "2026-06-13",
1226
+ "modalities": {
1227
+ "input": [
1228
+ "text"
1229
+ ],
1230
+ "output": [
1231
+ "text"
1232
+ ]
1233
+ },
1234
+ "open_weights": true,
1235
+ "limit": {
1236
+ "context": 1000000,
1237
+ "output": 131072
1238
+ },
1239
+ "cost": {
1240
+ "input": 1.4,
1241
+ "output": 4.4,
1242
+ "cache_read": 0.28,
1243
+ "cache_write": 0
1244
+ }
1245
+ },
1246
+ "qwen2-5-omni-7b": {
1247
+ "id": "qwen2-5-omni-7b",
1248
+ "name": "Qwen2.5-Omni 7B",
1249
+ "description": "Qwen omni model for text, vision, audio, and multimodal agent tasks",
1250
+ "family": "qwen",
1251
+ "attachment": false,
1252
+ "reasoning": false,
1253
+ "tool_call": true,
1254
+ "temperature": true,
1255
+ "knowledge": "2024-04",
1256
+ "release_date": "2024-12",
1257
+ "last_updated": "2024-12",
1258
+ "modalities": {
1259
+ "input": [
1260
+ "text",
1261
+ "image",
1262
+ "audio",
1263
+ "video"
1264
+ ],
1265
+ "output": [
1266
+ "text",
1267
+ "audio"
1268
+ ]
1269
+ },
1270
+ "open_weights": true,
1271
+ "limit": {
1272
+ "context": 32768,
1273
+ "output": 2048
1274
+ },
1275
+ "cost": {
1276
+ "input": 0.1,
1277
+ "output": 0.4,
1278
+ "input_audio": 6.76
1279
+ }
1280
+ },
1281
+ "qwen3.6-35b-a3b": {
1282
+ "id": "qwen3.6-35b-a3b",
1283
+ "name": "Qwen3.6 35B-A3B",
1284
+ "description": "Open multimodal Qwen MoE for local agents that need vision, audio, and code",
1285
+ "family": "qwen",
1286
+ "attachment": true,
1287
+ "reasoning": true,
1288
+ "reasoning_options": [
1289
+ {
1290
+ "type": "toggle"
1291
+ },
1292
+ {
1293
+ "type": "budget_tokens"
1294
+ }
1295
+ ],
1296
+ "tool_call": true,
1297
+ "structured_output": true,
1298
+ "temperature": true,
1299
+ "release_date": "2026-04-17",
1300
+ "last_updated": "2026-04-17",
1301
+ "modalities": {
1302
+ "input": [
1303
+ "text",
1304
+ "image",
1305
+ "video",
1306
+ "audio"
1307
+ ],
1308
+ "output": [
1309
+ "text"
1310
+ ]
1311
+ },
1312
+ "open_weights": true,
1313
+ "limit": {
1314
+ "context": 262144,
1315
+ "output": 65536
1316
+ },
1317
+ "cost": {
1318
+ "input": 0.248,
1319
+ "output": 1.485
1320
+ }
1321
+ },
1322
+ "qvq-max": {
1323
+ "id": "qvq-max",
1324
+ "name": "QVQ Max",
1325
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
1326
+ "family": "qvq",
1327
+ "attachment": false,
1328
+ "reasoning": true,
1329
+ "reasoning_options": [],
1330
+ "tool_call": true,
1331
+ "temperature": true,
1332
+ "knowledge": "2024-04",
1333
+ "release_date": "2025-03-25",
1334
+ "last_updated": "2025-03-25",
1335
+ "modalities": {
1336
+ "input": [
1337
+ "text",
1338
+ "image"
1339
+ ],
1340
+ "output": [
1341
+ "text"
1342
+ ]
1343
+ },
1344
+ "open_weights": false,
1345
+ "limit": {
1346
+ "context": 131072,
1347
+ "output": 8192
1348
+ },
1349
+ "cost": {
1350
+ "input": 1.2,
1351
+ "output": 4.8
1352
+ }
1353
+ },
1354
+ "qwen3.6-27b": {
1355
+ "id": "qwen3.6-27b",
1356
+ "name": "Qwen3.6 27B",
1357
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
1358
+ "family": "qwen",
1359
+ "attachment": true,
1360
+ "reasoning": true,
1361
+ "reasoning_options": [
1362
+ {
1363
+ "type": "toggle"
1364
+ },
1365
+ {
1366
+ "type": "budget_tokens"
1367
+ }
1368
+ ],
1369
+ "tool_call": true,
1370
+ "structured_output": true,
1371
+ "temperature": true,
1372
+ "release_date": "2026-04-22",
1373
+ "last_updated": "2026-04-22",
1374
+ "modalities": {
1375
+ "input": [
1376
+ "text",
1377
+ "image",
1378
+ "video",
1379
+ "audio"
1380
+ ],
1381
+ "output": [
1382
+ "text"
1383
+ ]
1384
+ },
1385
+ "open_weights": true,
1386
+ "limit": {
1387
+ "context": 262144,
1388
+ "output": 65536
1389
+ },
1390
+ "cost": {
1391
+ "input": 0.6,
1392
+ "output": 3.6
1393
+ }
1394
+ },
1395
+ "qwen3-next-80b-a3b-instruct": {
1396
+ "id": "qwen3-next-80b-a3b-instruct",
1397
+ "name": "Qwen3-Next 80B-A3B Instruct",
1398
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
1399
+ "family": "qwen",
1400
+ "attachment": false,
1401
+ "reasoning": false,
1402
+ "tool_call": true,
1403
+ "temperature": true,
1404
+ "knowledge": "2025-04",
1405
+ "release_date": "2025-09",
1406
+ "last_updated": "2025-09",
1407
+ "modalities": {
1408
+ "input": [
1409
+ "text"
1410
+ ],
1411
+ "output": [
1412
+ "text"
1413
+ ]
1414
+ },
1415
+ "open_weights": true,
1416
+ "limit": {
1417
+ "context": 131072,
1418
+ "output": 32768
1419
+ },
1420
+ "cost": {
1421
+ "input": 0.5,
1422
+ "output": 2
1423
+ }
1424
+ },
1425
+ "qwen3-omni-flash-realtime": {
1426
+ "id": "qwen3-omni-flash-realtime",
1427
+ "name": "Qwen3-Omni Flash Realtime",
1428
+ "description": "Qwen omni model for text, vision, audio, and multimodal agent tasks",
1429
+ "family": "qwen",
1430
+ "attachment": false,
1431
+ "reasoning": false,
1432
+ "tool_call": true,
1433
+ "temperature": true,
1434
+ "knowledge": "2024-04",
1435
+ "release_date": "2025-09-15",
1436
+ "last_updated": "2025-09-15",
1437
+ "modalities": {
1438
+ "input": [
1439
+ "text",
1440
+ "image",
1441
+ "audio",
1442
+ "video"
1443
+ ],
1444
+ "output": [
1445
+ "text",
1446
+ "audio"
1447
+ ]
1448
+ },
1449
+ "open_weights": false,
1450
+ "limit": {
1451
+ "context": 65536,
1452
+ "output": 16384
1453
+ },
1454
+ "cost": {
1455
+ "input": 0.52,
1456
+ "output": 1.99,
1457
+ "input_audio": 4.57,
1458
+ "output_audio": 18.13
1459
+ }
1460
+ },
1461
+ "qwen3.6-plus": {
1462
+ "id": "qwen3.6-plus",
1463
+ "name": "Qwen3.6 Plus",
1464
+ "description": "Earlier Qwen multimodal workhorse for million-token agent and document tasks",
1465
+ "family": "qwen",
1466
+ "attachment": false,
1467
+ "reasoning": true,
1468
+ "reasoning_options": [
1469
+ {
1470
+ "type": "toggle"
1471
+ },
1472
+ {
1473
+ "type": "budget_tokens"
1474
+ }
1475
+ ],
1476
+ "tool_call": true,
1477
+ "temperature": true,
1478
+ "knowledge": "2025-04",
1479
+ "release_date": "2026-04-02",
1480
+ "last_updated": "2026-04-02",
1481
+ "modalities": {
1482
+ "input": [
1483
+ "text",
1484
+ "image",
1485
+ "video"
1486
+ ],
1487
+ "output": [
1488
+ "text"
1489
+ ]
1490
+ },
1491
+ "open_weights": false,
1492
+ "limit": {
1493
+ "context": 1000000,
1494
+ "output": 65536
1495
+ },
1496
+ "cost": {
1497
+ "input": 0.5,
1498
+ "output": 3,
1499
+ "cache_read": 0.05,
1500
+ "cache_write": 0.625,
1501
+ "tiers": [
1502
+ {
1503
+ "input": 2,
1504
+ "output": 6,
1505
+ "cache_read": 0.2,
1506
+ "cache_write": 2.5,
1507
+ "tier": {
1508
+ "type": "context",
1509
+ "size": 256000
1510
+ }
1511
+ }
1512
+ ],
1513
+ "context_over_200k": {
1514
+ "input": 2,
1515
+ "output": 6,
1516
+ "cache_read": 0.2,
1517
+ "cache_write": 2.5
1518
+ }
1519
+ }
1520
+ },
1521
+ "qwen2-5-14b-instruct": {
1522
+ "id": "qwen2-5-14b-instruct",
1523
+ "name": "Qwen2.5 14B Instruct",
1524
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
1525
+ "family": "qwen",
1526
+ "attachment": false,
1527
+ "reasoning": false,
1528
+ "tool_call": true,
1529
+ "temperature": true,
1530
+ "knowledge": "2024-04",
1531
+ "release_date": "2024-09",
1532
+ "last_updated": "2024-09",
1533
+ "modalities": {
1534
+ "input": [
1535
+ "text"
1536
+ ],
1537
+ "output": [
1538
+ "text"
1539
+ ]
1540
+ },
1541
+ "open_weights": true,
1542
+ "limit": {
1543
+ "context": 131072,
1544
+ "output": 8192
1545
+ },
1546
+ "cost": {
1547
+ "input": 0.35,
1548
+ "output": 1.4
1549
+ }
1550
+ },
1551
+ "qwen-mt-plus": {
1552
+ "id": "qwen-mt-plus",
1553
+ "name": "Qwen-MT Plus",
1554
+ "description": "Translation model for multilingual conversion, localization, and cross-language workflows",
1555
+ "family": "qwen",
1556
+ "attachment": false,
1557
+ "reasoning": false,
1558
+ "tool_call": false,
1559
+ "temperature": true,
1560
+ "knowledge": "2024-04",
1561
+ "release_date": "2025-01",
1562
+ "last_updated": "2025-01",
1563
+ "modalities": {
1564
+ "input": [
1565
+ "text"
1566
+ ],
1567
+ "output": [
1568
+ "text"
1569
+ ]
1570
+ },
1571
+ "open_weights": false,
1572
+ "limit": {
1573
+ "context": 16384,
1574
+ "output": 8192
1575
+ },
1576
+ "cost": {
1577
+ "input": 2.46,
1578
+ "output": 7.37
1579
+ }
1580
+ },
1581
+ "qwen-plus-character-ja": {
1582
+ "id": "qwen-plus-character-ja",
1583
+ "name": "Qwen Plus Character (Japanese)",
1584
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
1585
+ "family": "qwen",
1586
+ "attachment": false,
1587
+ "reasoning": false,
1588
+ "tool_call": true,
1589
+ "temperature": true,
1590
+ "knowledge": "2024-04",
1591
+ "release_date": "2024-01",
1592
+ "last_updated": "2024-01",
1593
+ "modalities": {
1594
+ "input": [
1595
+ "text"
1596
+ ],
1597
+ "output": [
1598
+ "text"
1599
+ ]
1600
+ },
1601
+ "open_weights": false,
1602
+ "limit": {
1603
+ "context": 8192,
1604
+ "output": 512
1605
+ },
1606
+ "cost": {
1607
+ "input": 0.5,
1608
+ "output": 1.4
1609
+ }
1610
+ },
1611
+ "qwen2-5-7b-instruct": {
1612
+ "id": "qwen2-5-7b-instruct",
1613
+ "name": "Qwen2.5 7B Instruct",
1614
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
1615
+ "family": "qwen",
1616
+ "attachment": false,
1617
+ "reasoning": false,
1618
+ "tool_call": true,
1619
+ "temperature": true,
1620
+ "knowledge": "2024-04",
1621
+ "release_date": "2024-09",
1622
+ "last_updated": "2024-09",
1623
+ "modalities": {
1624
+ "input": [
1625
+ "text"
1626
+ ],
1627
+ "output": [
1628
+ "text"
1629
+ ]
1630
+ },
1631
+ "open_weights": true,
1632
+ "limit": {
1633
+ "context": 131072,
1634
+ "output": 8192
1635
+ },
1636
+ "cost": {
1637
+ "input": 0.175,
1638
+ "output": 0.7
1639
+ }
1640
+ },
1641
+ "qwen3.5-27b": {
1642
+ "id": "qwen3.5-27b",
1643
+ "name": "Qwen3.5 27B",
1644
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
1645
+ "family": "qwen",
1646
+ "attachment": true,
1647
+ "reasoning": true,
1648
+ "reasoning_options": [
1649
+ {
1650
+ "type": "toggle"
1651
+ },
1652
+ {
1653
+ "type": "budget_tokens"
1654
+ }
1655
+ ],
1656
+ "tool_call": true,
1657
+ "structured_output": true,
1658
+ "temperature": true,
1659
+ "release_date": "2026-02-23",
1660
+ "last_updated": "2026-02-23",
1661
+ "modalities": {
1662
+ "input": [
1663
+ "text",
1664
+ "image",
1665
+ "video",
1666
+ "audio"
1667
+ ],
1668
+ "output": [
1669
+ "text"
1670
+ ]
1671
+ },
1672
+ "open_weights": true,
1673
+ "limit": {
1674
+ "context": 262144,
1675
+ "output": 65536
1676
+ },
1677
+ "cost": {
1678
+ "input": 0.3,
1679
+ "output": 2.4
1680
+ }
1681
+ },
1682
+ "qwq-plus": {
1683
+ "id": "qwq-plus",
1684
+ "name": "QwQ Plus",
1685
+ "description": "Qwen reasoning model for deliberate problem solving, math, and coding",
1686
+ "family": "qwen",
1687
+ "attachment": false,
1688
+ "reasoning": true,
1689
+ "reasoning_options": [],
1690
+ "tool_call": true,
1691
+ "temperature": true,
1692
+ "knowledge": "2024-04",
1693
+ "release_date": "2025-03-05",
1694
+ "last_updated": "2025-03-05",
1695
+ "modalities": {
1696
+ "input": [
1697
+ "text"
1698
+ ],
1699
+ "output": [
1700
+ "text"
1701
+ ]
1702
+ },
1703
+ "open_weights": false,
1704
+ "limit": {
1705
+ "context": 131072,
1706
+ "output": 8192
1707
+ },
1708
+ "cost": {
1709
+ "input": 0.8,
1710
+ "output": 2.4
1711
+ }
1712
+ },
1713
+ "qwen3.5-122b-a10b": {
1714
+ "id": "qwen3.5-122b-a10b",
1715
+ "name": "Qwen3.5 122B-A10B",
1716
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
1717
+ "family": "qwen",
1718
+ "attachment": true,
1719
+ "reasoning": true,
1720
+ "reasoning_options": [
1721
+ {
1722
+ "type": "toggle"
1723
+ },
1724
+ {
1725
+ "type": "budget_tokens"
1726
+ }
1727
+ ],
1728
+ "tool_call": true,
1729
+ "structured_output": true,
1730
+ "temperature": true,
1731
+ "release_date": "2026-02-23",
1732
+ "last_updated": "2026-02-23",
1733
+ "modalities": {
1734
+ "input": [
1735
+ "text",
1736
+ "image",
1737
+ "video",
1738
+ "audio"
1739
+ ],
1740
+ "output": [
1741
+ "text"
1742
+ ]
1743
+ },
1744
+ "open_weights": true,
1745
+ "limit": {
1746
+ "context": 262144,
1747
+ "output": 65536
1748
+ },
1749
+ "cost": {
1750
+ "input": 0.4,
1751
+ "output": 3.2
1752
+ }
1753
+ },
1754
+ "qwen3-coder-plus": {
1755
+ "id": "qwen3-coder-plus",
1756
+ "name": "Qwen3 Coder Plus",
1757
+ "description": "Hosted Qwen coder for software agents, repo edits, and long-context code",
1758
+ "family": "qwen",
1759
+ "attachment": false,
1760
+ "reasoning": false,
1761
+ "tool_call": true,
1762
+ "temperature": true,
1763
+ "knowledge": "2025-04",
1764
+ "release_date": "2025-07-23",
1765
+ "last_updated": "2025-07-23",
1766
+ "modalities": {
1767
+ "input": [
1768
+ "text"
1769
+ ],
1770
+ "output": [
1771
+ "text"
1772
+ ]
1773
+ },
1774
+ "open_weights": true,
1775
+ "limit": {
1776
+ "context": 1048576,
1777
+ "output": 65536
1778
+ },
1779
+ "cost": {
1780
+ "input": 1,
1781
+ "output": 5
1782
+ }
1783
+ },
1784
+ "qwen-omni-turbo-realtime": {
1785
+ "id": "qwen-omni-turbo-realtime",
1786
+ "name": "Qwen-Omni Turbo Realtime",
1787
+ "description": "Qwen omni model for text, vision, audio, and multimodal agent tasks",
1788
+ "family": "qwen",
1789
+ "attachment": false,
1790
+ "reasoning": false,
1791
+ "tool_call": true,
1792
+ "temperature": true,
1793
+ "knowledge": "2024-04",
1794
+ "release_date": "2025-05-08",
1795
+ "last_updated": "2025-05-08",
1796
+ "modalities": {
1797
+ "input": [
1798
+ "text",
1799
+ "image",
1800
+ "audio"
1801
+ ],
1802
+ "output": [
1803
+ "text",
1804
+ "audio"
1805
+ ]
1806
+ },
1807
+ "open_weights": false,
1808
+ "limit": {
1809
+ "context": 32768,
1810
+ "output": 2048
1811
+ },
1812
+ "cost": {
1813
+ "input": 0.27,
1814
+ "output": 1.07,
1815
+ "input_audio": 4.44,
1816
+ "output_audio": 8.89
1817
+ }
1818
+ },
1819
+ "deepseek-v4-flash-0731": {
1820
+ "id": "deepseek-v4-flash-0731",
1821
+ "name": "DeepSeek V4 Flash 0731",
1822
+ "description": "Official DeepSeek V4 Flash release with enhanced agentic capabilities and integrated DSpark speculative decoding",
1823
+ "family": "deepseek-flash",
1824
+ "attachment": false,
1825
+ "reasoning": true,
1826
+ "reasoning_options": [
1827
+ {
1828
+ "type": "toggle"
1829
+ },
1830
+ {
1831
+ "type": "effort",
1832
+ "values": [
1833
+ "high",
1834
+ "max"
1835
+ ]
1836
+ }
1837
+ ],
1838
+ "tool_call": true,
1839
+ "interleaved": {
1840
+ "field": "reasoning_content"
1841
+ },
1842
+ "structured_output": true,
1843
+ "temperature": true,
1844
+ "knowledge": "2025-05",
1845
+ "release_date": "2026-07-31",
1846
+ "last_updated": "2026-07-31",
1847
+ "modalities": {
1848
+ "input": [
1849
+ "text"
1850
+ ],
1851
+ "output": [
1852
+ "text"
1853
+ ]
1854
+ },
1855
+ "open_weights": true,
1856
+ "limit": {
1857
+ "context": 1000000,
1858
+ "output": 384000
1859
+ },
1860
+ "cost": {
1861
+ "input": 0.2,
1862
+ "output": 0.4,
1863
+ "cache_read": 0.04
1864
+ }
1865
+ },
1866
+ "qwen3-asr-flash": {
1867
+ "id": "qwen3-asr-flash",
1868
+ "name": "Qwen3-ASR Flash",
1869
+ "description": "Speech transcription model for accurate audio-to-text and captioning workflows",
1870
+ "family": "qwen",
1871
+ "attachment": false,
1872
+ "reasoning": false,
1873
+ "tool_call": false,
1874
+ "temperature": false,
1875
+ "knowledge": "2024-04",
1876
+ "release_date": "2025-09-08",
1877
+ "last_updated": "2025-09-08",
1878
+ "modalities": {
1879
+ "input": [
1880
+ "audio"
1881
+ ],
1882
+ "output": [
1883
+ "text"
1884
+ ]
1885
+ },
1886
+ "open_weights": false,
1887
+ "limit": {
1888
+ "context": 53248,
1889
+ "output": 4096
1890
+ },
1891
+ "cost": {
1892
+ "input": 0.035,
1893
+ "output": 0.035
1894
+ }
1895
+ },
1896
+ "qwen2-5-32b-instruct": {
1897
+ "id": "qwen2-5-32b-instruct",
1898
+ "name": "Qwen2.5 32B Instruct",
1899
+ "description": "Qwen instruction model for multilingual chat, reasoning, and tool use",
1900
+ "family": "qwen",
1901
+ "attachment": false,
1902
+ "reasoning": false,
1903
+ "tool_call": true,
1904
+ "temperature": true,
1905
+ "knowledge": "2024-04",
1906
+ "release_date": "2024-09",
1907
+ "last_updated": "2024-09",
1908
+ "modalities": {
1909
+ "input": [
1910
+ "text"
1911
+ ],
1912
+ "output": [
1913
+ "text"
1914
+ ]
1915
+ },
1916
+ "open_weights": true,
1917
+ "limit": {
1918
+ "context": 131072,
1919
+ "output": 8192
1920
+ },
1921
+ "cost": {
1922
+ "input": 0.7,
1923
+ "output": 2.8
1924
+ }
1925
+ },
1926
+ "qwen-vl-plus": {
1927
+ "id": "qwen-vl-plus",
1928
+ "name": "Qwen-VL Plus",
1929
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
1930
+ "family": "qwen",
1931
+ "attachment": false,
1932
+ "reasoning": false,
1933
+ "tool_call": true,
1934
+ "temperature": true,
1935
+ "knowledge": "2024-04",
1936
+ "release_date": "2024-01-25",
1937
+ "last_updated": "2025-08-15",
1938
+ "modalities": {
1939
+ "input": [
1940
+ "text",
1941
+ "image"
1942
+ ],
1943
+ "output": [
1944
+ "text"
1945
+ ]
1946
+ },
1947
+ "open_weights": false,
1948
+ "limit": {
1949
+ "context": 131072,
1950
+ "output": 8192
1951
+ },
1952
+ "cost": {
1953
+ "input": 0.21,
1954
+ "output": 0.63
1955
+ }
1956
+ },
1957
+ "qwen3.6-flash": {
1958
+ "id": "qwen3.6-flash",
1959
+ "name": "Qwen3.6 Flash",
1960
+ "description": "Qwen vision-language model for visual reasoning, documents, and agent tasks",
1961
+ "family": "qwen3.6",
1962
+ "attachment": true,
1963
+ "reasoning": true,
1964
+ "reasoning_options": [
1965
+ {
1966
+ "type": "toggle"
1967
+ },
1968
+ {
1969
+ "type": "budget_tokens"
1970
+ }
1971
+ ],
1972
+ "tool_call": true,
1973
+ "structured_output": true,
1974
+ "temperature": true,
1975
+ "release_date": "2026-04-27",
1976
+ "last_updated": "2026-04-27",
1977
+ "modalities": {
1978
+ "input": [
1979
+ "text",
1980
+ "image",
1981
+ "video"
1982
+ ],
1983
+ "output": [
1984
+ "text"
1985
+ ]
1986
+ },
1987
+ "open_weights": false,
1988
+ "limit": {
1989
+ "context": 1000000,
1990
+ "output": 65536
1991
+ },
1992
+ "cost": {
1993
+ "input": 0.1875,
1994
+ "output": 1.125,
1995
+ "cache_write": 0.234375
1996
+ }
1997
+ }
1998
+ }
1999
+ }