AI Model Overview icon

AI Model Overview

Get detailed information about multiple AI models including pricing, max tokens, and supported parameters.

AI Model Overview

AI-generated

Overview

This node fetches detailed information about multiple AI models, including pricing, maximum tokens, and supported parameters, from the OpenRouter API. It is useful for users who want to get an overview of various AI models they might use, helping them compare features and capabilities. For example, a user can input a list of model IDs and receive structured data about each model's endpoints and details.

Use Case Examples

  1. A user inputs multiple AI model IDs to retrieve their pricing and token limits for comparison.
  2. A developer fetches supported parameters of different AI models to decide which to integrate into their application.

Properties

Name Meaning
Models A collection of AI models to fetch information about. Each model can be selected from a list or entered manually by its ID.
Output Format Determines how the output data is structured. Options include a single item with an array of model overviews, multiple items each representing a model overview, or a single item with objects labeled by model ID.

Output

JSON

  • model_overview - An array of model overview objects when output format is 'oneItem'.
    - An object containing the model overview data for the model labeled by its ID when output format is 'labeled'.
  • error - Error message if fetching model overview fails for a model.

Dependencies

  • Requires an API key credential for the OpenRouter API to authenticate HTTP requests.

Troubleshooting

  • If no models are specified, the node throws an error indicating that models must be provided.
  • If fetching model data fails, the node outputs an error message in the result depending on the output format.
  • Ensure the API key credential is valid and has access to the OpenRouter API to avoid authentication errors.

Links

Discussion