← 模型目录

ElevenLabs: Music

fal/fal-ai/elevenlabs/music
已启用
模型类别:Audio

ElevenLabs Music turns natural-language descriptions into vocal or instrumental music. A prompt can establish the genre, mood, instruments and role of the track, from a restrained background bed to a more prominent musical cue. An instrumental-only option allows music without sung vocals, and requested lengths range from three seconds to ten minutes. This makes it useful for describing the atmosphere and musical function of a piece in ordinary language. Use cases: background music, pop-inspired cues, lo-fi accompaniment and soundtracks for a defined scene or runtime.

模型组织
elevenlabs
上下文长度
未提供
输入
文本
输出
音频

价格

直连
音频生成 $0.60 / 分钟

能力

modalitiesaudiostreamsecondsinstrumental

API 调用

将 ROUTER_BASE_URL 设为 https://api.mkrouter.com, ROUTER_API_KEY 设为你的 API 密钥. 示例中的媒体地址、文件和音色占位值需要替换.

Chat CompletionsPOST /api/v1/chat/completions
curl "$ROUTER_BASE_URL/api/v1/chat/completions" \
  -H "Authorization: Bearer $ROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "fal/fal-ai/elevenlabs/music",
  "messages": [
    {
      "role": "user",
      "content": "Gentle acoustic music with warm piano and soft guitar"
    }
  ],
  "modalities": [
    "text",
    "audio"
  ],
  "stream": true,
  "audio": {
    "format": "mp3",
    "duration": 30
  }
}'
管理 API 密钥
ElevenLabs: Music | Router