Generate music
generate_musicCompose music or sound from a text prompt via Poe music bots, specifying genre, mood, tempo, and instruments; save generated audio locally and return file paths and URLs.
Instructions
Compose music or sound from a text prompt with a Poe music bot (default: Lyria; others include ElevenLabs-Music, Stable-Audio-2.5, MiniMax music bots). Describe genre, mood, tempo and instruments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Poe bot name, e.g. Lyria, ElevenLabs-Music | |
| prompt | Yes | Genre, mood, tempo, instruments, lyrics if supported | |
| output_dir | No | Folder to save files in. Defaults to /root/poe-media | |
| parameters | No | Extra bot-specific parameters sent with the request (Poe's extra_body), e.g. {"aspect_ratio": "16:9"}. Names differ per bot; see the bot's page at poe.com/<bot>/api. | |
| prompt_flags | No | Poe-style flags appended to the prompt, e.g. "--aspect 16:9 --duration 8". Use when a bot ignores `parameters`. | |
| duration_seconds | No | Track length, if the bot supports it |