彈性參數
可設定 21 個已記錄的參數,包括 audio_id, audio_url, audio_weight, continue_at, duration_seconds。
curl -X POST https://runapi.ai/api/v1/suno/cover_audio \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno-v6",
"prompt": "Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long."
}'
import { SunoClient } from "@runapi.ai/suno";
const client = new SunoClient();
const result = await client.coverAudio.run({
model: "suno-v6",
prompt: "Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/suno/cover_audio",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"suno-v6","prompt":"Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/suno/cover_audio");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'suno-v6',
'prompt' => 'Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.coverAudio().run({"model":"suno-v6","prompt":"Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long."});
task.waitForResult();
require "runapi/suno"
client = RunApi::Suno::Client.new
result = client.cover_audio.run(
model: "suno-v6",
prompt: "Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.coverAudio.Run({"model":"suno-v6","prompt":"Write a lo-fi chill beat with soft piano, vinyl crackle, and a gentle bass line, 2 minutes long."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model suno-v6 \
--endpoint cover_audio \
--wait
9 個版本可用
選擇任一模型,幾秒內即可開始生成。
選擇任一模型,幾秒內即可開始生成。
| 提供者 | Suno |
| 模型 ID | suno-v6 |
| 模態 | Audio & Music |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/suno/text_to_music, /api/v1/suno/extend_music, /api/v1/suno/cover_audio, /api/v1/suno/create_mashup |
| 計費單位 | call |
| 輸入參數 | audio_id, audio_url, audio_weight, callback_url, continue_at, duration_seconds, instrumental, lyrics, model, negative_tags, parameter_mode, persona_id, persona_type, prompt, style, style_weight, task_id, title, upload_url, upload_url_list, vocal_gender, vocal_mode, weirdness_constraint |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 suno-v6 的 API 金鑰。
向 /api/v1/suno/cover_audio 傳送 POST 請求,並傳入 suno-v6 模型 ID 與參數。
輪詢工作或依照回呼取得已完成的 suno-v6 結果。
可設定 21 個已記錄的參數,包括 audio_id, audio_url, audio_weight, continue_at, duration_seconds。
公開 4 個公共 endpoint:text_to_music, extend_music, cover_audio, create_mashup。
非同步任務接受回呼 URL 以接收完成通知。
依 call 計量,無需訂閱。
styleMusic style.
titleMusic title.
lyricsExact cover lyrics to sing.
promptCover brief for automatic lyrics.
persona_idPersona ID.
upload_urlURL of the audio file to cover.
vocal_modeVocal generation mode. (auto_lyrics, exact_lyrics, instrumental)
audio_weightAudio weight (0-1).
callback_urlWebhook URL for async notifications.
persona_typePersona type. (style, voice)
style_weightStyle adherence weight (0-1).
vocal_genderVocal gender. (male, female)
negative_tagsStyles to avoid.
weirdness_constraintWeirdness constraint (0-1).
依照單集情緒生成免版稅背景音樂,無需支付授權費。
為程序化生成的關卡產生可自適應的環境音景與效果音。
無需錄音室即可為客戶廣告製作客製化旁白與音效。
此模型目前尚無已驗證的客戶回饋。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。