PopNowAPI 文件
主要內容

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選填booleantrue—Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off.
instrumental選填booleanfalse—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, maleMake a female or male lead vocal more likely. Applies with lyrics.
style_weight選填number—0 到 1How closely to follow the style in the prompt, from 0 to 1.
weirdness選填number—0 到 1How experimental the song may get, from 0 (conventional) to 1 (unusual).
audio_weight選填number—0 到 1How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only.
variety選填integer—0 到 4How 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_personaWhether 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。

POST /api/v1/jobs/createTask
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 等候通知。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

接下來

本頁內容