360 Secure SkillHub
360 安全技能中心

Elevenlabs Music

通过 uv 运行 Python 脚本,将风格、情绪、乐器与演唱语言等文本提示发送到 ElevenLabs Eleven Music API,生成默认 30 秒、最长约 10 分钟的歌曲或纯器乐音频,支持 AI 生成歌词与人声,需付费方案与 API 密钥。正文含付费服务与价格表等推广内容。

chenghaifeng08-creator
chenghaifeng08-creator
热度 60.39
最近更新 2026-05-11 17:34:36
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add elevenlabs-music-automaton
Metadata
name
elevenlabs-music
description
Generate music from text prompts using ElevenLabs Eleven Music API. Use when creating songs, soundtracks, jingles, lullabies, or any audio music from descriptions. Supports vocals with AI-generated lyrics, instrumental tracks, and multiple genres/styles. Requires paid ElevenLabs plan.
metadata
{"clawdbot":{"emoji":"🎵","requires":{"bins":["uv"],"env":["ELEVENLABS_API_KEY"]},"primaryEnv":"ELEVENLABS_API_KEY"}}

ElevenLabs Music Generation

Generate complete songs from text prompts with AI-generated lyrics and vocals.


💰 付费服务

AI 音乐定制:

服务 价格 交付
短视频 BGM ¥300/首 30 秒定制音乐
完整歌曲 ¥800/首 2-3 分钟 + 歌词
品牌 Jingle ¥1500/首 企业专属音乐
专辑定制 ¥5000/套 5 首系列音乐

联系: 微信/Telegram 私信,备注"音乐定制"


Quick Start

# Basic generation (30 seconds)
uv run {baseDir}/scripts/generate_music.py "upbeat jazz piano"

# Longer track (3 minutes)
uv run {baseDir}/scripts/generate_music.py "epic orchestral battle music" --length 180

# Instrumental only (no vocals)
uv run {baseDir}/scripts/generate_music.py "lo-fi hip hop beats" --length 120 --instrumental

# Custom output path
uv run {baseDir}/scripts/generate_music.py "romantic bossa nova" -o /tmp/bossa.mp3

Options

Flag Description
-l, --length Duration in seconds (3-600, default: 30)
-o, --output Output file path (default: /tmp/music.mp3)
-i, --instrumental Force instrumental, no vocals

Prompt Engineering Tips

Be Specific About Style

  • Include genre, mood, tempo, and instruments
  • Reference decades or eras: "90s Brazilian romantic pagode", "1960s sci-fi TV theme"
  • Describe energy: "builds from soft to explosive", "relaxed and intimate"

For Vocals

  • Specify language: "vocals in Portuguese", "singing in Japanese"
  • Describe vocal style: "soulful male vocals", "ethereal female choir"
  • Include lyrical themes: "about love and saudade", "celebrating friendship"

Avoid Copyright Issues

  • Don't mention artist/band names directly
  • Describe the style instead: "classic 90s romantic samba style" not "like Raça Negra"
  • If rejected, the API returns a suggested alternative prompt

Example Prompts

MPB (Brazilian Popular Music)

A soulful MPB track featuring gentle acoustic guitar, warm nylon strings, 
and dreamy Rhodes piano. Bossa nova-influenced rhythm with soft brushed 
drums. Vocals in Portuguese express themes of saudade and the beauty of life.

Epic Orchestral

Epic military march with powerful brass fanfares, thundering timpani drums, 
and a soaring choir. Triumphant and heroic, with deep bass tubas, bold 
trumpets, snare rolls, and an anthemic melody building to a glorious crescendo.

Lullaby

Gentle orchestral lullaby with sweeping strings, soft brass, and ethereal 
wordless soprano vocals. Peaceful yet majestic, evoking wonder and hope. 
Perfect for falling asleep while dreaming of adventures.

Comedy Rock

Brazilian comedy rock with absurd, hilarious Portuguese lyrics full of 
wordplay. Mix energetic rock guitars with unexpected rhythms - forró 
breakdowns, pagode moments. Theatrical, exaggerated vocals singing about 
ridiculous situations.

Requirements

  • ElevenLabs API Key: Set ELEVENLABS_API_KEY environment variable
  • Paid Plan: Music API requires Creator plan or higher
  • uv: For running the Python script with dependencies

Supported Features

  • Text-to-music generation up to 10 minutes
  • AI-generated lyrics and vocals in multiple languages (English, Spanish, Portuguese, German, Japanese, etc.)
  • Instrumental-only mode
  • Most musical styles and genres