Suno v6 Wild API 呼叫參考
實驗風格、質感豐富的有人聲歌曲
只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 Suno v6 Wild。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少點數,以及一段可以直接貼進終端機執行的請求。
參數說明直接取自型號的輸入 schema,目前只有英文。
總覽
- 開發商
- Suno
- 產出
- 音訊
- 起價
- 10.8 點 每次請求 ($0.108)
1 點 = 0.01 美元。任務受理時會先保留可能的最高費用,完成後依實際用量結算、無條件進位到整點,多保留的會退回;失敗的任務不扣點數。想在執行前知道確切數字,請先呼叫 POST /api/v1/jobs/quote。
音樂
suno/v6-wild/text-to-audio
價格
| 選項 | 點數 (每次請求) | 美元 |
|---|---|---|
預設 | 10.8 | $0.108 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 3000 個字元 | Describe the song: genre, mood, tempo, instruments and voice. With lyrics or an instrumental this is the style (up to 1,000 characters); with no lyrics the model writes the words from it. |
lyrics選填 | string | — | 最多 5000 個字元 | Words to sing, sung in order. Section tags such as [Verse], [Chorus] and [Bridge] shape the song and are not sung. |
generate_lyrics選填 | boolean | true | — | Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off. |
instrumental選填 | boolean | false | — | Generate music with no vocals. |
title選填 | string | — | 最多 80 個字元 | Song title (metadata, not sung). Applies with lyrics or an instrumental; otherwise the model names the song. |
negative_prompt選填 | string | — | 最多 500 個字元 | Styles or elements to keep out of the song. |
vocal_gender選填 | string | — | female, male | Make a female or male lead vocal more likely. Applies with lyrics. |
style_weight選填 | number | — | 0 到 1 | How closely to follow the style in the prompt, from 0 to 1. |
weirdness選填 | number | — | 0 到 1 | How experimental the song may get, from 0 (conventional) to 1 (unusual). |
audio_weight選填 | number | — | 0 到 1 | How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only. |
variety選填 | integer | — | 0 到 4 | How different the two versions are from each other: 0 off, 1 normal (the model default), 2 high, 3 extra, 4 max. |
persona_id選填 | string | — | 最多 200 個字元 | ID of an existing Suno persona to reuse its style or voice. |
persona_model選填 | string | — | style_persona, voice_persona | Whether persona_id is a style persona or a voice persona. |
image_urls選填 | array<string (uri)> | — | 最多 5 項 | Up to 5 mood images (JPEG, PNG or WebP, 10 MB each). Only when the model writes the lyrics. |
reference_video_urls選填 | array<string (uri)> | — | 最多 1 項 | One reference video (MP4 or WebM, up to 100 MB and 241 seconds). Only when the model writes the lyrics. |
reference_audio_urls選填 | array<string (uri)> | — | 最多 1 項 | One reference audio clip (MP3 or WAV, 6 seconds to 30 minutes). Only when the model writes the lyrics. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "suno/v6-wild/text-to-audio",
"input": {
"prompt": "An upbeat indie pop song about a summer road trip, bright guitars, hand claps and a catchy whistled hook"
}
}'回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
