Suno 音声カバー
非同期Taskを作成するには、cover audioエンドポイントを使用してください。
概要
サポートされているモデルとともにcover audioエンドポイントを使用してください。返却されたTask IDを使用して状態を取得するか、以下に記載の配信のために callback_url を指定してください。
クイックスタート
- APIキーを作成し、RUNAPI_API_KEYとして設定します。
- サポートされているモデルを選択し、そのモデルのスキーマに一致するボディを持つPOSTリクエストを送信します。
- 返されたタスクIDを保存し、終了状態になるまでポーリングするか、以下に記載されているコールバックを処理してください。
エンドポイント
- ベースURL
https://runapi.ai- API バージョン
v1- 認証
Authorization: Bearer YOUR_API_TOKEN
サポートされているモデル
現在の料金、レート制限、商用利用の詳細については、モデルページを開いてください。
リクエストスキーマ
フィールドと許可される値は選択したモデルによって異なります。指定した場合、callback_urlは以下に記載されたTask配信を受信します。
suno-v4フィールド15件
audio_weightnumberオーディオウェイト(0〜1)。
範囲:0 - 1
callback_urlstring非同期通知用のWebhook URL。
lyricsstring歌う正確なカバーの歌詞。
範囲(固定):5000
modelstringモデルスラッグ。
negative_tagsstring回避するスタイル。
persona_idstringペルソナ ID。
persona_typestringペルソナタイプ。
許可される値:style, voice
promptstring自動歌詞生成のためのカバーブリーフ。
範囲(固定):5000
stylestring音楽スタイル。
範囲(固定):1000
style_weightnumberスタイル遵守の重み(0〜1)。
範囲:0 - 1
titlestring音楽タイトル。
範囲(固定):80
upload_urlstringカバーする音声ファイルのURL。
vocal_genderstringボーカルの性別。
許可される値:male, female
vocal_modestringボーカル生成モード。
許可される値:auto_lyrics, exact_lyrics, instrumental
weirdness_constraintnumber奇妙さの制約(0〜1)。
範囲:0 - 1
suno-v4.5フィールド15件
audio_weightnumberオーディオウェイト(0〜1)。
範囲:0 - 1
callback_urlstring非同期通知用のWebhook URL。
lyricsstring歌う正確なカバーの歌詞。
範囲(固定):5000
modelstringモデルスラッグ。
negative_tagsstring回避するスタイル。
persona_idstringペルソナ ID。
persona_typestringペルソナタイプ。
許可される値:style, voice
promptstring自動歌詞生成のためのカバーブリーフ。
範囲(固定):5000
stylestring音楽スタイル。
範囲(固定):1000
style_weightnumberスタイル遵守の重み(0〜1)。
範囲:0 - 1
titlestring音楽タイトル。
範囲(固定):80
upload_urlstringカバーする音声ファイルのURL。
vocal_genderstringボーカルの性別。
許可される値:male, female
vocal_modestringボーカル生成モード。
許可される値:auto_lyrics, exact_lyrics, instrumental
weirdness_constraintnumber奇妙さの制約(0〜1)。
範囲:0 - 1
suno-v4.5-allフィールド15件
audio_weightnumberオーディオウェイト(0〜1)。
範囲:0 - 1
callback_urlstring非同期通知用のWebhook URL。
lyricsstring歌う正確なカバーの歌詞。
範囲(固定):5000
modelstringモデルスラッグ。
negative_tagsstring回避するスタイル。
persona_idstringペルソナ ID。
persona_typestringペルソナタイプ。
許可される値:style, voice
promptstring自動歌詞生成のためのカバーブリーフ。
範囲(固定):5000
stylestring音楽スタイル。
範囲(固定):1000
style_weightnumberスタイル遵守の重み(0〜1)。
範囲:0 - 1
titlestring音楽タイトル。
範囲(固定):80
upload_urlstringカバーする音声ファイルのURL。
vocal_genderstringボーカルの性別。
許可される値:male, female
vocal_modestringボーカル生成モード。
許可される値:auto_lyrics, exact_lyrics, instrumental
weirdness_constraintnumber奇妙さの制約(0〜1)。
範囲:0 - 1
suno-v4.5-plusフィールド15件
audio_weightnumberオーディオウェイト(0〜1)。
範囲:0 - 1
callback_urlstring非同期通知用のWebhook URL。
lyricsstring歌う正確なカバーの歌詞。
範囲(固定):5000
modelstringモデルスラッグ。
negative_tagsstring回避するスタイル。
persona_idstringペルソナ ID。
persona_typestringペルソナタイプ。
許可される値:style, voice
promptstring自動歌詞生成のためのカバーブリーフ。
範囲(固定):5000
stylestring音楽スタイル。
範囲(固定):1000
style_weightnumberスタイル遵守の重み(0〜1)。
範囲:0 - 1
titlestring音楽タイトル。
範囲(固定):80
upload_urlstringカバーする音声ファイルのURL。
vocal_genderstringボーカルの性別。
許可される値:male, female
vocal_modestringボーカル生成モード。
許可される値:auto_lyrics, exact_lyrics, instrumental
weirdness_constraintnumber奇妙さの制約(0〜1)。
範囲:0 - 1
suno-v5フィールド15件
audio_weightnumberオーディオウェイト(0〜1)。
範囲:0 - 1
callback_urlstring非同期通知用のWebhook URL。
lyricsstring歌う正確なカバーの歌詞。
範囲(固定):5000
modelstringモデルスラッグ。
negative_tagsstring回避するスタイル。
persona_idstringペルソナ ID。
persona_typestringペルソナタイプ。
許可される値:style, voice
promptstring自動歌詞生成のためのカバーブリーフ。
範囲(固定):5000
stylestring音楽スタイル。
範囲(固定):1000
style_weightnumberスタイル遵守の重み(0〜1)。
範囲:0 - 1
titlestring音楽タイトル。
範囲(固定):80
upload_urlstringカバーする音声ファイルのURL。
vocal_genderstringボーカルの性別。
許可される値:male, female
vocal_modestringボーカル生成モード。
許可される値:auto_lyrics, exact_lyrics, instrumental
weirdness_constraintnumber奇妙さの制約(0〜1)。
範囲:0 - 1
suno-v5.5フィールド15件
audio_weightnumberオーディオウェイト(0〜1)。
範囲:0 - 1
callback_urlstring非同期通知用のWebhook URL。
lyricsstring歌う正確なカバーの歌詞。
範囲(固定):5000
modelstringモデルスラッグ。
negative_tagsstring回避するスタイル。
persona_idstringペルソナ ID。
persona_typestringペルソナタイプ。
許可される値:style, voice
promptstring自動歌詞生成のためのカバーブリーフ。
範囲(固定):5000
stylestring音楽スタイル。
範囲(固定):1000
style_weightnumberスタイル遵守の重み(0〜1)。
範囲:0 - 1
titlestring音楽タイトル。
範囲(固定):80
upload_urlstringカバーする音声ファイルのURL。
vocal_genderstringボーカルの性別。
許可される値:male, female
vocal_modestringボーカル生成モード。
許可される値:auto_lyrics, exact_lyrics, instrumental
weirdness_constraintnumber奇妙さの制約(0〜1)。
範囲:0 - 1
条件付きルール
これらの要件は、列挙されたすべての条件が一致する場合に適用されます。
-
条件
vocal_mode = auto_lyrics- 必須
prompt- 使用不可
lyrics,style,title
-
条件
vocal_mode = exact_lyrics- 必須
lyrics,style,title- 使用不可
prompt
-
条件
vocal_mode = instrumental- 必須
style,title- 使用不可
prompt,lyrics
承認を作成する
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"billing": {
"properties": {
"refund": {
"oneOf": [
{
"properties": {
"refunded_at": {
"type": "string"
}
},
"required": [
"refunded_at"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"reservation": {
"oneOf": [
{
"properties": {
"amount_cents": {
"type": "integer"
}
},
"required": [
"amount_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"settlement": {
"oneOf": [
{
"properties": {
"amount_micro_cents": {
"type": "integer"
},
"charged_amount_cents": {
"type": "integer"
}
},
"required": [
"charged_amount_cents",
"amount_micro_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
}
},
"required": [
"reservation",
"settlement",
"refund"
],
"type": "object",
"unevaluatedProperties": false
},
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
},
"task_replayed": {
"type": "boolean"
}
},
"required": [
"id",
"status",
"billing"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"billing": {
"refund": null,
"reservation": null,
"settlement": null
},
"id": "tsk_reference_demo",
"status": "processing"
}
ポーリング処理中
GET /api/v1/suno/cover_audio/:id
レスポンススキーマ
{
"properties": {
"audios": {
"items": {
"properties": {
"audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"duration": {
"type": "number"
},
"id": {
"type": "string"
},
"image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"lyrics": {
"type": "string"
},
"model_name": {
"type": "string"
},
"stream_audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object",
"unevaluatedProperties": false
},
"type": "array"
},
"billing": {
"properties": {
"refund": {
"oneOf": [
{
"properties": {
"refunded_at": {
"type": "string"
}
},
"required": [
"refunded_at"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"reservation": {
"oneOf": [
{
"properties": {
"amount_cents": {
"type": "integer"
}
},
"required": [
"amount_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"settlement": {
"oneOf": [
{
"properties": {
"amount_micro_cents": {
"type": "integer"
},
"charged_amount_cents": {
"type": "integer"
}
},
"required": [
"charged_amount_cents",
"amount_micro_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
}
},
"required": [
"reservation",
"settlement",
"refund"
],
"type": "object",
"unevaluatedProperties": false
},
"generation_stage": {
"enum": [
"text_generated",
"first_audio_ready"
],
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
}
},
"required": [
"id",
"status",
"billing"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"billing": {
"refund": null,
"reservation": null,
"settlement": null
},
"generation_stage": "text_generated",
"id": "tsk_reference_demo",
"status": "processing"
}
ポーリング完了
GET /api/v1/suno/cover_audio/:id
レスポンススキーマ
{
"properties": {
"audios": {
"items": {
"properties": {
"audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"duration": {
"type": "number"
},
"id": {
"type": "string"
},
"image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"lyrics": {
"type": "string"
},
"model_name": {
"type": "string"
},
"stream_audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object",
"unevaluatedProperties": false
},
"type": "array"
},
"billing": {
"properties": {
"refund": {
"oneOf": [
{
"properties": {
"refunded_at": {
"type": "string"
}
},
"required": [
"refunded_at"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"reservation": {
"oneOf": [
{
"properties": {
"amount_cents": {
"type": "integer"
}
},
"required": [
"amount_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"settlement": {
"oneOf": [
{
"properties": {
"amount_micro_cents": {
"type": "integer"
},
"charged_amount_cents": {
"type": "integer"
}
},
"required": [
"charged_amount_cents",
"amount_micro_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
}
},
"required": [
"reservation",
"settlement",
"refund"
],
"type": "object",
"unevaluatedProperties": false
},
"generation_stage": {
"enum": [
"text_generated",
"first_audio_ready",
"all_audios_ready",
"failed"
],
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"completed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"audios",
"billing"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"audios": [
{
"audio_url": "https://file.runapi.ai/reference-audio.mp3",
"id": "audio_reference"
}
],
"billing": {
"refund": null,
"reservation": null,
"settlement": null
},
"id": "tsk_reference_demo",
"status": "completed"
}
ポーリング失敗
GET /api/v1/suno/cover_audio/:id
レスポンススキーマ
{
"properties": {
"billing": {
"properties": {
"refund": {
"oneOf": [
{
"properties": {
"refunded_at": {
"type": "string"
}
},
"required": [
"refunded_at"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"reservation": {
"oneOf": [
{
"properties": {
"amount_cents": {
"type": "integer"
}
},
"required": [
"amount_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
},
"settlement": {
"oneOf": [
{
"properties": {
"amount_micro_cents": {
"type": "integer"
},
"charged_amount_cents": {
"type": "integer"
}
},
"required": [
"charged_amount_cents",
"amount_micro_cents"
],
"type": "object",
"unevaluatedProperties": false
},
{
"enum": [
null
]
}
]
}
},
"required": [
"reservation",
"settlement",
"refund"
],
"type": "object",
"unevaluatedProperties": false
},
"error": {
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"error",
"billing"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"billing": {
"refund": null,
"reservation": null,
"settlement": null
},
"error": "Task processing failed.",
"id": "tsk_reference_demo",
"status": "failed"
}
顧客コールバック: 処理中
POST callback_url
レスポンススキーマ
{
"properties": {
"audios": {
"items": {
"properties": {
"audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"duration": {
"type": "number"
},
"id": {
"type": "string"
},
"image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"lyrics": {
"type": "string"
},
"model_name": {
"type": "string"
},
"stream_audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object",
"unevaluatedProperties": false
},
"type": "array"
},
"generation_stage": {
"enum": [
"text_generated",
"first_audio_ready"
],
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
}
},
"required": [
"id",
"status"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"generation_stage": "text_generated",
"id": "tsk_reference_demo",
"status": "processing"
}
顧客コールバック: 完了
POST callback_url
レスポンススキーマ
{
"properties": {
"audios": {
"items": {
"properties": {
"audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"duration": {
"type": "number"
},
"id": {
"type": "string"
},
"image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"lyrics": {
"type": "string"
},
"model_name": {
"type": "string"
},
"stream_audio_url": {
"type": "string",
"x-runapi-generated-media": true
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object",
"unevaluatedProperties": false
},
"type": "array"
},
"generation_stage": {
"enum": [
"text_generated",
"first_audio_ready",
"all_audios_ready",
"failed"
],
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"completed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"audios"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"audios": [
{
"audio_url": "https://file.runapi.ai/reference-audio.mp3",
"id": "audio_reference"
}
],
"id": "tsk_reference_demo",
"status": "completed"
}
顧客コールバック: 失敗
POST callback_url
レスポンススキーマ
{
"properties": {
"error": {
"oneOf": [
{
"type": "string"
},
{
"properties": {
"code": {
"type": "string"
},
"limit_cents": {
"type": "integer"
},
"message": {
"type": "string"
},
"reset_at": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"used_cents": {
"type": "integer"
},
"window": {
"enum": [
"1h",
"1d",
"7d",
"daily",
"weekly",
"monthly",
"lifetime"
],
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"unevaluatedProperties": false
}
]
},
"id": {
"type": "string"
},
"status": {
"enum": [
"failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": {
"code": "generation_failed",
"message": "Task processing failed."
},
"id": "tsk_reference_demo",
"status": "failed"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Authentication required"
}
エラー
GET /api/v1/suno/cover_audio/:id
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Authentication required"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"oneOf": [
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
},
{
"properties": {
"error": {
"description": "人間が読める形式のバリデーションサマリー。",
"type": "string"
},
"errors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "公開リクエストフィールドをキーとするバリデーションメッセージ。各フィールドに対して人間が読める文字列の配列が含まれます。",
"type": "object"
}
},
"required": [
"error",
"errors"
],
"type": "object",
"unevaluatedProperties": false
}
]
}
レスポンス例
{
"error": "model must be one of: suno-v4, suno-v4.5, suno-v4.5-all, suno-v4.5-plus, suno-v5, suno-v5.5"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Insufficient balance"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "API key credit limit exceeded"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "The request uses features that are not supported for the selected model"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Rate limit reached. Please retry later."
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Service under maintenance, please try again later"
}
エラー
POST /api/v1/suno/cover_audio
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "The request timed out"
}
エラー
GET /api/v1/suno/cover_audio/:id
レスポンススキーマ
{
"properties": {
"error": {
"description": "人が読めるエラーメッセージ。",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
レスポンス例
{
"error": "Task with id 'tsk_reference_demo' not found"
}
生成されたコードサンプル
cURLを直接使用するか、お使いの言語向けのSDKをインストールしてください。各サンプルは、このリファレンスに示されたバリデーション済みリクエストを送信します。
インストール
pip install runapi-suno
import os
from runapi.suno import SunoClient
client = SunoClient(api_key=os.environ["RUNAPI_API_KEY"])
task = client.cover_audio.create(
model="suno-v5",
upload_url="https://cdn.runapi.ai/public/samples/music.mp3",
vocal_mode="auto_lyrics",
prompt="Rework the track as upbeat acoustic pop.",
persona_id="persona_reference",
persona_type="style"
)