Appearance
🎧 音乐模型 suno-v3
- 2024.03.27 本站已经支持 音乐模型
suno-v3
- 支持
suno-v3
suno-v3.5
suno
本身无api, 跟GPTs 一样是通过逆向得来,- 分
chat
和非官方api
2中方式 chat
方式参考openai格式,非官方api
请参考以suno非官方API调用- 提示词输入一次,生成2首歌曲
- 计费是按次数,并非按歌曲数
- 如何使用 访问 https://suno.ddaiai.com 看下面的
在线测试
注意
1.访问 https://suno.ddaiai.com (如果被墙了,换下二级域名前缀 suibian
)
2.如果发现被墙了 可以自己换地址 https://suibian.ddaiai.com
把 suibian
换其他的 如 https://2025.ddaiai.com
都能访问
对话方式调用
- 以对话方式调用 模型为
suno-v3
设置
- 下图相应的地方设置
- OpenAi接口地址:https://api.openai-hk.com
- OpenAi API KEY: hk-你的apiKey
效果
- 将模型设置为
suno-v3
- 输入框 提问对话 得到音乐歌曲2首、歌词、歌曲封面
程序接入
已经跟openai接口对齐,仅需将模型修改为 suno-v3
shell
curl --request POST \
--url https://api.openai-hk.com/v1/chat/completions \
--header 'Authorization: Bearer hk-你的key' \
--header 'content-type: application/json' \
--data '{
"max_tokens": 800,
"model": "suno-v3",
"temperature": 0.8,
"top_p": 1,
"presence_penalty": 1,
"stream":false,
"messages": [
{
"role": "user",
"content": "儿时的回忆"
}
]
}'
curl --request POST \
--url https://api.openai-hk.com/v1/chat/completions \
--header 'Authorization: Bearer hk-你的key' \
--header 'content-type: application/json' \
--data '{
"max_tokens": 800,
"model": "suno-v3",
"temperature": 0.8,
"top_p": 1,
"presence_penalty": 1,
"stream":false,
"messages": [
{
"role": "user",
"content": "儿时的回忆"
}
]
}'
以suno非官方API调用
- 下图相应的地方设置
- suno接口地址:https://api.openai-hk.com/sunoapi
- Suno KEY: hk-你的apiKey
效果如下
创建歌词任务
请求体
json
{"prompt":"大海"}
{"prompt":"大海"}
返回
json
{"id":"9561baee-2d64-48fe-8318-d7e82e86712b"}
{"id":"9561baee-2d64-48fe-8318-d7e82e86712b"}
获取歌词
通过上面的ID 获取歌词
返回
json
{
"text": "歌词内容",
"title": "歌词标题",
"status": "complete"
}
{
"text": "歌词内容",
"title": "歌词标题",
"status": "complete"
}
创建歌曲任务.定制模型
请求体
json
{
"prompt": "string",
"mv": "chirp-v3-0",
"title": "string",
"tags": "string",
"continue_at": 120,
"continue_clip_id": "string"
}
{
"prompt": "string",
"mv": "chirp-v3-0",
"title": "string",
"tags": "string",
"continue_at": 120,
"continue_clip_id": "string"
}
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
mv | 模型 可行值有 chirp-v3-0 chirp-v3-5 | string | chirp-v3-0 |
title | 标题 | string | |
tags | 歌曲风格多个风格 请用空格分开 | string | |
continue_at | 开始时间 | integer(int64) | |
continue_clip_id | 上一个歌曲的ID | string |
返回
json
{
"id": "8fb0a232-aef3-4f8a-82ad-72a3fde0bcc6",
"clips": [
{
"id": "e9f2a77a-07d7-444a-a1f7-575477b0ff18",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.175Z",
"status": "submitted",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "399f0745-0168-463c-a18a-f681f5711280",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.176Z",
"status": "submitted",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-06-06T02:21:26.168Z",
"batch_size": 1
}
{
"id": "8fb0a232-aef3-4f8a-82ad-72a3fde0bcc6",
"clips": [
{
"id": "e9f2a77a-07d7-444a-a1f7-575477b0ff18",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.175Z",
"status": "submitted",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "399f0745-0168-463c-a18a-f681f5711280",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.176Z",
"status": "submitted",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-06-06T02:21:26.168Z",
"batch_size": 1
}
创建歌曲任务.描述模型
post https://api.openai-hk.com/sunoapi/generate/description-mode
请求体
json
{
"gpt_description_prompt": "描述内容",
"make_instrumental": false,
"mv": "chirp-v3-5",
"prompt": "描述内容2"
}
{
"gpt_description_prompt": "描述内容",
"make_instrumental": false,
"mv": "chirp-v3-5",
"prompt": "描述内容2"
}
返回
json
{
"id": "344ec7d6-c976-4100-9804-f348bbf38422",
"clips": [
{
"id": "0c60de63-fba7-4207-94ea-6a240c64f928",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": null,
"prompt": "大海",
"gpt_description_prompt": "大海",
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:17:12.340Z",
"status": "submitted",
"title": "",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "28f4a72c-6a50-452f-a67c-5ab2354512c7",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": null,
"prompt": "大海",
"gpt_description_prompt": "大海",
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:17:12.340Z",
"status": "submitted",
"title": "",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": null,
"prompt": "大海",
"gpt_description_prompt": "大海",
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-06-06T02:17:12.330Z",
"batch_size": 1
}
{
"id": "344ec7d6-c976-4100-9804-f348bbf38422",
"clips": [
{
"id": "0c60de63-fba7-4207-94ea-6a240c64f928",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": null,
"prompt": "大海",
"gpt_description_prompt": "大海",
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:17:12.340Z",
"status": "submitted",
"title": "",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "28f4a72c-6a50-452f-a67c-5ab2354512c7",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": null,
"prompt": "大海",
"gpt_description_prompt": "大海",
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:17:12.340Z",
"status": "submitted",
"title": "",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": null,
"prompt": "大海",
"gpt_description_prompt": "大海",
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-06-06T02:17:12.330Z",
"batch_size": 1
}
获取歌曲
通过上面返回的 clips 都能返回2个id为clipsId1,clipsId2
get https://api.openai-hk.com/sunoapi/feed/clipsId1,clipsId2
返回
json
[
{
"id": "e9f2a77a-07d7-444a-a1f7-575477b0ff18",
"video_url": "",
"audio_url": "https://audiopipe.suno.ai/?item_id=e9f2a77a-07d7-444a-a1f7-575477b0ff18",
"image_url": "https://cdn1.suno.ai/image_e9f2a77a-07d7-444a-a1f7-575477b0ff18.png",
"image_large_url": "https://cdn1.suno.ai/image_large_e9f2a77a-07d7-444a-a1f7-575477b0ff18.png",
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.175Z",
"status": "streaming",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "399f0745-0168-463c-a18a-f681f5711280",
"video_url": "",
"audio_url": "https://audiopipe.suno.ai/?item_id=399f0745-0168-463c-a18a-f681f5711280",
"image_url": "https://cdn1.suno.ai/image_399f0745-0168-463c-a18a-f681f5711280.png",
"image_large_url": "https://cdn1.suno.ai/image_large_399f0745-0168-463c-a18a-f681f5711280.png",
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.176Z",
"status": "streaming",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
]
[
{
"id": "e9f2a77a-07d7-444a-a1f7-575477b0ff18",
"video_url": "",
"audio_url": "https://audiopipe.suno.ai/?item_id=e9f2a77a-07d7-444a-a1f7-575477b0ff18",
"image_url": "https://cdn1.suno.ai/image_e9f2a77a-07d7-444a-a1f7-575477b0ff18.png",
"image_large_url": "https://cdn1.suno.ai/image_large_e9f2a77a-07d7-444a-a1f7-575477b0ff18.png",
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.175Z",
"status": "streaming",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "399f0745-0168-463c-a18a-f681f5711280",
"video_url": "",
"audio_url": "https://audiopipe.suno.ai/?item_id=399f0745-0168-463c-a18a-f681f5711280",
"image_url": "https://cdn1.suno.ai/image_399f0745-0168-463c-a18a-f681f5711280.png",
"image_large_url": "https://cdn1.suno.ai/image_large_399f0745-0168-463c-a18a-f681f5711280.png",
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "infectious house",
"prompt": "[Verse]\nBlue waves crashing on the shore\nSunshine smiling evermore\n\n[Verse 2]\nSailboats drifting far from land\nSalt and sand go hand in hand\n\n[Chorus]\nOh the ocean holds my dreams\nIn its tide sun's golden beams\nLet the sea set me free\nIn its waves I find my peace\n\n[Verse 3]\nSeagulls flying by the pier\nWhispers of the water clear\n\n[Bridge]\nEndless horizon meets my eyes\nWhere the sea and sky collide\n\n[Verse 4]\nMoonlight dances on the waves\nIn the ocean's arms we lay",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "f60cf781-3c2e-4000-918c-73f68de2a28c",
"display_name": "MercurialMetronomes303",
"handle": "mercurialmetronomes303",
"is_handle_updated": false,
"avatar_image_url": null,
"is_trashed": false,
"reaction": null,
"created_at": "2024-06-06T02:21:26.176Z",
"status": "streaming",
"title": "大海",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
]
主要还是看 [0].status
当值为complete
表示完成
拼接歌曲
请求体
json
{
"clip_id": "extend 后的 歌曲ID",
"is_infill": false
}
{
"clip_id": "extend 后的 歌曲ID",
"is_infill": false
}
获得得到的 id
, 通过获取歌曲接口 获得状态跟结果;metadata.type
为concat
json
{
"id": "e193aa39-e97b-464d-938f-cd150f7fb05a",
"video_url": "",
"audio_url": "",
"image_url": "https://cdn1.suno.ai/image_ea8b867f-d072-4a13-9418-eb687cfd956f.png",
"image_large_url": "https://cdn1.suno.ai/image_large_ea8b867f-d072-4a13-9418-eb687cfd956f.png",
"is_video_pending": false,
"major_model_version": "v3.5",
"model_name": "chirp-v3.5",
"metadata": {
"tags": "romantic country",
"prompt": "[Verse]\n红楼梦里\n夜深人静\n烛光闪耀\n\n[Verse 2]\n花间舞者\n诉说离别\n心中藏愁\n\n[Chorus]\n红楼梦碎\n谁在梦醒\n无奈无声\n\n[Verse 3]\n往事如烟\n风吹云散\n空留思念\n\n[Bridge]\n梦起梦落\n何处寻觅\n那段旧情\n\n[Chorus]\n红楼梦碎\n谁在梦醒\n无奈无声\n\n[Verse]\n夜色 降临城市间\n街灯 照亮黑暗\n梦醒 人潮涌现\n心跳 跟随节拍\n\n[Verse 2]\n霓虹 灯火辉煌\n寂静 在我耳旁\n脚步 声音回荡\n迷失 无法望穿\n\n[Chorus]\n夜晚 让人依赖\n星光 点亮窗台\n一起 看月半掩\n心跳 多么愉快\n\n[Verse 3]\n回忆 在深夜中\n依稀 脑海相逢\n拥抱 柔软如风\n夜色 让我心动\n\n[Chorus]\n夜晚 让人依赖\n星光 点亮窗台\n一起 看月半掩\n心跳 多么愉快\n\n[Bridge]\n街头 冷风穿越\n心事 随夜放飞\n此刻 梦想不悔\n夜色 醉人沉醉",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": [
{
"id": "a015205b-43ef-4374-b334-b3a78ef977aa",
"continue_at": 60,
"type": "gen",
"source": "web",
"infill": false
},
{
"id": "ea8b867f-d072-4a13-9418-eb687cfd956f",
"continue_at": null
}
],
"type": "concat",
"duration": null,
"refund_credits": null,
"stream": null,
"infill": null,
"has_vocal": null,
"is_audio_upload_tos_accepted": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "7d44c563-4d66-449b-8de1-131e062baf43",
"display_name": "HeavyHipHop606",
"handle": "heavyhiphop606",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultPink.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-05T07:32:37.286Z",
"status": "queued",
"title": "红楼",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
{
"id": "e193aa39-e97b-464d-938f-cd150f7fb05a",
"video_url": "",
"audio_url": "",
"image_url": "https://cdn1.suno.ai/image_ea8b867f-d072-4a13-9418-eb687cfd956f.png",
"image_large_url": "https://cdn1.suno.ai/image_large_ea8b867f-d072-4a13-9418-eb687cfd956f.png",
"is_video_pending": false,
"major_model_version": "v3.5",
"model_name": "chirp-v3.5",
"metadata": {
"tags": "romantic country",
"prompt": "[Verse]\n红楼梦里\n夜深人静\n烛光闪耀\n\n[Verse 2]\n花间舞者\n诉说离别\n心中藏愁\n\n[Chorus]\n红楼梦碎\n谁在梦醒\n无奈无声\n\n[Verse 3]\n往事如烟\n风吹云散\n空留思念\n\n[Bridge]\n梦起梦落\n何处寻觅\n那段旧情\n\n[Chorus]\n红楼梦碎\n谁在梦醒\n无奈无声\n\n[Verse]\n夜色 降临城市间\n街灯 照亮黑暗\n梦醒 人潮涌现\n心跳 跟随节拍\n\n[Verse 2]\n霓虹 灯火辉煌\n寂静 在我耳旁\n脚步 声音回荡\n迷失 无法望穿\n\n[Chorus]\n夜晚 让人依赖\n星光 点亮窗台\n一起 看月半掩\n心跳 多么愉快\n\n[Verse 3]\n回忆 在深夜中\n依稀 脑海相逢\n拥抱 柔软如风\n夜色 让我心动\n\n[Chorus]\n夜晚 让人依赖\n星光 点亮窗台\n一起 看月半掩\n心跳 多么愉快\n\n[Bridge]\n街头 冷风穿越\n心事 随夜放飞\n此刻 梦想不悔\n夜色 醉人沉醉",
"gpt_description_prompt": null,
"audio_prompt_id": null,
"history": null,
"concat_history": [
{
"id": "a015205b-43ef-4374-b334-b3a78ef977aa",
"continue_at": 60,
"type": "gen",
"source": "web",
"infill": false
},
{
"id": "ea8b867f-d072-4a13-9418-eb687cfd956f",
"continue_at": null
}
],
"type": "concat",
"duration": null,
"refund_credits": null,
"stream": null,
"infill": null,
"has_vocal": null,
"is_audio_upload_tos_accepted": null,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "7d44c563-4d66-449b-8de1-131e062baf43",
"display_name": "HeavyHipHop606",
"handle": "heavyhiphop606",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultPink.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-05T07:32:37.286Z",
"status": "queued",
"title": "红楼",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
音频生成音频
尝试可以在 https://suno.ddaiai.com 测试; 下面是效果图
API有6个步骤
1.上传请求
请求体
json
{"extension":"mp3"}
{"extension":"mp3"}
返回
json
{
"id": "c25a8c59-000a-481f-ac28-efde2dc9e677",
"url": "https://suno-uploads.s3.amazonaws.com/",
"fields": {
"Content-Type": "audio/mpeg",
"key": "raw_uploads/c25a8c59-000a-481f-ac28-efde2dc9e677.mp3",
"AWSAccessKeyId": "AKIA2V4GXGDKJMTPWLXO",
"policy": "eyJleHBpcmF0aW9uIjogIjIwMjQtMDYtMTdUMDY6MTg6MzJaIiwgImNvbmRpdGlvbnMiOiBbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDEwNDg1NzYwMF0sIFsic3RhcnRzLXdpdGgiLCAiJENvbnRlbnQtVHlwZSIsICJhdWRpby9tcGVnIl0sIHsiYnVja2V0IjogInN1bm8tdXBsb2FkcyJ9LCB7ImtleSI6ICJyYXdfdXBsb2Fkcy9jMjVhOGM1OS0wMDBhLTQ4MWYtYWMyOC1lZmRlMmRjOWU2NzcubXAzIn1dfQ==",
"signature": "yjfB/HTNgPHURNLRdeizNMVgG6k="
}
}
{
"id": "c25a8c59-000a-481f-ac28-efde2dc9e677",
"url": "https://suno-uploads.s3.amazonaws.com/",
"fields": {
"Content-Type": "audio/mpeg",
"key": "raw_uploads/c25a8c59-000a-481f-ac28-efde2dc9e677.mp3",
"AWSAccessKeyId": "AKIA2V4GXGDKJMTPWLXO",
"policy": "eyJleHBpcmF0aW9uIjogIjIwMjQtMDYtMTdUMDY6MTg6MzJaIiwgImNvbmRpdGlvbnMiOiBbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDEwNDg1NzYwMF0sIFsic3RhcnRzLXdpdGgiLCAiJENvbnRlbnQtVHlwZSIsICJhdWRpby9tcGVnIl0sIHsiYnVja2V0IjogInN1bm8tdXBsb2FkcyJ9LCB7ImtleSI6ICJyYXdfdXBsb2Fkcy9jMjVhOGM1OS0wMDBhLTQ4MWYtYWMyOC1lZmRlMmRjOWU2NzcubXAzIn1dfQ==",
"signature": "yjfB/HTNgPHURNLRdeizNMVgG6k="
}
}
这里的 id
是下文的 audio_id
, 同时 url
是第二步的请求URL
2.上传文件
shell
curl --request POST \
--url https://suno-uploads.s3.amazonaws.com/ \
--header 'content-type: multipart/form-data' \
--form Content-Type=audio/mpeg \
--form key=raw_uploads/c25a8c59-000a-481f-ac28-efde2dc9e677.mp3 \
--form AWSAccessKeyId=AKIA2V4GXGDKJMTPWLXO \
--form policy=eyJleHBpcmF0aW9uIjogIjIwMjQtMDYtMTdUMDY6MTg6MzJaIiwgImNvbmRpdGlvbnMiOiBbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDEwNDg1NzYwMF0sIFsic3RhcnRzLXdpdGgiLCAiJENvbnRlbnQtVHlwZSIsICJhdWRpby9tcGVnIl0sIHsiYnVja2V0IjogInN1bm8tdXBsb2FkcyJ9LCB7ImtleSI6ICJyYXdfdXBsb2Fkcy9jMjVhOGM1OS0wMDBhLTQ4MWYtYWMyOC1lZmRlMmRjOWU2NzcubXAzIn1dfQ== \
--form signature=yjfB/HTNgPHURNLRdeizNMVgG6k= \
--form file=@/you_mp3_dir_file.mp3
curl --request POST \
--url https://suno-uploads.s3.amazonaws.com/ \
--header 'content-type: multipart/form-data' \
--form Content-Type=audio/mpeg \
--form key=raw_uploads/c25a8c59-000a-481f-ac28-efde2dc9e677.mp3 \
--form AWSAccessKeyId=AKIA2V4GXGDKJMTPWLXO \
--form policy=eyJleHBpcmF0aW9uIjogIjIwMjQtMDYtMTdUMDY6MTg6MzJaIiwgImNvbmRpdGlvbnMiOiBbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsIDAsIDEwNDg1NzYwMF0sIFsic3RhcnRzLXdpdGgiLCAiJENvbnRlbnQtVHlwZSIsICJhdWRpby9tcGVnIl0sIHsiYnVja2V0IjogInN1bm8tdXBsb2FkcyJ9LCB7ImtleSI6ICJyYXdfdXBsb2Fkcy9jMjVhOGM1OS0wMDBhLTQ4MWYtYWMyOC1lZmRlMmRjOWU2NzcubXAzIn1dfQ== \
--form signature=yjfB/HTNgPHURNLRdeizNMVgG6k= \
--form file=@/you_mp3_dir_file.mp3
- 请求体由上面的
fields
加file
的mp3文件 - 返回
20x
就表示成功
3.报告上传完毕
post https://api.openai-hk.com/sunoapi/uploads/audio/{id}/upload-finish
请求体
json
{"upload_type":"file_upload","upload_filename":"you_mp3_name.mp3"}
{"upload_type":"file_upload","upload_filename":"you_mp3_name.mp3"}
4.查询处理状态
返回体
json
{
"id": "c25a8c59-000a-481f-ac28-efde2dc9e677",
"status": "complete",
"error_message": null,
"s3_id": "m_05c9b477-4519-4810-9ffa-00580c082067",
"title": "S-100096-100096-84069F8B",
"image_url": "https://cdn1.suno.ai/image_05c9b477-4519-4810-9ffa-00580c082067.png"
}
{
"id": "c25a8c59-000a-481f-ac28-efde2dc9e677",
"status": "complete",
"error_message": null,
"s3_id": "m_05c9b477-4519-4810-9ffa-00580c082067",
"title": "S-100096-100096-84069F8B",
"image_url": "https://cdn1.suno.ai/image_05c9b477-4519-4810-9ffa-00580c082067.png"
}
status
当为 complete 时表示完成
5.初始化音频文件
post https://api.openai-hk.com/sunoapi/uploads/audio/{id}/initialize-clip
请求体
json
{}
{}
返回体
json
{
"clip_id": "05c9b477-4519-4810-9ffa-00580c082067"
}
{
"clip_id": "05c9b477-4519-4810-9ffa-00580c082067"
}
6.获取与进行二次创作
- 通过获取歌曲接口 将上面的
clip_id
带到 id上 - 通过创建歌曲任务定制模型 将接口中的
continue_clip_id
填入clip_id
得值 ,mv
填入chirp-v3-5-upload
音频生成音频.URL方式上传
- 上面的 音频生成音频 方式太繁琐
- 以下是接口实现上上面的所有步骤
- 仅支持
mp3
- 消耗资源比较多 会扣200积分
请求体
json
{
"url": "http://cdnimg.exbapp.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}
{
"url": "http://cdnimg.exbapp.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}
返回体
json
{
"clip_id": "f4e624c0-b018-4933-8f35-be2bcc79a0c8",
"code": "success",
"data": "f4e624c0-b018-4933-8f35-be2bcc79a0c8",
"message": ""
}
{
"clip_id": "f4e624c0-b018-4933-8f35-be2bcc79a0c8",
"code": "success",
"data": "f4e624c0-b018-4933-8f35-be2bcc79a0c8",
"message": ""
}
- 获取的
clip_id
进行2次创作 参考6获取与进行二次创作 - 兼容 newapi 格式
data
为clip_id
- curl demo
shell
curl --request POST \
--url https://api.openai-hk.com/sunoapi/uploads/audio-url \
--header 'Authorization: Bearer hk-yourKey' \
--header 'content-type: application/json' \
--data '{
"url": "http://cdnimg.exbapp.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}'
curl --request POST \
--url https://api.openai-hk.com/sunoapi/uploads/audio-url \
--header 'Authorization: Bearer hk-yourKey' \
--header 'content-type: application/json' \
--data '{
"url": "http://cdnimg.exbapp.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}'
Newapi 格式
2024.10.29 已兼容 Newapi 格式
1.生成歌词
shell
curl --request POST \
--url https://api.openai-hk.com/suno/submit/lyrics \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "乡愁"
}'
curl --request POST \
--url https://api.openai-hk.com/suno/submit/lyrics \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "乡愁"
}'
返回体 data
为任务 task_id
json
{
"code": "success",
"data": "751c7248-5d1a-414e-9827-9d39e5533b33",
"message": ""
}
{
"code": "success",
"data": "751c7248-5d1a-414e-9827-9d39e5533b33",
"message": ""
}
2.生成音乐
shell
curl --request POST \
--url https://api.openai-hk.com/suno/submit/music \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"gpt_description_prompt": "乡愁"
}'
curl --request POST \
--url https://api.openai-hk.com/suno/submit/music \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"gpt_description_prompt": "乡愁"
}'
a.灵感模式
请求体
json
{
"gpt_description_prompt": "乡愁"
}
{
"gpt_description_prompt": "乡愁"
}
b.自定义模式
请求体
json
{
"prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
"tags": "emotional punk",
"mv": "chirp-v3-5",
"title": "City Lights"
}
{
"prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
"tags": "emotional punk",
"mv": "chirp-v3-5",
"title": "City Lights"
}
c.续写
请求体
json
{
"prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
"tags": "bass-driven atmospheric heavy metal",
"mv": "chirp-v3-5",
"title": "City Lights",
"continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
"continue_at": 80
}
{
"prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
"tags": "bass-driven atmospheric heavy metal",
"mv": "chirp-v3-5",
"title": "City Lights",
"continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
"continue_at": 80
}
请求体关键字说明
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
gpt_description_prompt | 灵感提示词 | string | |
mv | 模型 可行值有 chirp-v3-0 chirp-v3-5 | string | chirp-v3-0 |
title | 标题 | string | |
prompt | 歌词 | string | |
tags | 歌曲风格多个风格 请用空格分开 | string | |
continue_at | 开始时间 | integer(int64) | |
continue_clip_id | 上一个歌曲的ID | string |
音乐返回体
上面3种模式最终生成的返回体 data
为任务 task_id
json
{
"code": "success",
"data": "6e7dfb41-5a21-4189-8246-e2b6ae103ccd",
"message": ""
}
{
"code": "success",
"data": "6e7dfb41-5a21-4189-8246-e2b6ae103ccd",
"message": ""
}
3.获取单个任务
返回体.歌词
shell
{
"code": "success",
"data": {
"task_id": "24c35560-5d0a-470d-bd31-976d02d43926",
"notify_hook": "",
"action": "LYRICS",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730209678,
"start_time": 1730209678,
"finish_time": 1730209687,
"progress": "100%",
"data": {
"status": "complete",
"text": "[Verse]\n骑着单车在海边漫游\n夕阳洒在我们的左右\n微风轻拂你的发梢\n你笑着说这一刻真好\n\n[Verse 2]\n我们在环岛路上追逐\n欢笑声比浪花还要酷\n沙滩上留下并肩脚印\n未来的梦在心里酝酿\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上\n\n[Verse 3]\n鼓浪屿的小巷中徘徊\n风琴声带我们走向未来\n古老建筑见证了时光\n我们牵手走在美丽天堂\n\n[Bridge]\n夜景灿烂如星光闪耀\n我们在这城市中狂跳\n厦门夜晚有如梦幻曲\n迷人风景永远让人迷\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上",
"title": "厦门"
}
},
"message": ""
}
{
"code": "success",
"data": {
"task_id": "24c35560-5d0a-470d-bd31-976d02d43926",
"notify_hook": "",
"action": "LYRICS",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730209678,
"start_time": 1730209678,
"finish_time": 1730209687,
"progress": "100%",
"data": {
"status": "complete",
"text": "[Verse]\n骑着单车在海边漫游\n夕阳洒在我们的左右\n微风轻拂你的发梢\n你笑着说这一刻真好\n\n[Verse 2]\n我们在环岛路上追逐\n欢笑声比浪花还要酷\n沙滩上留下并肩脚印\n未来的梦在心里酝酿\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上\n\n[Verse 3]\n鼓浪屿的小巷中徘徊\n风琴声带我们走向未来\n古老建筑见证了时光\n我们牵手走在美丽天堂\n\n[Bridge]\n夜景灿烂如星光闪耀\n我们在这城市中狂跳\n厦门夜晚有如梦幻曲\n迷人风景永远让人迷\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上",
"title": "厦门"
}
},
"message": ""
}
返回体.音乐
json
{
"code": "success",
"data": {
"task_id": "6e7dfb41-5a21-4189-8246-e2b6ae103ccd",
"notify_hook": "",
"action": "MUSIC",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730208225,
"start_time": 1730208225,
"finish_time": 1730208257,
"progress": "100%",
"data": [
{
"audio_url": "https://cdn1.suno.ai/53db4a32-cb40-4412-8c1f-34409d2f3327.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.webp",
"created_at": "2024-10-29T13:23:44.841Z",
"display_name": "DisconcertedBass2764",
"handle": "disconcertedbass2764",
"id": "53db4a32-cb40-4412-8c1f-34409d2f3327",
"image_large_url": "https://cdn2.suno.ai/image_large_53db4a32-cb40-4412-8c1f-34409d2f3327.jpeg",
"image_url": "https://cdn2.suno.ai/image_53db4a32-cb40-4412-8c1f-34409d2f3327.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": true,
"major_model_version": "v3",
"metadata": {
"duration": 64.36,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nOn the streets of Tianjin we dance in the rain\nLife's a wild river nothing to tame\nNeon lights flash hearts beat out loud\nIn the city of dreams we stand so proud\n\n[Bridge]\nFrom the markets to the river's bend\nStories of old and new blend\nEchoes of laughter fill the night\nTianjin's magic burning bright\n\n[Chorus]\nOh Tianjin you light up my soul\nEvery alley every goal\nIn your arms I find my way\nIn your embrace I want to stay",
"refund_credits": false,
"stream": true,
"tags": "pop lively",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/53db4a32-cb40-4412-8c1f-34409d2f3327.mp4"
},
{
"audio_url": "https://cdn1.suno.ai/94241e2d-7e50-44db-9b7e-e6ca656894c1.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.webp",
"created_at": "2024-10-29T13:23:44.841Z",
"display_name": "DisconcertedBass2764",
"handle": "disconcertedbass2764",
"id": "94241e2d-7e50-44db-9b7e-e6ca656894c1",
"image_large_url": "https://cdn2.suno.ai/image_large_94241e2d-7e50-44db-9b7e-e6ca656894c1.jpeg",
"image_url": "https://cdn2.suno.ai/image_94241e2d-7e50-44db-9b7e-e6ca656894c1.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": true,
"major_model_version": "v3",
"metadata": {
"duration": 74.68,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nOn the streets of Tianjin we dance in the rain\nLife's a wild river nothing to tame\nNeon lights flash hearts beat out loud\nIn the city of dreams we stand so proud\n\n[Bridge]\nFrom the markets to the river's bend\nStories of old and new blend\nEchoes of laughter fill the night\nTianjin's magic burning bright\n\n[Chorus]\nOh Tianjin you light up my soul\nEvery alley every goal\nIn your arms I find my way\nIn your embrace I want to stay",
"refund_credits": false,
"stream": true,
"tags": "pop lively",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/94241e2d-7e50-44db-9b7e-e6ca656894c1.mp4"
}
]
},
"message": ""
}
{
"code": "success",
"data": {
"task_id": "6e7dfb41-5a21-4189-8246-e2b6ae103ccd",
"notify_hook": "",
"action": "MUSIC",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730208225,
"start_time": 1730208225,
"finish_time": 1730208257,
"progress": "100%",
"data": [
{
"audio_url": "https://cdn1.suno.ai/53db4a32-cb40-4412-8c1f-34409d2f3327.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.webp",
"created_at": "2024-10-29T13:23:44.841Z",
"display_name": "DisconcertedBass2764",
"handle": "disconcertedbass2764",
"id": "53db4a32-cb40-4412-8c1f-34409d2f3327",
"image_large_url": "https://cdn2.suno.ai/image_large_53db4a32-cb40-4412-8c1f-34409d2f3327.jpeg",
"image_url": "https://cdn2.suno.ai/image_53db4a32-cb40-4412-8c1f-34409d2f3327.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": true,
"major_model_version": "v3",
"metadata": {
"duration": 64.36,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nOn the streets of Tianjin we dance in the rain\nLife's a wild river nothing to tame\nNeon lights flash hearts beat out loud\nIn the city of dreams we stand so proud\n\n[Bridge]\nFrom the markets to the river's bend\nStories of old and new blend\nEchoes of laughter fill the night\nTianjin's magic burning bright\n\n[Chorus]\nOh Tianjin you light up my soul\nEvery alley every goal\nIn your arms I find my way\nIn your embrace I want to stay",
"refund_credits": false,
"stream": true,
"tags": "pop lively",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/53db4a32-cb40-4412-8c1f-34409d2f3327.mp4"
},
{
"audio_url": "https://cdn1.suno.ai/94241e2d-7e50-44db-9b7e-e6ca656894c1.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.webp",
"created_at": "2024-10-29T13:23:44.841Z",
"display_name": "DisconcertedBass2764",
"handle": "disconcertedbass2764",
"id": "94241e2d-7e50-44db-9b7e-e6ca656894c1",
"image_large_url": "https://cdn2.suno.ai/image_large_94241e2d-7e50-44db-9b7e-e6ca656894c1.jpeg",
"image_url": "https://cdn2.suno.ai/image_94241e2d-7e50-44db-9b7e-e6ca656894c1.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": true,
"major_model_version": "v3",
"metadata": {
"duration": 74.68,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nOn the streets of Tianjin we dance in the rain\nLife's a wild river nothing to tame\nNeon lights flash hearts beat out loud\nIn the city of dreams we stand so proud\n\n[Bridge]\nFrom the markets to the river's bend\nStories of old and new blend\nEchoes of laughter fill the night\nTianjin's magic burning bright\n\n[Chorus]\nOh Tianjin you light up my soul\nEvery alley every goal\nIn your arms I find my way\nIn your embrace I want to stay",
"refund_credits": false,
"stream": true,
"tags": "pop lively",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/94241e2d-7e50-44db-9b7e-e6ca656894c1.mp4"
}
]
},
"message": ""
}
4.获取批量任务
shell
curl --request POST \
--url https://api.openai-hk.com/suno/fetch \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"ids": [
"57eb2c03-5d86-467b-b0df-cd08ce607e9d",
"24c35560-5d0a-470d-bd31-976d02d43926"
]
}'
curl --request POST \
--url https://api.openai-hk.com/suno/fetch \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"ids": [
"57eb2c03-5d86-467b-b0df-cd08ce607e9d",
"24c35560-5d0a-470d-bd31-976d02d43926"
]
}'
请求体
json
{
"ids": [
"57eb2c03-5d86-467b-b0df-cd08ce607e9d",
"24c35560-5d0a-470d-bd31-976d02d43926"
]
}
{
"ids": [
"57eb2c03-5d86-467b-b0df-cd08ce607e9d",
"24c35560-5d0a-470d-bd31-976d02d43926"
]
}
返回体
json
{
"code": "success",
"data": [
{
"task_id": "57eb2c03-5d86-467b-b0df-cd08ce607e9d",
"notify_hook": "",
"action": "MUSIC",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730178099,
"start_time": 1730178099,
"finish_time": 1730178141,
"progress": "100%",
"data": [
{
"audio_url": "https://cdn1.suno.ai/685346a2-e4d7-43f8-9daa-73bd110d84f0.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultBlue.webp",
"created_at": "2024-10-29T05:01:39.098Z",
"display_name": "DisconcertedOctet6941",
"handle": "disconcertedoctet6941",
"id": "685346a2-e4d7-43f8-9daa-73bd110d84f0",
"image_large_url": "https://cdn2.suno.ai/image_large_685346a2-e4d7-43f8-9daa-73bd110d84f0.jpeg",
"image_url": "https://cdn2.suno.ai/image_685346a2-e4d7-43f8-9daa-73bd110d84f0.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": false,
"major_model_version": "v3",
"metadata": {
"duration": 79.84,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nMidnight lights in 天津 glow\nStreet vendors shout they steal the show\nRiver hugs the city close\nHarmony here it overflows\n\n[Bridge]\nTemples stand time whispers old\nStories in the walls unfold\nTanghulu sticks and laughter greet\n天津 rhythm in every beat\n\n[Chorus]\nOh oh oh 天津 riding through the nights\nOh oh oh feel the city's lights\nOh oh oh 天津 dancing in the breeze\nOh oh oh city's got me feeling free",
"refund_credits": false,
"stream": true,
"tags": "pop vibrant",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/685346a2-e4d7-43f8-9daa-73bd110d84f0.mp4"
},
{
"audio_url": "https://cdn1.suno.ai/8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultBlue.webp",
"created_at": "2024-10-29T05:01:39.098Z",
"display_name": "DisconcertedOctet6941",
"handle": "disconcertedoctet6941",
"id": "8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6",
"image_large_url": "https://cdn2.suno.ai/image_large_8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.jpeg",
"image_url": "https://cdn2.suno.ai/image_8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": false,
"major_model_version": "v3",
"metadata": {
"duration": 71,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nMidnight lights in 天津 glow\nStreet vendors shout they steal the show\nRiver hugs the city close\nHarmony here it overflows\n\n[Bridge]\nTemples stand time whispers old\nStories in the walls unfold\nTanghulu sticks and laughter greet\n天津 rhythm in every beat\n\n[Chorus]\nOh oh oh 天津 riding through the nights\nOh oh oh feel the city's lights\nOh oh oh 天津 dancing in the breeze\nOh oh oh city's got me feeling free",
"refund_credits": false,
"stream": true,
"tags": "pop vibrant",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.mp4"
}
]
},
{
"task_id": "24c35560-5d0a-470d-bd31-976d02d43926",
"notify_hook": "",
"action": "LYRICS",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730209678,
"start_time": 1730209678,
"finish_time": 1730209687,
"progress": "100%",
"data": {
"status": "complete",
"text": "[Verse]\n骑着单车在海边漫游\n夕阳洒在我们的左右\n微风轻拂你的发梢\n你笑着说这一刻真好\n\n[Verse 2]\n我们在环岛路上追逐\n欢笑声比浪花还要酷\n沙滩上留下并肩脚印\n未来的梦在心里酝酿\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上\n\n[Verse 3]\n鼓浪屿的小巷中徘徊\n风琴声带我们走向未来\n古老建筑见证了时光\n我们牵手走在美丽天堂\n\n[Bridge]\n夜景灿烂如星光闪耀\n我们在这城市中狂跳\n厦门夜晚有如梦幻曲\n迷人风景永远让人迷\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上",
"title": "厦门"
}
}
],
"message": ""
}
{
"code": "success",
"data": [
{
"task_id": "57eb2c03-5d86-467b-b0df-cd08ce607e9d",
"notify_hook": "",
"action": "MUSIC",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730178099,
"start_time": 1730178099,
"finish_time": 1730178141,
"progress": "100%",
"data": [
{
"audio_url": "https://cdn1.suno.ai/685346a2-e4d7-43f8-9daa-73bd110d84f0.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultBlue.webp",
"created_at": "2024-10-29T05:01:39.098Z",
"display_name": "DisconcertedOctet6941",
"handle": "disconcertedoctet6941",
"id": "685346a2-e4d7-43f8-9daa-73bd110d84f0",
"image_large_url": "https://cdn2.suno.ai/image_large_685346a2-e4d7-43f8-9daa-73bd110d84f0.jpeg",
"image_url": "https://cdn2.suno.ai/image_685346a2-e4d7-43f8-9daa-73bd110d84f0.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": false,
"major_model_version": "v3",
"metadata": {
"duration": 79.84,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nMidnight lights in 天津 glow\nStreet vendors shout they steal the show\nRiver hugs the city close\nHarmony here it overflows\n\n[Bridge]\nTemples stand time whispers old\nStories in the walls unfold\nTanghulu sticks and laughter greet\n天津 rhythm in every beat\n\n[Chorus]\nOh oh oh 天津 riding through the nights\nOh oh oh feel the city's lights\nOh oh oh 天津 dancing in the breeze\nOh oh oh city's got me feeling free",
"refund_credits": false,
"stream": true,
"tags": "pop vibrant",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/685346a2-e4d7-43f8-9daa-73bd110d84f0.mp4"
},
{
"audio_url": "https://cdn1.suno.ai/8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.mp3",
"avatar_image_url": "https://cdn1.suno.ai/defaultBlue.webp",
"created_at": "2024-10-29T05:01:39.098Z",
"display_name": "DisconcertedOctet6941",
"handle": "disconcertedoctet6941",
"id": "8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6",
"image_large_url": "https://cdn2.suno.ai/image_large_8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.jpeg",
"image_url": "https://cdn2.suno.ai/image_8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.jpeg",
"is_handle_updated": false,
"is_liked": false,
"is_public": false,
"is_trashed": false,
"is_video_pending": false,
"major_model_version": "v3",
"metadata": {
"duration": 71,
"gpt_description_prompt": "天津",
"prompt": "[Verse]\nMidnight lights in 天津 glow\nStreet vendors shout they steal the show\nRiver hugs the city close\nHarmony here it overflows\n\n[Bridge]\nTemples stand time whispers old\nStories in the walls unfold\nTanghulu sticks and laughter greet\n天津 rhythm in every beat\n\n[Chorus]\nOh oh oh 天津 riding through the nights\nOh oh oh feel the city's lights\nOh oh oh 天津 dancing in the breeze\nOh oh oh city's got me feeling free",
"refund_credits": false,
"stream": true,
"tags": "pop vibrant",
"type": "gen"
},
"model_name": "chirp-v3",
"play_count": 0,
"status": "complete",
"title": "天津",
"upvote_count": 0,
"video_url": "https://cdn1.suno.ai/8dbaa7e6-0b99-4f11-bee9-2b68718cb6d6.mp4"
}
]
},
{
"task_id": "24c35560-5d0a-470d-bd31-976d02d43926",
"notify_hook": "",
"action": "LYRICS",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1730209678,
"start_time": 1730209678,
"finish_time": 1730209687,
"progress": "100%",
"data": {
"status": "complete",
"text": "[Verse]\n骑着单车在海边漫游\n夕阳洒在我们的左右\n微风轻拂你的发梢\n你笑着说这一刻真好\n\n[Verse 2]\n我们在环岛路上追逐\n欢笑声比浪花还要酷\n沙滩上留下并肩脚印\n未来的梦在心里酝酿\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上\n\n[Verse 3]\n鼓浪屿的小巷中徘徊\n风琴声带我们走向未来\n古老建筑见证了时光\n我们牵手走在美丽天堂\n\n[Bridge]\n夜景灿烂如星光闪耀\n我们在这城市中狂跳\n厦门夜晚有如梦幻曲\n迷人风景永远让人迷\n\n[Chorus]\n厦门 厦门 我们的天堂\n每天都有幸福在发光\n四季花开如画的模样\n甜蜜记忆永远在心上",
"title": "厦门"
}
}
],
"message": ""
}
5.歌曲拼接
shell
curl --request POST \
--url https://api.openai-hk.com/suno/submit/concat \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"clip_id": "a4715524-2d32-4ce3-a3dc-7e73d0705a98",
"is_infill": false
}'
curl --request POST \
--url https://api.openai-hk.com/suno/submit/concat \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"clip_id": "a4715524-2d32-4ce3-a3dc-7e73d0705a98",
"is_infill": false
}'
请求体
json
{
"clip_id": "a4715524-2d32-4ce3-a3dc-7e73d0705a98",
"is_infill": false
}
{
"clip_id": "a4715524-2d32-4ce3-a3dc-7e73d0705a98",
"is_infill": false
}
返回体 data
为 task_id
json
{
"code": "success",
"data": "1ce1322a-3db0-467a-821a-2029d1e5186f",
"message": ""
}
{
"code": "success",
"data": "1ce1322a-3db0-467a-821a-2029d1e5186f",
"message": ""
}