kksjAPI(OpenAI)中文文档 copy
  1. suno
kksjAPI(OpenAI)中文文档 copy
  • 请求代码示例
  • 发出请求
  • 模型接口
    • 模型(Models)
      • 列出模型
    • 聊天接口(Chat)
      • 聊天接口(通用)
      • openai 图片分析
    • 自动补全接口(Completions)
      • 完成对象
      • 内容补全接口
    • 图像接口(Images)
      • Midjourney Proxy API文档
        • InsightFace任务提交
          • 提交swap_face任务
        • 任务提交
          • 执行动作
          • 提交Blend任务
          • 提交Describe任务
          • 提交Imagine任务
          • 提交Modal
          • 提交Shorten任务
          • 上传文件到discord
        • 任务查询
          • 分页查询任务
          • 查询任务队列
          • 取消任务
          • 指定ID获取任务
          • 获取任务图片的seed(需设置mj或niji的私信ID)
      • DALL·E 3
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音乐生成接口
      • suno
        • 音乐生成接口
          POST
        • 生成歌词接口
          POST
        • 查询单个任务接口
          GET
        • 批量查询接口
          POST
    • 视频生成接口
      • vidu接口
        • 创建视频
        • 视频查询
      • luma接口
        • 创建视频
        • 视频查询
        • 视频拓展
      • runway接口
        • 创建视频
        • 视频查询
      • cogvideox接口
        • 创建视频
        • 视频查询
  • 帮助中心
    • 常见问题及解决办法
  1. suno

查询单个任务接口

GET
/suno/fetch/{task_id}

请求参数

Path 参数
task_id
string 
任务id
必需
示例值:
736a6f88-bd29-4b1e-b110-37132a5325ac
Header 参数
Content-Type
string 
必需
示例值:
application/json
Accept
string 
必需
示例值:
application/json
Authorization
string 
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
object {0}
示例
1.灵感模式

{
    "gpt_description_prompt": "cat"
}

2.自定义模式
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "emotional punk",
    "mv": "chirp-v3-0",
    "title": "City Lights"
}

3.续写
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "bass-driven atmospheric heavy metal",
    "mv": "chirp-v3-0",
    "title": "City Lights",
    "task_id": "736a6f88-bd29-4b1e-b110-37132a5325ac"
    "continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
    "continue_at": 80
}

示例代码

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.kksj.org/suno/fetch/736a6f88-bd29-4b1e-b110-37132a5325ac' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '1.灵感模式

{
    "gpt_description_prompt": "cat"
}

2.自定义模式
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'\''m alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it'\''s music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "emotional punk",
    "mv": "chirp-v3-0",
    "title": "City Lights"
}

3.续写
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'\''m alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it'\''s music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "bass-driven atmospheric heavy metal",
    "mv": "chirp-v3-0",
    "title": "City Lights",
    "task_id": "736a6f88-bd29-4b1e-b110-37132a5325ac"
    "continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
    "continue_at": 80
}'

返回响应

🟢200OK
application/json
Body
code
string 
必需
message
string 
必需
data
object 
task_id
必需
task_id
string 
必需
notify_hook
string 
必需
action
string 
必需
status
string 
必需
fail_reason
string 
必需
submit_time
string 
必需
start_time
string 
必需
finish_time
string 
必需
progress
string 
必需
data
object 
必需
示例
{
    "code": "success",
    "message": "",
    "data": {
        "task_id": "f4a94d75-087b-4bb1-bd45-53ba293faf96",
        "notify_hook": "",
        "action": "LYRICS",
        "status": "SUCCESS",
        "fail_reason": "",
        "submit_time": 1716192124,
        "start_time": 1716192124,
        "finish_time": 1716192124,
        "progress": "100%",
        "data": {
            "id": "f4a94d75-087b-4bb1-bd45-53ba293faf96",
            "text": "[Verse]\nDancing in the neon light\nWith the rhythm\nFeeling so right\nMiku's here to steal the show\nWatch her dance\nFeel the techno glow\n\nShe's got moves like no one else\nIn this digital carousel\nWith her voice\nShe mesmerizes\nEvery beat\nEvery sound maximizes\n\n[Verse 2]\nIn her virtual world\nShe's the queen\nWith energy like you've never seen\nShe'll take you on a cosmic ride\nWith her dance moves\nShe can't hide",
            "title": "Electric Fantasy",
            "status": "complete"
        }
    }
}
修改于 2024-08-19 17:02:24
上一页
生成歌词接口
下一页
批量查询接口
Built with