Skip to content

Suno Newapi 格式

2024.10.29 已兼容 Newapi 格式

  • 设置 渠道->添加渠道 按下图设计即可

newapi

1.生成歌词

post https://api.openai-hk.com/suno/submit/lyrics

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.生成音乐

post https://api.openai-hk.com/suno/submit/music

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
}

D.更多模式

更多模式场景 请参考 suno场景应用

请求体关键字说明

参数说明类型默认值
gpt_description_prompt灵感提示词string
mv模型 可行值有 chirp-v3-0 chirp-v3-5stringchirp-v3-0
title标题string
prompt歌词string
tags歌曲风格多个风格 请用空格分开string
continue_at开始时间integer(int64)
continue_clip_id上一个歌曲的IDstring

音乐返回体

上面3种模式最终生成的返回体 data 为任务 task_id

json
{
	"code": "success",
	"data": "6e7dfb41-5a21-4189-8246-e2b6ae103ccd",
	"message": ""
}
{
	"code": "success",
	"data": "6e7dfb41-5a21-4189-8246-e2b6ae103ccd",
	"message": ""
}

3.获取单个任务

GET https://api.openai-hk.com/suno/fetch/{task_id}

返回体.歌词

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.获取批量任务

post https://api.openai-hk.com/suno/fetch

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.歌曲拼接

  • 仅支持 mp3
  • 消耗资源比较多 会扣200积分

post https://api.openai-hk.com/suno/submit/concat

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
}

返回体 datatask_id

json
{
	"code": "success",
	"data": "1ce1322a-3db0-467a-821a-2029d1e5186f",
	"message": ""
}
{
	"code": "success",
	"data": "1ce1322a-3db0-467a-821a-2029d1e5186f",
	"message": ""
}

6.上传音频

  • 仅支持 mp3
  • 消耗资源比较多 会扣200积分

post https://api.openai-hk.com/sunoapi/uploads/audio-url

请求体

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": ""
}
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"
}'