
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ai-model-hub
Advanced tools
AI-Model-Hub is a powerful utility that provides access to the latest AI model information. It allows you to easily retrieve details about AI models and their providers, making it a valuable tool for developers working with AI services.
Install the package using yarn:
yarn add ai-model-hub
Alternatively, you can install it using npm:
npm install ai-model-hub
Once installed, you can import and utilize the package to interact with the available models and providers.
import { modelHub, ModelHub, modelData } from 'ai-model-hub';
// Get a list of all available providers
const allProviders = modelHub.getAllProviderNames();
console.log('Available providers:', allProviders);
// Get details of a specific provider (case-insensitive)
const providerInfo = modelHub.getProviderInfo('provider_name');
console.log('Provider Info:', providerInfo);
// Get a list of all model names
const allModelNames = modelHub.getAllModelNames();
console.log('All model names:', allModelNames);
// Get model information by model name
const modelInfo = modelHub.getModelInfo('model_name');
console.log('Model Info:', modelInfo);
// Get model pricing information
const modelPrice = modelHub.getModelPrice('model_name');
console.log('Model Price:', modelPrice);
// Search for models using a keyword
const modelsWithKeyword = modelHub.getModelNamesByKeyword('keyword');
console.log('Models matching keyword:', modelsWithKeyword);
modelData (JSON Data)modelData contains the raw JSON data of all AI models and providers. You can use it directly if you need access to the underlying data structure.
import { modelData } from 'ai-model-hub';
// Access the raw JSON data
console.log('Raw model data:', modelData);
// Example: Iterate over all providers
modelData.forEach((provider) => {
console.log(`Provider: ${provider.provider}, Models: ${provider.models_list.length}`);
});
ModelHubgetModelList()
Retrieves the full list of providers.
const providerList = modelHub.getModelList();
getAllProviderNames()
Returns an array of all provider names.
const providerNames = modelHub.getAllProviderNames();
getAllModelNames()
Gets a flat array of all model names across providers.
const modelNames = modelHub.getAllModelNames();
getAllModelNamesGroupByProvider()
Retrieves all model names grouped by their provider.
const groupedModels = modelHub.getAllModelNamesGroupByProvider();
getProviderInfo(providerName: string)
Fetches detailed information about a specific provider (case-insensitive).
const providerInfo = modelHub.getProviderInfo('provider_name');
getAllModelNamesByProvider(providerName: string)
Gets the names of all models from a specific provider.
const modelsByProvider = modelHub.getAllModelNamesByProvider('provider_name');
getModelInfo(modelName: string)
Retrieves detailed information for a specific model by name.
const modelInfo = modelHub.getModelInfo('model_name');
getModelPrice(modelName: string)
Fetches the pricing information of a specific model.
const price = modelHub.getModelPrice('model_name');
getModelNamesByKeyword(keyword: string)
Searches models by a keyword and returns a list of matching model names.
const matchingModels = modelHub.getModelNamesByKeyword('keyword');
This project is licensed under the CC-BY-NC-ND-4.0 License.
You are free to share the work under the following terms:
For more details, please see the official license text.
FAQs
provide latest AI model information
We found that ai-model-hub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.