慧言API
  1. 音乐
慧言API
  • chatgpt对话
    • gpt-3.5-turbo
      POST
    • gpt-4o-mini
      POST
    • gpt-4o
      POST
    • chatgpt-4o-latest
      POST
    • o1-mini
      POST
    • o3
      POST
    • deepseek-r1
      POST
    • 函数
      POST
    • embedding
      POST
  • chatgpt绘图识图
    • 绘图gpt-4o-image
      POST
    • 识图gpt-4o-image
      POST
    • gpt-4-turbo
      POST
    • gpt-4o
      POST
    • gpt-4o-mini
      POST
    • 绘图dalle3
      POST
  • claude-gemini
    • claude-3-7-sonnet-20250219
      POST
    • claude-3-5-sonnet-20241022
      POST
    • claude-3-5-sonnet-20240620
      POST
    • claude-3-opus-20240229
      POST
    • claude-3-haiku-20240307
      POST
    • gemini2
      POST
  • 逆向模型
    • 识图gpt-4-all
      POST
    • 绘图gpt-4-all
      POST
    • 逆向流式o1-mini-all
      POST
  • 绘图midjourney-proxy-plus
    • 任务提交
      • 文生图
      • 提交Describe任务
      • 提交Modal
      • 执行动作
      • 上传文件到discord
      • 提交Shorten任务
      • 提交Blend任务
    • 任务查询
      • 根据ID列表查询任务
      • 分页查询任务
      • 取消任务
      • 指定ID获取任务
      • 查询任务队列
      • 根据ID列表查询任务-字段displays
      • 获取任务图片的seed(需设置mj或niji的私信ID)
      • 查询所有任务
    • InsightFace任务提交
      • 提交swap_face任务
  • 音乐
    • suno音乐
      POST
    • 查询音乐
      GET
    • 上传音乐
      POST
  1. 音乐

查询音乐

开发中
GET
https://api.huiyan-ai.cn/suno/fetch/{task_id}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
task_id
string 
必需
示例值:
a51a688c-eeca-194a-1e1e-f8cf285c4df6

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.huiyan-ai.cn/suno/fetch/a51a688c-eeca-194a-1e1e-f8cf285c4df6'

返回响应

🟢200成功
application/json
Body
code
string 
必需
message
string 
必需
data
object 
必需
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": "success",
    "message": "",
    "data": {
        "task_id": "12cbe842-7456-96c8-a03e-34c28ed22807",
        "action": "MUSIC",
        "status": "SUCCESS",
        "fail_reason": "",
        "submit_time": 1740891146,
        "start_time": 1740891146,
        "finish_time": 1740891412,
        "progress": "100%",
        "data": [
            {
                "id": "bc442705-1bfe-46e1-978b-356b3fcc84f9",
                "mv": "chirp-v4",
                "msg": "",
                "tags": "lively, pop",
                "state": "succeeded",
                "title": "可爱的春天",
                "prompt": "[Verse]\n花开满地笑我心结冰\n风儿轻轻吹蜜语不停\n阳光洒满了青春的梦\n守着你我的心跳呼应\n\n[Verse 2]\n蝴蝶飞舞在蓝天之间\n小溪流淌入心田无边\n你和我牵手散步田园\n春天来了梦想成真缘\n\n[Chorus]\n哦可爱的春天来了我心如潮\n万物复苏大地换新颜我逍遥\n你在我身边笑语盈盈多美好\n可爱的春天带来幸福的讯号\n\n[Bridge]\n采摘一束野花送予你\n春光中相伴美好无比\n花香弥漫唤醒了甜蜜\n在这春天里心花怒放\n\n[Verse 3]\n绿草如茵铺满了爱情\n燕子飞回筑起新巢亭\n共度春日你我情投意合\n心中的花园从此永不停\n\n[Chorus]\n哦可爱的春天来了我心如潮\n万物复苏大地换新颜我逍遥\n你在我身边笑语盈盈多美好\n可爱的春天带来幸福的讯号",
                "status": "complete",
                "clip_id": "bc442705-1bfe-46e1-978b-356b3fcc84f9",
                "history": null,
                "task_id": "12cbe842-7456-96c8-a03e-34c28ed22807_1",
                "duration": 186,
                "audio_url": "https://cdn1.suno.ai/bc442705-1bfe-46e1-978b-356b3fcc84f9.mp3",
                "image_url": "https://cdn2.suno.ai/image_bc442705-1bfe-46e1-978b-356b3fcc84f9.jpeg",
                "video_url": "https://cdn1.suno.ai/bc442705-1bfe-46e1-978b-356b3fcc84f9.mp4",
                "continue_at": null,
                "create_time": "1740890959",
                "update_time": "1740891165",
                "concat_history": null,
                "image_large_url": "https://cdn2.suno.ai/image_large_bc442705-1bfe-46e1-978b-356b3fcc84f9.jpeg",
                "continue_clip_id": null,
                "gpt_description_prompt": "可爱的春天"
            },
            {
                "id": "acac2847-664e-4251-9e52-9902424af3db",
                "mv": "chirp-v4",
                "msg": "",
                "tags": "High quality",
                "state": "succeeded",
                "title": "可爱的春天",
                "prompt": "[Verse]\n花开满地笑我心结冰\n风儿轻轻吹蜜语不停\n阳光洒满了青春的梦\n守着你我的心跳呼应\n\n[Verse 2]\n蝴蝶飞舞在蓝天之间\n小溪流淌入心田无边\n你和我牵手散步田园\n春天来了梦想成真缘\n\n[Chorus]\n哦可爱的春天来了我心如潮\n万物复苏大地换新颜我逍遥\n你在我身边笑语盈盈多美好\n可爱的春天带来幸福的讯号\n\n[Bridge]\n采摘一束野花送予你\n春光中相伴美好无比\n花香弥漫唤醒了甜蜜\n在这春天里心花怒放\n\n[Verse 3]\n绿草如茵铺满了爱情\n燕子飞回筑起新巢亭\n共度春日你我情投意合\n心中的花园从此永不停\n\n[Chorus]\n哦可爱的春天来了我心如潮\n万物复苏大地换新颜我逍遥\n你在我身边笑语盈盈多美好\n可爱的春天带来幸福的讯号",
                "status": "complete",
                "clip_id": "acac2847-664e-4251-9e52-9902424af3db",
                "history": null,
                "task_id": "12cbe842-7456-96c8-a03e-34c28ed22807_2",
                "duration": 172,
                "audio_url": "https://cdn1.suno.ai/acac2847-664e-4251-9e52-9902424af3db.mp3",
                "image_url": "https://cdn2.suno.ai/image_acac2847-664e-4251-9e52-9902424af3db.jpeg",
                "video_url": "https://cdn1.suno.ai/acac2847-664e-4251-9e52-9902424af3db.mp4",
                "continue_at": null,
                "create_time": "1740890959",
                "update_time": "1740891124",
                "concat_history": null,
                "image_large_url": "https://cdn2.suno.ai/image_large_acac2847-664e-4251-9e52-9902424af3db.jpeg",
                "continue_clip_id": null,
                "gpt_description_prompt": "可爱的春天"
            }
        ]
    }
}
修改于 2025-01-10 07:00:53
上一页
suno音乐
下一页
上传音乐
Built with