- 发出请求
- 模型接口
- 完成对象
- OpenAI接口
- 文生图接口
- Realtime (实时语音、对话)
- Anthropic Claude
- 谷歌Gemini
- Midjourney
- GPTs 相关
- 文生音乐
- 文生视频
- Rerank API
- Python配置方式
- 帮助中心
- 回收站
生成歌词(API格式)
主站接口①
主站接口①
POST
https://api2.aigcbest.top
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Content-Type
string
可选
示例值:
application/json
Accept
string
可选
示例值:
application/json
Body 参数application/json
prompt
string
歌词提示词
notify_hook
string
回调地址
示例
{
"prompt": "dance"
}
示例代码
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://api2.aigcbest.top/suno/submit/lyrics' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "dance"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
data
string
task_id
示例
{
"code": "success",
"message": "",
"data": "736a6f88-bd29-4b1e-b110-37132a5325ac"
}
修改于 2024-11-27 04:17:15