Evolution API icon

Evolution API

Interact with Evolution API

Actions114

OpenAI → Get Models

AI-generated

Overview

This node interacts with the OpenAI API to fetch a list of available models. It is useful for scenarios where users need to retrieve and display or use the models provided by OpenAI for various AI tasks such as text generation, image generation, or other AI-powered functionalities.

Use Case Examples

  1. A user wants to list all available OpenAI models to select one for generating text completions.
  2. An automation workflow needs to dynamically fetch the latest OpenAI models to ensure it uses the most up-to-date AI capabilities.

Properties

Name Meaning
Instance Name The name of the OpenAI instance to use for the API call, allowing selection of a specific OpenAI environment or setup.
Credential ID The ID of the OpenAI credential to use for authenticating the API request to fetch models.

Output

JSON

  • models - An array of model objects returned by the OpenAI API, each representing an available AI model with its details.

Dependencies

  • OpenAI API credentials (API key) required for authentication.

Troubleshooting

  • If the node throws an error about unsupported operation, ensure the resource is set to 'OpenAI' and operation to 'Get Models'.
  • Authentication errors may occur if the provided Credential ID is invalid or lacks proper permissions; verify the API key and its access rights.
  • Network or API endpoint issues can cause failures; check internet connectivity and OpenAI service status.

Links

Discussion