Generate Music
The Generate Music block takes a text prompt and uses a music model to produce an audio file.
Generate audio files from text instructions
The Generate Music block takes a text prompt and uses a music model to produce an audio file. The primary input is a text field containing the instructions that describe the music to be generated — style, mood, tempo, instrumentation, or any other descriptive guidance the model should follow. An optional music model override allows you to specify model settings per block, or the block will fall back to the workflow's default music model if none is provided.
The block outputs a single field, audioUrl, which is a string containing the URL of the generated audio file. You can optionally specify a destination variable to store that URL for use in later steps of the workflow. There is also an intermediateAsset flag: when set to true, the generated audio file is created but kept out of the user-facing gallery, which is useful when the audio is an intermediate step rather than a final deliverable.
This block fits into workflows that need to produce original audio content programmatically — for example, generating background music based on user input, producing audio assets as part of a content creation pipeline, or dynamically scoring audio based on text descriptions collected earlier in the workflow. It can operate in foreground mode, where the audio is surfaced directly to the user, or in background mode, where the URL is captured in a variable for downstream processing.
What you can build
Real-world workflows powered by the Generate Music block.
Custom Background Music Generator
Accept a user's mood or theme description and generate a matching background music track to accompany their project or presentation.
Podcast Intro Creation
Generate a short intro or outro music clip based on a podcast's topic and tone, produced automatically as part of a content preparation workflow.
Game Audio Asset Pipeline
Produce music assets for different game scenes or levels by feeding scene descriptions into the block and storing the resulting audio URLs for later use.
Personalized Playlist Generation
Generate original music tracks tailored to a user's stated preferences, building a set of unique audio files stored as variables for playback.
Marketing Video Scoring
Automatically produce background music for marketing videos by passing a script summary or brand tone description as the generation prompt.
Meditation and Wellness Audio
Generate ambient or guided meditation music based on user-selected themes such as relaxation, focus, or sleep, delivered directly within the workflow interface.
Ready to add Generate Music to your workflow?
Get Started FreeCommon questions about Generate Music
What is the required input for the Generate Music block?
The only required input is the text field, which contains the prompt or instructions describing the music to be generated. All other fields — destination variable, intermediate asset flag, and model override — are optional.
What does the block return?
The block outputs a single field called audioUrl, which is a string containing the URL of the generated audio file.
How do I use the generated audio URL in later workflow steps?
You can specify a destinationVar value in the block's configuration. The audioUrl will be saved to that variable, making it available for downstream blocks in the workflow.
What does the intermediateAsset option do?
When intermediateAsset is set to true, the audio file is generated and a URL is produced, but the asset is hidden from the user-facing gallery. This is useful when the audio is an intermediate step in a larger workflow rather than a final output meant for the user.
What kinds of workflows is this block suited for?
This block fits into any workflow that needs to produce original audio content from text descriptions, such as content creation pipelines, personalized media generation, game asset production, or applications where users describe music they want generated.
Related capabilities
User Message
Send a message to an AI model and return the response, or echo a system message.
Generate Image
Generate an image from a text prompt using an AI model.
Generate Video
Generate a video from a text prompt using an AI model.
Generate Chart
Create a chart image using QuickChart (Chart.js) and return the URL.
Text to Speech
Generate an audio file from provided text using a speech model.
Generate LipSync
Generate a lip sync video from provided audio and image.
Add Generate Music to your workflow
Build powerful AI workflows with drag-and-drop blocks. No coding required.