Mureka icon

Mureka

Interacts with the Mureka API to generate music via AI.

Actions9

Song → Generate

AI-generated

Overview

This node integrates with the Mureka API to generate AI-based music content, specifically focusing on songs in this context. For the Song - Generate operation, it creates a complete song by combining provided lyrics with an AI model that composes instrumental and vocal elements.

Typical use cases include:

  • Automatically generating full songs from user-provided lyrics.
  • Creating new musical pieces based on a textual prompt describing style or theme.
  • Enhancing songwriting workflows by quickly producing musical arrangements for given lyrics.

For example, a user can input their song lyrics along with a description of the desired style (e.g., "Embrace of Night / r&b, slow, passionate, male vocal") and select an AI model to generate a unique song matching those inputs.

Properties

Name Meaning
Prompt A textual description of the song's style and theme to guide the AI generation.
Lyrics The song lyrics to be used as the basis for the generated song.
Model The AI model to use for generation. Options: "Automatique" (auto), "Mureka 6".
Song Additional Fields Optional additional identifiers related to the song generation:
- Reference ID
- Vocal ID
- Melody ID

Notes on properties usage:

  • You must provide either a Prompt or at least one of the additional fields (Reference ID, Vocal ID, or Melody ID), but not both simultaneously.
  • If using additional fields, Melody ID cannot be combined with Reference ID or Vocal ID.
  • The Lyrics property is required and forms the core input for the song generation.

Output

The node outputs a JSON array where each item corresponds to the response from the Mureka API for the song generation request.

The JSON output typically contains:

  • Status and metadata about the generation task.
  • Generated song details such as IDs, URLs, or references to the created audio/music files.
  • Any relevant messages or error information from the API.

Binary data is not directly output by this node; instead, it returns metadata and URLs referencing generated audio content hosted externally.

Dependencies

  • Requires an active connection to the Mureka API via an API key credential configured in n8n.
  • Network access to https://api.mureka.ai endpoints.
  • Proper configuration of authentication credentials within n8n to authorize requests.

Troubleshooting

  • Error: "You must enter either 'prompt' or 'reference_id/vocal_id/melody_id'."
    This occurs if both prompt and additional fields are provided or neither is provided. To fix, supply only one type of input: either a prompt or the combination of reference/vocal/melody IDs.

  • Error: "'melody_id' cannot be used at the same time as 'reference_id' or 'vocal_id'."
    Ensure that when using melody_id, you do not also provide reference_id or vocal_id.

  • API Request Failures
    Check your API key credential and network connectivity. Also verify that the Mureka service is operational.

  • Empty or Unexpected Output
    Confirm that the lyrics and prompt inputs are correctly formatted and meaningful to the AI model.

Links and References

Discussion