Generate Music
xbrush_music_generateTurn text descriptions into music with XBrush AI. Specify model, duration, and exclusions to create custom audio tracks.
Instructions
Generate music from a text prompt using an XBrush music model (e.g. lyria2, lyria3, lyria3-pro). Submits async — generation typically takes tens of seconds to minutes. Poll with xbrush_get_request.
Args: prompt (string, required): Text description of the music. model (string, optional): Music model ID. Server default if omitted. duration (int, optional): Duration in seconds (1-120). negative_prompt (string, optional): Elements to exclude. seed (int, optional): Random seed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility. | |
| model | No | Music model ID (e.g. lyria2, lyria3, lyria3-pro). Optional — server picks a default. | |
| prompt | Yes | Text description of the music to generate. | |
| duration | No | Duration in seconds (1-120). Conservative upper bound; may be lifted by server. | |
| negative_prompt | No | Styles/elements to exclude from the generated music. |