← 模型目录

ASLP Lab: DiffRhythm

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

DiffRhythm is a diffusion-based lyrics-to-song model that creates vocals and accompaniment together. Structured lyrics establish the song, while a style description and optional reference audio guide its musical character. Its official model page describes a ninety-five-second standard mode and a 285-second extended mode, allowing either a shorter demo or a more developed composition. Verse and chorus sections help communicate the intended song layout. Use cases: lyric demos, reference-guided songwriting prototypes and full-song soundtrack sketches built around an existing set of words.

模型组织
aslp-lab
上下文长度
未提供
输入
文本 + 音频
输出
音频

价格

直连
音频生成 $0.001 / 秒

能力

modalitiesaudiostreamsecondslyricsstyle

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/diffrhythm",
  "messages": [
    {
      "role": "user",
      "content": "Gentle acoustic music with warm piano and soft guitar"
    }
  ],
  "modalities": [
    "text",
    "audio"
  ],
  "stream": true,
  "audio": {
    "format": "wav",
    "duration": 95,
    "lyrics": "[verse]\nMorning light across the bay\n[chorus]\nWe greet a bright new day"
  }
}'
管理 API 密钥
ASLP Lab: DiffRhythm | Router