ToAPIsToAPIs
Suno 音樂

分軌與添加音軌

stems/stemsAll 分軌,addStem/addVocals/addInstrumental 添加音軌

POST
/v1/music/generations/stems
POST https://toapis.com/v1/music/generations/{operation}
modelstring請求體必填
固定 "suno"
task_idstring請求體必填
源任務 ID
audio_indexnumber請求體
源曲目序號

分軌

operation說明價格
stems人聲 / 伴奏兩條分軌$0.10
stemsAll全樂器分軌(每條樂器一軌)$0.24

返回 result.music[] 中每軌一個 audio_url,已鏡像本站 CDN。

curl --request POST \
  --url https://toapis.com/v1/music/generations/stemsAll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"model":"suno","task_id":"tsk_aud_xxx"}'

添加音軌(各 $0.05,Max $0.10)

addVocals/addInstrumental/addStem 的 task_id 必須是 uploadTask 產物。
operation說明
addVocals為上傳素材生成人聲
addInstrumental為上傳素材生成伴奏
addStem新增一條樂器軌
gpt_descriptionstring請求體
目標描述(custom=false 時必填)
customboolean請求體
promptstring請求體
custom=true 時的歌詞
max_modeboolean請求體
Max 檔
curl --request POST \
  --url https://toapis.com/v1/music/generations/addVocals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"model":"suno","task_id":"tsk_aud_upload_task","gpt_description":"add dreamy female vocals"}'

Response

task_idstring
新任務 ID
statusstring
submitted