← 模型目录

CassetteAI: Music

fal/cassetteai/music-generator
已启用
模型类别:Audio

CassetteAI Music Generator creates 44.1 kHz stereo music from a written description and requested track length. A brief can name instruments, key, tempo and mood to turn a general soundtrack idea into a more specific musical direction. Its official example combines piano, bass and drums into a beat-making prompt, illustrating how the arrangement can be described without musical notation. Requested durations range from ten seconds to three minutes. Use cases: instrumental backing tracks, short-form soundtrack cues and musical beds with a defined rhythm and atmosphere.

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

价格

直连
音频生成 $0.02 / 分钟

能力

modalitiesaudiostreamseconds

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/cassetteai/music-generator",
  "messages": [
    {
      "role": "user",
      "content": "Gentle acoustic music with warm piano and soft guitar"
    }
  ],
  "modalities": [
    "text",
    "audio"
  ],
  "stream": true,
  "audio": {
    "format": "wav",
    "duration": 30
  }
}'
管理 API 密钥
CassetteAI: Music | Router