generate_music
Create music from text descriptions by specifying genre, mood, and instruments. Generate audio tracks with customizable duration and lyrics support.
Instructions
Generate music from text descriptions. Use list_models with category='audio' to discover available models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the music (genre, mood, instruments) | |
| model | No | Model ID (e.g., 'fal-ai/lyria2', 'fal-ai/stable-audio-25/text-to-audio'). Use list_models to see options. | fal-ai/lyria2 |
| duration_seconds | No | Duration in seconds | |
| negative_prompt | No | What to avoid in the audio (e.g., 'vocals, distortion, noise') | |
| lyrics_prompt | No | Lyrics for vocal music generation. Only used with models that support lyrics (e.g., MiniMax). Format: [verse]\nLyric line 1\n[chorus]\nChorus line |