OPENCLAW + SUNO

在 OpenClaw 中使用 Suno。

Suno 從文字提示詞或精確歌詞生成完整歌曲 — 包含人聲、樂器和混音。v4 到 v5.5 版本皆可透過 RunAPI 使用,由於 Suno 沒有官方公開 API,RunAPI 提供了程式化存取方式。OpenClaw agent 使用與聊天相同的 RUNAPI_API_KEY 來呼叫。

一個 API key · 文生音樂端點 · 非同步任務輪詢
Use RunAPI to generate a song with Suno.

Requirements:
- Read the API key from RUNAPI_API_KEY.
- Call POST https://runapi.ai/api/v1/suno/text_to_music
- Set model to "suno-v5.5".
- Set vocal_mode to "auto_lyrics" for AI-generated lyrics from a prompt.
- Set prompt to describe the song you want.
- The task is async. Poll the returned task_id until status is "completed".
- When done, read the audio URL from the response output.
curl -X POST https://runapi.ai/api/v1/suno/text_to_music \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "suno-v5.5",
    "vocal_mode": "auto_lyrics",
    "prompt": "An upbeat indie pop track about coding late at night, warm synths and acoustic guitar",
    "vocal_gender": "female"
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "suno-v5.5"
}
複製 curl 指令進行測試 suno
運作原理

三步驟在 OpenClaw 中使用 Suno

1

設定 RunAPI

在環境中設定 RUNAPI_API_KEY。如果你已在 OpenClaw 中設定 RunAPI 用於聊天,同一組 key 即可用於 Suno 音樂生成,無需額外的 provider 設定。

export RUNAPI_API_KEY=runapi_xxx
2

呼叫 text_to_music

向 text_to_music 端點發送 POST 請求,帶上 model 和 vocal_mode。使用 auto_lyrics 搭配 prompt 讓 AI 撰寫歌詞,使用 exact_lyrics 搭配 lyrics/style/title 提供你自己的歌詞,或使用 instrumental 搭配 style/title 生成純演奏曲目。

POST /api/v1/suno/text_to_music
3

輪詢結果

端點會立即回傳 task_id。歌曲生成需要 30 秒到數分鐘不等,取決於版本。輪詢任務狀態端點,直到 status 為 completed,然後讀取輸出音訊 URL。

GET /api/v1/suno/text_to_music/tsk_abc123
參數

Suno text_to_music API 參數

參數 類型 說明
model string 必填。suno-v4、suno-v4.5、suno-v4.5-all、suno-v4.5-plus、suno-v5 或 suno-v5.5。
vocal_mode string 必填。auto_lyrics(AI 根據 prompt 撰寫歌詞)、exact_lyrics(你提供 lyrics/style/title)或 instrumental(無人聲,需提供 style/title)。
prompt string auto_lyrics 模式的歌曲描述。描述曲風、氛圍、節奏和主題。在 exact_lyrics 和 instrumental 模式中禁止使用。
lyrics string 要演唱的精確歌詞。exact_lyrics 模式必填。在 auto_lyrics 和 instrumental 模式中禁止使用。
style string 音樂風格描述,例如 lo-fi hip hop、80s synthwave。exact_lyrics 和 instrumental 模式必填。
title string 歌曲標題。exact_lyrics 和 instrumental 模式必填。
vocal_gender string 選填。male 或 female。
negative_tags string 選填。要避免的風格,例如 heavy metal、screaming。
duration_seconds integer 選填。目標時長(秒)。
persona_id string 選填。自訂聲音或風格設定檔的 Persona ID。
persona_type string 選填。style 或 voice。選擇 persona 類別。
callback_url string 選填。任務完成時接收 POST 通知的 Webhook URL。

OpenClaw 上的 Suno 是什麼?

Suno 是一款文字轉音樂的 AI,能從文字提示詞或你自己的歌詞生成完整歌曲——包括人聲、樂器和混音。它是一個音樂創作草稿工具,你描述風格、情感和節奏,就能獲得一首完整的曲目。由於 Suno 沒有官方公開 API,OpenClaw 代理透過 RunAPI 呼叫它,提供 v4 至 v5.5 版本的程式化存取。

Suno 使用情境

YouTube 和社群媒體的背景音樂

透過提示詞描述情感和風格,為影片生成原創背景音樂。無授權費、無版稅問題——曲目是為你的內容全新生成的。

將歌詞聆聽為完整歌曲

詞曲創作者可將歌詞貼入 exact_lyrics 模式,附上風格描述,即可聆聽歌詞被演唱為完整歌曲,在進錄音室前先將書面歌詞轉化為製作版 Demo。

Podcast 片頭與片尾音樂

透過指定風格、情感和時長,創建符合 Podcast 基調的器樂片頭和片尾音樂。生成數個變體,挑選最合適的。

FAQ

Suno + OpenClaw 常見問題

OpenClaw 通用設定

尚未設定?請從 OpenClaw 的 RunAPI 設定指南開始。

OpenClaw 設定指南 →

Suno 模型目錄

查看所有 Suno 版本、定價和可用端點。

Suno on RunAPI →

立即在 OpenClaw 中試用 Suno。

取得免費 RunAPI key,將提示詞貼入 OpenClaw,即可從文字描述生成包含人聲、樂器和混音的完整歌曲。