@anolilab/ai-model-registry 1.3.0 → 1.4.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## @anolilab/ai-model-registry [1.4.0](https://github.com/anolilab/ai-models/compare/@anolilab/ai-model-registry@1.3.0...@anolilab/ai-model-registry@1.4.0) (2026-01-09)
2
+
3
+ ### Features
4
+
5
+ * **deps:** update dependencies and improve package configurations ([858afd8](https://github.com/anolilab/ai-models/commit/858afd894ee24e8abe9cbaa5f6d0d00dc76344ae))
6
+ * enhance AI model registry with new models and cost normalization ([b64800b](https://github.com/anolilab/ai-models/commit/b64800b47b7523c54652e0385571689e7b268232))
7
+ * enhance AI model registry with retirement information and update dependencies ([ec66750](https://github.com/anolilab/ai-models/commit/ec66750f8ca504fe12b3ca372b4051f220f97b05))
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update dependency @lobehub/icons-static-svg to ^1.63.0 ([#19](https://github.com/anolilab/ai-models/issues/19)) ([e932ae1](https://github.com/anolilab/ai-models/commit/e932ae18983628ad47abb7538567de6892a129dd))
12
+ * enhance AI model registry with new download scripts and cost formatting improvements ([8a6ff27](https://github.com/anolilab/ai-models/commit/8a6ff27697638865062bf1dbadc5395cd203ebd7))
13
+ * update API and improve output modality parsing ([36d197a](https://github.com/anolilab/ai-models/commit/36d197aaeb7e4495923428d469c27296b0f4b824))
14
+ * update package configurations and enhance README documentation ([4483be1](https://github.com/anolilab/ai-models/commit/4483be12f5a3d7c692e0ad06576e70f681e5e218))
15
+
16
+ ### Miscellaneous Chores
17
+
18
+ * add Prettier configuration and ignore files ([490f841](https://github.com/anolilab/ai-models/commit/490f841c983064f2143b14e5ebd6b21960aece5e))
19
+ * **deps:** update dependencies and package configurations ([b5b2005](https://github.com/anolilab/ai-models/commit/b5b20053824074ccf1981bccb38cc7dd4d1dd228))
20
+ * **deps:** update package dependencies and configurations ([1deefef](https://github.com/anolilab/ai-models/commit/1deefef4c1a400b018b687b7c3d4da88f7125ad5))
21
+
1
22
  ## @anolilab/ai-model-registry [1.3.0](https://github.com/anolilab/ai-models/compare/@anolilab/ai-model-registry@1.2.3...@anolilab/ai-model-registry@1.3.0) (2025-08-14)
2
23
 
3
24
  ### Features
package/README.md CHANGED
@@ -1,36 +1,54 @@
1
- # @anolilab/ai-model-registry
1
+ <!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
2
2
 
3
- [![npm version](https://badge.fury.io/js/@anolilab%2Fai-model-registry.svg)](https://badge.fury.io/js/@anolilab%2Fai-model-registry)
4
- [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
5
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.8+-blue.svg)](https://www.typescriptlang.org/)
3
+ <a href="https://www.anolilab.com/open-source" align="center">
6
4
 
7
- A comprehensive, unified registry for AI model providers and their metadata. This package provides a tree-shakable interface to access model information from 50+ AI providers including OpenAI, Anthropic, Google, Meta, Groq, and many others.
5
+ <img src="__assets__/package-og.svg" alt="ai-model-registry" />
8
6
 
9
- ## ✨ Features
7
+ </a>
10
8
 
11
- - **🔄 Unified Interface**: Access models from multiple providers through a single API
12
- - **🛡️ Type Safety**: Full TypeScript support with Zod schema validation
13
- - **📦 Tree Shaking**: Import only what you need to minimize bundle size
14
- - **💰 Rich Metadata**: Comprehensive model information including capabilities, pricing, and limits
15
- - **🔍 Powerful Search**: Advanced search and filtering capabilities across all models
16
- - **🔄 Auto-Sync**: Automatic data synchronization between models with the same ID
17
- - **💸 Pricing Integration**: Real-time pricing data from Helicone API (840+ models)
18
- - **📊 Provider Stats**: Detailed statistics and analytics
9
+ <h3 align="center">Unified registry for AI model providers and their metadata</h3>
19
10
 
20
- ## 📦 Installation
11
+ <!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
21
12
 
22
- ```bash
23
- # Using npm
13
+ <br />
14
+
15
+ <div align="center">
16
+
17
+ [![typescript-image][typescript-badge]][typescript-url]
18
+ [![apache licence][license-badge]][license]
19
+ [![npm downloads][npm-downloads-badge]][npm-downloads]
20
+ [![Chat][chat-badge]][chat]
21
+ [![PRs Welcome][prs-welcome-badge]][prs-welcome]
22
+
23
+ </div>
24
+
25
+ ---
26
+
27
+ <div align="center">
28
+ <p>
29
+ <sup>
30
+ Daniel Bannert's open source work is supported by the community on <a href="https://github.com/sponsors/prisis">GitHub Sponsors</a>
31
+ </sup>
32
+ </p>
33
+ </div>
34
+
35
+ ---
36
+
37
+ ## Install
38
+
39
+ ```sh
24
40
  npm install @anolilab/ai-model-registry
41
+ ```
25
42
 
26
- # Using yarn
43
+ ```sh
27
44
  yarn add @anolilab/ai-model-registry
45
+ ```
28
46
 
29
- # Using pnpm
47
+ ```sh
30
48
  pnpm add @anolilab/ai-model-registry
31
49
  ```
32
50
 
33
- ## 🚀 Quick Start
51
+ ## Usage
34
52
 
35
53
  ```typescript
36
54
  import { getProviders, getModelsByProvider, getModelById, searchModels, getAllModels } from "@anolilab/ai-model-registry";
@@ -62,7 +80,18 @@ const toolCallModels = searchModels({ tool_call: true });
62
80
  const allModels = getAllModels();
63
81
  ```
64
82
 
65
- ## 📚 API Reference
83
+ ## Features
84
+
85
+ - Unified interface to access models from multiple providers through a single API
86
+ - Full TypeScript support with Zod schema validation for type safety
87
+ - Tree shaking support - import only what you need to minimize bundle size
88
+ - Comprehensive model information including capabilities, pricing, and limits
89
+ - Advanced search and filtering capabilities across all models
90
+ - Automatic data synchronization between models with the same ID
91
+ - Real-time pricing data integration from Helicone API (840+ models)
92
+ - Detailed provider statistics and analytics
93
+
94
+ ## API Reference
66
95
 
67
96
  ### Core Functions
68
97
 
@@ -190,7 +219,7 @@ const streamingModels = searchModels({ streaming_supported: true });
190
219
  const previewModels = searchModels({ preview: true });
191
220
  ```
192
221
 
193
- ## 🏗️ Model Schema
222
+ ## Model Schema
194
223
 
195
224
  Each model follows a comprehensive schema with the following structure:
196
225
 
@@ -283,7 +312,7 @@ interface Model {
283
312
  }
284
313
  ```
285
314
 
286
- ## 🌳 Tree Shaking
315
+ ## Tree Shaking
287
316
 
288
317
  The package supports tree shaking, so you can import only what you need:
289
318
 
@@ -298,39 +327,126 @@ import { ModelSchema } from "@anolilab/ai-model-registry/schema";
298
327
  import { getIcon } from "@anolilab/ai-model-registry/icons";
299
328
  ```
300
329
 
301
- ## 🏢 Supported Providers
330
+ ## Supported Providers
302
331
 
303
332
  The registry includes models from 50+ providers:
304
333
 
305
334
  ### Major Providers
306
335
 
307
- - **OpenAI** (GPT-4, GPT-3.5, O1, O3, etc.)
308
- - **Anthropic** (Claude 3.5, Claude 3, Claude 2.1, etc.)
309
- - **Google** (Gemini 2.5, Gemini 1.5, PaLM, etc.)
310
- - **Meta** (Llama 3, Llama 2, Code Llama, etc.)
311
- - **Groq** (Various models with ultra-fast inference)
312
- - **DeepSeek** (DeepSeek R1, DeepSeek V3, etc.)
336
+ - OpenAI (GPT-4, GPT-3.5, O1, O3, etc.)
337
+ - Anthropic (Claude 3.5, Claude 3, Claude 2.1, etc.)
338
+ - Google (Gemini 2.5, Gemini 1.5, PaLM, etc.)
339
+ - Meta (Llama 3, Llama 2, Code Llama, etc.)
340
+ - Groq (Various models with ultra-fast inference)
341
+ - DeepSeek (DeepSeek R1, DeepSeek V3, etc.)
313
342
 
314
343
  ### Specialized Providers
315
344
 
316
- - **Mistral AI** (Mistral Large, Mixtral, etc.)
317
- - **Cohere** (Command R, Command A, etc.)
318
- - **Perplexity** (Sonar, Sonar Pro, etc.)
319
- - **Together AI** (Various open models)
320
- - **Fireworks AI** (Various models)
321
- - **Vercel** (v0 models)
345
+ - Mistral AI (Mistral Large, Mixtral, etc.)
346
+ - Cohere (Command R, Command A, etc.)
347
+ - Perplexity (Sonar, Sonar Pro, etc.)
348
+ - Together AI (Various open models)
349
+ - Fireworks AI (Various models)
350
+ - Vercel (v0 models)
322
351
 
323
352
  ### Open Source & Research
324
353
 
325
- - **HuggingFace** (Various hosted models)
326
- - **ModelScope** (Chinese models)
327
- - **OpenRouter** (Aggregated models)
328
- - **GitHub Copilot** (Code models)
329
- - **Azure** (OpenAI models)
354
+ - HuggingFace (Various hosted models)
355
+ - ModelScope (Chinese models)
356
+ - OpenRouter (Aggregated models)
357
+ - GitHub Copilot (Code models)
358
+ - Azure (OpenAI models)
330
359
 
331
360
  And many more...
332
361
 
333
- ## 🛠️ Development
362
+ ## Pricing Data Integration
363
+
364
+ This package automatically includes real-time pricing data from [Helicone's LLM Cost API](https://helicone.ai/api/llm-costs) during the aggregation process.
365
+
366
+ ### Features
367
+
368
+ - Automatic enrichment: Pricing data is automatically added during aggregation
369
+ - Smart matching: Uses multiple strategies to match models with pricing data
370
+ - Non-destructive: Preserves existing pricing data while filling in missing values
371
+ - Cost conversion: Automatically converts from per 1M tokens to per 1K tokens format
372
+ - 840+ models: Covers pricing for 840+ models across all major providers
373
+
374
+ ### Supported Pricing Providers
375
+
376
+ Helicone provides pricing data for models from:
377
+
378
+ - OpenAI (GPT-4, GPT-3.5, O1, O3, etc.)
379
+ - Anthropic (Claude models)
380
+ - Google (Gemini models)
381
+ - Meta (Llama models)
382
+ - Mistral (Mistral models)
383
+ - Groq (Various models)
384
+ - And many more...
385
+
386
+ ## Model Data Synchronization
387
+
388
+ The provider registry includes a powerful data synchronization system that automatically merges missing data between models with the same ID across different providers.
389
+
390
+ ### How It Works
391
+
392
+ 1. Groups models by ID: Finds all models with the same ID across different providers
393
+ 2. Calculates completeness scores: Evaluates how complete each model's data is (excluding cost fields)
394
+ 3. Uses the most complete model as base: Selects the model with the highest data completeness
395
+ 4. Merges missing data: Fills in missing fields from other models with the same ID
396
+ 5. Preserves cost data: Never overwrites existing cost information
397
+
398
+ ### Protected Fields
399
+
400
+ The following cost-related fields are never synchronized to preserve pricing accuracy:
401
+
402
+ - `cost` (entire cost object)
403
+ - `input` (input cost)
404
+ - `output` (output cost)
405
+ - `inputCacheHit` (cache hit pricing)
406
+ - `imageGeneration` (image generation pricing)
407
+ - `videoGeneration` (video generation pricing)
408
+
409
+ ### Example
410
+
411
+ If you have the same model (e.g., `gpt-4`) from multiple providers:
412
+
413
+ **OpenAI Provider:**
414
+
415
+ ```json
416
+ {
417
+ "id": "gpt-4",
418
+ "name": "GPT-4",
419
+ "cost": { "input": 0.03, "output": 0.06 },
420
+ "description": null,
421
+ "releaseDate": "2023-03-14"
422
+ }
423
+ ```
424
+
425
+ **Azure Provider:**
426
+
427
+ ```json
428
+ {
429
+ "id": "gpt-4",
430
+ "name": null,
431
+ "cost": { "input": 0.03, "output": 0.06 },
432
+ "description": "GPT-4 is a large multimodal model",
433
+ "releaseDate": null
434
+ }
435
+ ```
436
+
437
+ **Result after synchronization:**
438
+
439
+ ```json
440
+ {
441
+ "id": "gpt-4",
442
+ "name": "GPT-4",
443
+ "cost": { "input": 0.03, "output": 0.06 },
444
+ "description": "GPT-4 is a large multimodal model",
445
+ "releaseDate": "2023-03-14"
446
+ }
447
+ ```
448
+
449
+ ## Development
334
450
 
335
451
  ### Prerequisites
336
452
 
@@ -450,106 +566,15 @@ packages/ai-model-registry/
450
566
  └── icons/ # Provider icons
451
567
  ```
452
568
 
453
- ## 💰 Pricing Data Integration
454
-
455
- This package automatically includes real-time pricing data from [Helicone's LLM Cost API](https://helicone.ai/api/llm-costs) during the aggregation process.
456
-
457
- ### Features
458
-
459
- - **🔄 Automatic Enrichment**: Pricing data is automatically added during aggregation
460
- - **🎯 Smart Matching**: Uses multiple strategies to match models with pricing data
461
- - **🛡️ Non-Destructive**: Preserves existing pricing data while filling in missing values
462
- - **🔄 Cost Conversion**: Automatically converts from per 1M tokens to per 1K tokens format
463
- - **📊 840+ Models**: Covers pricing for 840+ models across all major providers
464
-
465
- ### Supported Pricing Providers
466
-
467
- Helicone provides pricing data for models from:
468
-
469
- - OpenAI (GPT-4, GPT-3.5, O1, O3, etc.)
470
- - Anthropic (Claude models)
471
- - Google (Gemini models)
472
- - Meta (Llama models)
473
- - Mistral (Mistral models)
474
- - Groq (Various models)
475
- - And many more...
476
-
477
- ### Usage
478
-
479
- ```bash
480
- # Aggregate all models with pricing data
481
- pnpm run aggregate
482
-
483
- # Build the package (includes aggregation with pricing)
484
- pnpm run build
485
- ```
486
-
487
- ## 🔄 Model Data Synchronization
488
-
489
- The provider registry includes a powerful data synchronization system that automatically merges missing data between models with the same ID across different providers.
490
-
491
- ### How It Works
492
-
493
- 1. **Groups models by ID**: Finds all models with the same ID across different providers
494
- 2. **Calculates completeness scores**: Evaluates how complete each model's data is (excluding cost fields)
495
- 3. **Uses the most complete model as base**: Selects the model with the highest data completeness
496
- 4. **Merges missing data**: Fills in missing fields from other models with the same ID
497
- 5. **Preserves cost data**: Never overwrites existing cost information
498
-
499
- ### Protected Fields
500
-
501
- The following cost-related fields are **never synchronized** to preserve pricing accuracy:
502
-
503
- - `cost` (entire cost object)
504
- - `input` (input cost)
505
- - `output` (output cost)
506
- - `inputCacheHit` (cache hit pricing)
507
- - `imageGeneration` (image generation pricing)
508
- - `videoGeneration` (video generation pricing)
509
-
510
- ### Example
511
-
512
- If you have the same model (e.g., `gpt-4`) from multiple providers:
513
-
514
- **OpenAI Provider:**
515
-
516
- ```json
517
- {
518
- "id": "gpt-4",
519
- "name": "GPT-4",
520
- "cost": { "input": 0.03, "output": 0.06 },
521
- "description": null,
522
- "releaseDate": "2023-03-14"
523
- }
524
- ```
525
-
526
- **Azure Provider:**
527
-
528
- ```json
529
- {
530
- "id": "gpt-4",
531
- "name": null,
532
- "cost": { "input": 0.03, "output": 0.06 },
533
- "description": "GPT-4 is a large multimodal model",
534
- "releaseDate": null
535
- }
536
- ```
569
+ ## Supported Node.js Versions
537
570
 
538
- **Result after synchronization:**
571
+ Libraries in this ecosystem make the best effort to track [Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).
539
572
 
540
- ```json
541
- {
542
- "id": "gpt-4",
543
- "name": "GPT-4",
544
- "cost": { "input": 0.03, "output": 0.06 },
545
- "description": "GPT-4 is a large multimodal model",
546
- "releaseDate": "2023-03-14"
547
- }
548
- ```
573
+ ## Contributing
549
574
 
550
- ## 🤝 Contributing
575
+ If you would like to help take a look at the [list of issues](https://github.com/anolilab/ai-models/issues) and check our [Contributing](.github/CONTRIBUTING.md) guide.
551
576
 
552
- We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
577
+ > **Note:** please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
553
578
 
554
579
  ### Adding New Providers
555
580
 
@@ -562,24 +587,29 @@ We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) f
562
587
 
563
588
  Please use our [Issue Tracker](https://github.com/anolilab/ai-models/issues) to report bugs or request features.
564
589
 
565
- ## 📄 License
590
+ ## Credits
566
591
 
567
- This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE.md) file for details.
592
+ - [Daniel Bannert](https://github.com/prisis)
593
+ - [All Contributors](https://github.com/anolilab/ai-models/graphs/contributors)
568
594
 
569
- ## 🙏 Acknowledgments
595
+ ## Made with ❤️ at Anolilab
570
596
 
571
- - [Helicone](https://helicone.ai/) for providing pricing data
572
- - [OpenRouter](https://openrouter.ai/) for reference data
573
- - All the AI providers for their amazing models
574
- - The open source community for inspiration and tools
597
+ This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
575
598
 
576
- ## 📞 Support
599
+ ## License
577
600
 
578
- - **Documentation**: [GitHub Wiki](https://github.com/anolilab/ai-models/wiki)
579
- - **Issues**: [GitHub Issues](https://github.com/anolilab/ai-models/issues)
580
- - **Discussions**: [GitHub Discussions](https://github.com/anolilab/ai-models/discussions)
581
- - **Email**: support@anolilab.com
601
+ The anolilab ai-model-registry is open-sourced software licensed under the [Apache License 2.0][license-url]
582
602
 
583
- ---
603
+ <!-- badges -->
584
604
 
585
- Made with ❤️ by [AnoliLab](https://anolilab.com)
605
+ [license-badge]: https://img.shields.io/badge/License-Apache--2.0-blue.svg?style=for-the-badge
606
+ [license]: https://github.com/anolilab/ai-models/blob/main/packages/ai-model-registry/LICENSE.md
607
+ [npm-downloads-badge]: https://img.shields.io/npm/dm/@anolilab/ai-model-registry?style=for-the-badge
608
+ [npm-downloads]: https://www.npmjs.com/package/@anolilab/ai-model-registry
609
+ [prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
610
+ [prs-welcome]: https://github.com/anolilab/ai-models/blob/main/.github/CONTRIBUTING.md
611
+ [chat-badge]: https://img.shields.io/discord/902465130518949899.svg?style=for-the-badge
612
+ [chat]: https://discord.gg/TtFJY8xkFK
613
+ [typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
614
+ [typescript-url]: https://www.typescriptlang.org/
615
+ [license-url]: LICENSE.md