- (必读)网站使用教程
- (必读)前言
- 批量请求示例
- 常见问题及解决办法
- 聊天模型
- 音乐生成
- Suno
- 接口介绍
- 场景一:续写音乐并获取完整音乐
- 场景二:Cover 音乐:音乐翻版\修改风格
- 场景三:Replace Section:替换片段
- 场景四:Persona:歌手风格
- 场景五:stems:声曲分离(仅限chirp_auk)
- 场景六:Timing:歌词、音频时间线(仅限chirp_auk)
- 场景七:wav:获取 wav 格式文件
- 场景八:mp4:生成 mp4 mv 视频(仅限chirp_auk)
- 聊天方式:生成歌曲POST
- 任务:生成歌曲POST
- 任务:生成歌词POST
- 上传音乐POST
- 歌曲拼接POST
- 查询:批量查询任务POST
- 获取 wav 格式文件GET
- 生成 mp4 mv 视频GET
- 声曲分离GET
- 查询:单个任务GET
- Timing:歌词、音频时间线GET
- Udio
- 绘画模型
- 音频模型
- 视频生成
- 查询令牌用量GET
- 查询令牌限额GET
查询:批量查询任务
POST
https://api.apicore.ai/suno/fetch
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
Body 参数application/json
ids
array[string]
任务ID列表
action
enum<string>
回调地址
枚举值:
MUSICLYRICS
示例值:
MUSIC
示例
{
"ids": [
"2a145658-3342-4228-b779-b8323a2b77df1",
"2a145658-3342-4228-b779-b8323a2b77df2"
]
}
或
{
"ids": [
"2a145658-3342-4228-b779-b8323a2b77df1",
"2a145658-3342-4228-b779-b8323a2b77df2"
],
"action": "MUSIC"
}
示例代码
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://api.apicore.ai/suno/fetch' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"ids": [
"2a145658-3342-4228-b779-b8323a2b77df1",
"2a145658-3342-4228-b779-b8323a2b77df2"
]
}
或
{
"ids": [
"2a145658-3342-4228-b779-b8323a2b77df1",
"2a145658-3342-4228-b779-b8323a2b77df2"
],
"action": "MUSIC"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
data
array [object {9}]
必需
task_id
string
必需
action
string
必需
status
string
必需
fail_reason
string
必需
submit_time
integer
必需
start_time
integer
必需
finish_time
integer
必需
progress
string
必需
data
array [object {22}]
必需
示例
{
"code": "string",
"message": "string",
"data": [
{
"task_id": "string",
"action": "string",
"status": "string",
"fail_reason": "string",
"submit_time": 0,
"start_time": 0,
"finish_time": 0,
"progress": "string",
"data": [
{
"id": "string",
"title": "string",
"handle": "string",
"status": "string",
"user_id": "string",
"is_liked": true,
"metadata": {
"tags": "string",
"type": "string",
"prompt": "string",
"stream": true,
"history": null,
"duration": 0,
"error_type": null,
"error_message": null,
"concat_history": null,
"refund_credits": true,
"audio_prompt_id": null,
"gpt_description_prompt": null
},
"reaction": null,
"audio_url": "string",
"image_url": "string",
"is_public": true,
"video_url": "string",
"created_at": "string",
"is_trashed": true,
"model_name": "string",
"play_count": 0,
"display_name": "string",
"upvote_count": 0,
"image_large_url": "string",
"is_video_pending": true,
"is_handle_updated": true,
"major_model_version": "string"
}
]
}
]
}