Suno v6 Mini API リファレンス
ひとことから、ボーカル入りの曲を手早く2曲
PopNow の API キー 1 つで、Suno v6 Mini を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりのクレジット、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- Suno
- 出力
- 音声
- 最安
- 10.8 クレジット 1 リクエストあたり ($0.108)
1 クレジット = 0.01 米ドル。タスクの受付時に上限額を確保し、完了時に実際の使用量で精算します(整数クレジットに切り上げ、差額は返却)。失敗したタスクには課金されません。実行前に正確な金額を知りたいときは POST /api/v1/jobs/quote を呼んでください。
音楽
suno/v6-mini/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任意 | 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-mini/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"
