彈性參數
可設定 32 個已記錄的參數,包括 audio_id, audio_url, audio_urls, audio_weight, continue_at。
curl -X POST https://runapi.ai/api/v1/suno/stitch_audio \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno-v5",
"prompt": "寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。"
}'
import { SunoClient } from "@runapi.ai/suno";
const client = new SunoClient();
const result = await client.stitchAudio.run({
model: "suno-v5",
prompt: "寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/suno/stitch_audio",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"suno-v5","prompt":"寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/suno/stitch_audio");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'suno-v5',
'prompt' => '寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.stitchAudio().run({"model":"suno-v5","prompt":"寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。"});
task.waitForResult();
require "runapi/suno"
client = RunApi::Suno::Client.new
result = client.stitch_audio.run(
model: "suno-v5",
prompt: "寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.stitchAudio.Run({"model":"suno-v5","prompt":"寫一首長 2 分鐘的 lo-fi chill beat,搭配柔和鋼琴、黑膠唱片雜音與輕柔的貝斯線。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model suno-v5 \
--endpoint stitch_audio \
--wait
9 個版本可用
選擇任一模型,幾秒內即可開始生成。
目前沒有可用的模型。
| 提供者 | Suno |
| 模型 ID | suno-v5 |
| 模態 | 音訊與音樂 |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/suno/remaster_audio, /api/v1/suno/text_to_sound, /api/v1/suno/add_samples, /api/v1/suno/add_instrumental, /api/v1/suno/create_mashup, /api/v1/suno/stitch_audio, /api/v1/suno/cover_audio, /api/v1/suno/inspire_music, /api/v1/suno/text_to_music, /api/v1/suno/extend_music, /api/v1/suno/add_vocals |
| 計費單位 | 次呼叫 |
| 輸入參數 | audio_id, audio_url, audio_urls, audio_weight, callback_url, continue_at, duration_seconds, end_seconds, grab_lyrics, instrumental, lyrics, model, negative_tags, parameter_mode, persona_id, persona_type, prompt, sound_key, sound_loop, sound_tempo, source_task_id, start_seconds, style, style_weight, tags, task_id, title, upload_url, upload_url_list, variation_category, vocal_gender, vocal_mode, voice_id, weirdness_constraint |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 suno-v5 的 API 金鑰。
向 /api/v1/suno/stitch_audio 傳送 POST 請求,並傳入 suno-v5 模型 ID 與參數。
輪詢工作或依照回呼取得已完成的 suno-v5 結果。
可設定 32 個已記錄的參數,包括 audio_id, audio_url, audio_urls, audio_weight, continue_at。
公開 11 個公共 endpoint:remaster_audio, text_to_sound, add_samples, add_instrumental, create_mashup, stitch_audio, cover_audio, inspire_music, text_to_music, extend_music, add_vocals。
非同步任務接受回呼 URL 以接收完成通知。
依 次呼叫 計量,無需訂閱。
audio_idAudio ID within the source task.
callback_urlWebhook URL for async notifications.
source_task_idCompleted source task ID.
依照單集情緒生成免版稅背景音樂,無需支付授權費。
為程序化生成的關卡產生可自適應的環境音景與效果音。
無需錄音室即可為客戶廣告製作客製化旁白與音效。
此模型目前尚無已驗證的客戶回饋。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。