請求參數
| 參數 | 必填 | 說明 |
|---|---|---|
audio_weight | 否 | How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only. ≥ 0 · ≤ 1 |
generate_lyrics | 否 | Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off. 預設值: true |
image_urls | 否 | 定氛圍的圖片,音樂會照著它們的感覺來寫。 |
instrumental | 否 | 純音樂,不要人聲。 預設值: false |
lyrics | 否 | 寫你自己的歌詞,或交給模型來寫。 |
negative_prompt | 否 | 不想在曲子裡出現的風格或聲音。 |
persona_id | 否 | ID of an existing Suno persona to reuse its style or voice. |
persona_model | 否 | Whether persona_id is a style persona or a voice persona. style_persona · voice_persona |
prompt | 是 | 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. |
reference_audio_urls | 否 | 要搭配的聲音:人聲、音樂或節奏。 |
reference_video_urls | 否 | 要配樂的影片,音樂會貼合它的節奏與情緒。 |
style_weight | 否 | How closely to follow the style in the prompt, from 0 to 1. ≥ 0 · ≤ 1 |
title | 否 | Song title (metadata, not sung). Applies with lyrics or an instrumental; otherwise the model names the song. |
variety | 否 | How different the two versions are from each other: 0 off, 1 normal (the model default), 2 high, 3 extra, 4 max. ≥ 0 · ≤ 4 |
vocal_gender | 否 | Make a female or male lead vocal more likely. Applies with lyrics. female · male |
weirdness | 否 | How experimental the song may get, from 0 (conventional) to 1 (unusual). ≥ 0 · ≤ 1 |
價格
價格以點數計,和網站上用的是同一種點數(1 點 = $0.01)。任務受理時先凍結點數,完成後依實際費用結算;失敗的任務會退還。
| 選項 | 點數 /次 | ≈ 美元 |
|---|---|---|
| 標準 | 10.8 | US$0.11 |
每個任務會無條件進位到整數點數,所以最低檔跑一次是 11 點數/次(US$0.11)。
想在執行前知道確切金額,把相同的請求內容送到 POST /jobs/quote 即可。
API 快速上手
三步驟呼叫 Suno v6 Mini API
- 建立 API 金鑰. 登入 PopNow,在 API 主控台建立金鑰。金鑰以 sk-popnow- 開頭,和網站共用同一份點數。
- 送出請求. 對 POST /jobs/createTask 送出請求,model 填 suno/v6-mini/text-to-audio,input 依照參數表填寫。回應會立即傳回任務 ID。
- 取得結果. 用任務 ID 輪詢 GET /jobs/recordInfo,或帶上 callBackUrl,結果會推送到該網址。任務成功後下載輸出連結。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
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: $IDEMPOTENCY_KEY" \
-d '{
"model": "suno/v6-mini/text-to-audio",
"input": {
"prompt": "Calm ambient pads with a slow rising motif"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"請把提示詞和連結換成你自己的。API 頁籤裡有回應、輪詢和回呼的參考。
Suno v6 Mini API 常見問題
Suno v6 Mini API 怎麼收費?
Suno v6 Mini:11 點數(US$0.11)/次。點數和網站通用(1 點數 = $0.01),新帳號贈送 30 點數,失敗的任務會退還。
Suno v6 Mini 在 API 裡的模型名稱是什麼?
在 POST /jobs/createTask 的 model 欄位填 音樂用 suno/v6-mini/text-to-audio。
Suno v6 Mini API 有哪些限制?
參考圖:5;參考音訊:1;參考影片:1;提示詞長度(字元):3,000。超出這些限制的請求會在扣款之前被拒絕。
不寫程式能試 Suno v6 Mini 嗎?
可以。Playground 用你的 PopNow 點數執行 Suno v6 Mini,不需要 API 金鑰,每次執行都會附上對應的程式碼。

