?
generateMusic
Generate an audio file from provided instructions (text) using a music model.
mindstudio.generateMusic({ text }) → Result
Generates an audio track from a text description of the music you want, returning a hosted audio URL. For spoken voice rather than music, use textToSpeech.
Parameters
text
string
RequiredThe instructions (prompt) for the music generation
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
musicModelOverride
object
Optional model configuration override. Uses the workflow's default music model if not specified
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.generateMusic({ text: /* ... */ });