PopNowAPI ドキュメント
本文

Suno v6 API リファレンス

歌詞や短い指示から、ボーカル入りのフル楽曲を

PopNow の API キー 1 つで、Suno v6 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりのクレジット、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
Suno
出力
音声
最安
10.8 クレジット 1 リクエストあたり ($0.108)
目安の所要時間
約 48 秒

1 クレジット = 0.01 米ドル。タスクの受付時に上限額を確保し、完了時に実際の使用量で精算します(整数クレジットに切り上げ、差額は返却)。失敗したタスクには課金されません。実行前に正確な金額を知りたいときは POST /api/v1/jobs/quote を呼んでください。

音楽

suno/v6/text-to-audio

料金

オプションクレジット (1 リクエストあたり)米ドル
既定10.8$0.108

パラメーター

フィールド型既定値指定できる値説明
prompt必須string—3,000 文字まで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—5,000 文字まで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/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"

次に読む

このページの内容