生成歌词
POST
https://xuedingmao.online/suno/submit/lyrics
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Accept
string
必需
示例值:
application/json
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
歌词提示词
notify_hook
string
回调地址
示例
{
"prompt": "string",
"notify_hook": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://xuedingmao.online/suno/submit/lyrics' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "string",
"notify_hook": "string"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
data
string
必需
message
string
必需
示例
{
"code": "success",
"data": "47443cc1-4902-42ae-ae7f-72a9900544e9",
"message": ""
}