SKUAI接口文档
  1. newApi格式
SKUAI接口文档
  • 使用须知
  • OpenAI 通用接口
    • 聊天
      • 1.聊天接口(OpenAI格式通用)
    • 图像
      • 1.创建图像
      • 2.创建图片编辑
  • 绘图模型
    • Midjourney
      • 1.文生图(Imagine)接口
      • 2.按钮点击(Action)接口
      • 3.图片融合(Blend)接口
      • 4.窗口执行(Modal)接口
      • 5.图生文(Describe)接口
      • 6.缩短提示词(Shorten)接口
      • 7.换脸(FaceSwap)接口
      • 8.上传(upload)接口
      • 9.查询接口
      • 10.批量查询接口
      • 11.获取种子(Seed)接口
      • 12.刷新链接(Refresh)接口
    • Flux
      • 官方格式
        • 1.生成图片
        • 2.查询任务
      • OpenAI格式
        • 1.创建图像
        • 2.创建图片编辑
    • Ideogram
      • 1.Generate(文生图)
      • 2.Edit(编辑)
      • 3.Remix(混合图)
      • 4.Upscale(放大高清)
      • 5.Describe(图生文)
  • 音乐模型
    • Suno
      • zeakAi格式
        • 1.生成歌词接口
        • 2.获取歌词接口
        • 3.生成音乐(灵感模式)
        • 4.生成音乐(专业模式)
        • 5.生成音乐(翻唱模式)
        • 6.局部编辑音乐
        • 7.上传音乐
        • 8.续写音乐
        • 9.裁剪音乐
        • 10.合并音乐
        • 11.查询音乐
      • newApi格式
        • 1.生成歌词接口
          POST
        • 2.生成音乐接口
          POST
        • 3.上传音乐接口
          POST
        • 4.歌曲拼接接口
          POST
        • 5.查询任务
          GET
  1. newApi格式

5.查询任务

GET
/suno/fetch/{task_id}
查询歌词/音乐任务

请求参数

Path 参数
task_id
string 
任务ID
必需
示例值:
17350521802760039
Header 参数
Authorization
string 
用户中心获取的密钥
可选
示例值:
{{YOUR_API_KEY}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://openapi.sku.vip/suno/fetch/17350521802760039' \
--header 'Authorization: ed822e3a-ec11-48d5-9739-55f4b402e7b0'

返回响应

🟢200成功
application/json
Body
code
string 
状态
必需
message
string 
信息
必需
data
object 
歌词/歌曲
必需
taskId
string 
任务id
必需
action
string 
任务类型
必需
LYRICS、MUSIC
status
string 
任务状态
必需
可用值:SUBMITTED,RUNNING,FAILURE,SUCCESS
failReason
null 
失败原因
必需
submitTime
integer 
提交时间
必需
startTime
integer 
开始时间
必需
finishTime
integer 
结束时间
必需
progress
string 
进度
必需
data
array [object {15}] 
具体数据
必需
示例
{
    "code": "success",
    "message": "success",
    "data": {
        "taskId": "17350521802760039",
        "action": "LYRICS",
        "status": "SUCCESS",
        "failReason": null,
        "submitTime": 1735052180,
        "startTime": 1735052180,
        "finishTime": 1735052180,
        "progress": "100%",
        "data": {
            "title": "Rainbow After the Rain",
            "text": "[Verse]\nStanding on a rooftop feeling the pain\nWaves of sadness pouring like grain\nBut the storm passes leaves no stain\nHere comes the rainbow after the rain\n\n[Verse 2]\nCity lights flicker neon signs\nHearts recovering from tangled vines\nFind your strength in moments of strain\nLook for the rainbow after the rain\n\n[Chorus]\nColors burst they break the chain\nHope ignites no more restrain\nIn the sky there's no disdain\nShine like a rainbow after the rain\n\n[Verse 3]\nFeet on the ground rising again\nDreams revived in every lane\nLife’s a canvas don’t refrain\nPaint it bright after the rain\n\n[Bridge]\nWhispers of wind melodies plain\nTales of joy and love regain\nIn every drop there's something to gain\nFind your rainbow after the rain\n\n[Chorus]\nColors burst they break the chain\nHope ignites no more restrain\nIn the sky there's no disdain\nShine like a rainbow after the rain",
            "status": "SUCCESS"
        }
    }
}
修改于 2025-03-09 12:25:55
上一页
4.歌曲拼接接口
Built with