Museai Model

A node to interact with a custom Museai model

Overview

This node allows users to interact with a custom Museai AI model by sending messages and receiving generated completions. It is useful for scenarios where you want to integrate AI-driven text generation or conversational capabilities into your workflows, such as generating creative content, answering questions, or automating chat responses.

For example, you can send a prompt message to the specified Museai model and receive a text completion based on that input. Adjusting the "Temperature" property lets you control how random or deterministic the output is, enabling fine-tuning of the creativity level in the responses.

Properties

Name Meaning
Model The identifier of the Museai model to use for generating the completion.
Message The input text message sent to the model for which a response is generated.
Temperature Controls randomness of the output; lower values produce more predictable results.

Output

The node outputs JSON data containing the generated text from the Museai model. The main field in the output JSON is:

  • output: A string representing the text generated by the model in response to the input message.

If the node is configured to return all data (returnAll parameter), it outputs the full raw response from the API instead of just the generated text.

The node does not output binary data.

Example output JSON:

{
  "output": "Generated text from the Museai model"
}

Dependencies

  • Requires an API key credential for authenticating with the Museai service.
  • The node makes HTTP POST requests to the Museai API endpoint URL provided in the credentials.
  • The user must configure the API token and base URL in the node's credential settings.

Troubleshooting

  • No content found in response: This error occurs if the API response does not contain any generated message content. Check that the model ID and message are valid and that the API service is operational.
  • Authentication errors: Ensure the API token credential is correctly set up and has the necessary permissions.
  • Network or request failures: Verify network connectivity and that the API URL is reachable.
  • If the node is set to continue on failure, errors will be returned in the output JSON under an error field instead of stopping execution.

Links and References

  • Museai Official Website (logo link from code)
  • Refer to Museai API documentation for details on model identifiers and request parameters (not provided in source).

Discussion