generate_music
Generate AI music from text description using VAP. Returns a task ID for async tracking. Cost: $0.68.
IMPORTANT: Send ONLY the music description. Do NOT include any instructions or meta-text.
Describe: genre, mood, instruments, tempo, vocal style (or specify instrumental).
Example prompt: "Upbeat indie folk song with acoustic guitar, warm vocals, and light percussion. Feel-good summer vibes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Music description (200-500 chars recommended). Include genre, mood, instruments, tempo. | |
| duration | No | Target duration in seconds (30-480, default 120 = 2 min) | |
| audio_format | No | Output format. WAV for enterprise/lossless (+$0.10) | mp3 |
| instrumental | No | Generate without vocals (instrumental only) | |
| loudness_preset | No | Loudness normalization. streaming=-14 LUFS (YouTube/Spotify), apple=-16 LUFS, broadcast=-23 LUFS (TV/EBU R128) | streaming |