帮助/API文档
  1. 任务查询
帮助/API文档
  • 系统使用介绍
  • API介绍
  • 项目说明
  • 导言
  • 身份验证
  • 发出请求
  • 参数详情
  • 聊天(Chat)
    • 聊天完成对象
    • 聊天完成块对象
    • gpt-4-all
      • gpt-4-all(识图)
      • gpt-4-all(生成图片)
    • GPT创建聊天(补全)接口
      POST
    • 识图(gpt和gemini)
      POST
    • gpts
      POST
    • gemini-pro
      POST
  • 音频(Audio)
    • 创建语音
      POST
    • 创建转录
      POST
    • 创建翻译
      POST
  • 图像(Images)
    • README
    • 图像对象
    • 创建图像
    • 创建图片编辑
    • 创建图像变体
  • 文件(Files)
    • README
    • 文件对象
    • 上传文件
  • 自动补全(Completions)
    • 完成对象
    • 创建完成
  • 嵌入(Embeddings)
    • 嵌入对象
    • 创建嵌入
  • 音乐接口
    • Suno
      • 常用格式
        • 说明
        • 异步调用(API形式)格式
          • 任务提交
            • 生成歌曲
            • 生成歌词
            • 上传音乐
            • 歌曲拼接
          • 任务查询
            • 查询任务
              GET
            • 查询歌词
              GET
        • OpenAI 聊天格式
          POST
        • GoAmzAI格式
          POST
    • udio
      • 常用格式
        • 说明
        • 异步调用(API形式)格式
          • 任务提交
            • 生成歌曲
            • 续写
          • 任务查询
            • 查询任务
  • 绘图接口
    • Mid journey文生图
      • 说明:接口说明及参数
      • 任务提交
        • 提交Describe任务(图生文)
        • 提交Imagine任务(文生图、文图生图)
        • 提交Blend任务(图生图)
        • 绘图变化(UPSCALE; VARIATION; REROLL)
        • 执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)
        • 绘图变化-simple(UPSCALE; VARIATION; REROLL)
        • 提交Modal(提交局部重绘、ZOOM)
        • 提交Shorten任务(prompt分析)
      • 任务查询
        • 指定ID获取任务
        • 根据ID列表查询任务
        • 获取任务图片的seed
      • 提交swap_face任务
    • Flux文生图
      • 官方异步格式
        • flux生成图像
        • 指定ID获取任务
      • OpenAI 聊天格式
    • recraftv3文生图
      • OpenAI 聊天格式
      • OpenAI Dalle3格式
  • 视频接口
    • luma
      • 官方异步调用
        • 提交视频生成任务
        • 指定ID获取任务
        • 指定ID获取任务 Copy
        • 提交视频生成任务 Copy
      • GoAmzAI格式
        • 提交视频生成任务
        • 指定ID获取任务
      • OpenAI 聊天格式
  • 本系统API
    • 获取用户信息(含余额)
  1. 任务查询

查询任务

GET
{{BASE_URL}}/suno/fetch/{task_id}
支持,返回结果无code层级
{{BASE_URL}}/suno/feed/{task_id}
支持查询歌词,返回结果无code层级
{{BASE_URL}}/suno/lyrics/{task_id}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数

Header 参数

Body 参数application/json

示例
{}

请求示例代码

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 '{{BASE_URL}}/suno/fetch/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": "success",
    "message": "",
    "data": {
        "task_id": "64dc8d98-5812-40f5-a99b-79a590452040",
        "action": "MUSIC",
        "status": "SUCCESS",
        "fail_reason": "",
        "submit_time": 1730776470,
        "start_time": 1730776481,
        "finish_time": 1730776576,
        "progress": "100%",
        "data": [
            {
                "id": "95afcdae-0719-4e22-9307-7d473b3f8624",
                "title": "City Lights",
                "handle": "disconcertedencore5997",
                "status": "complete",
                "user_id": "8b75dd78-7ca5-4d5b-8e3b-b2914697ad1e",
                "is_liked": false,
                "metadata": {
                    "tags": "emotional punk",
                    "type": "gen",
                    "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",
                    "stream": true,
                    "history": null,
                    "duration": 120,
                    "error_type": null,
                    "error_message": null,
                    "concat_history": null,
                    "refund_credits": false,
                    "audio_prompt_id": null,
                    "gpt_description_prompt": null
                },
                "reaction": null,
                "audio_url": "https://cdn1.suno.ai/95afcdae-0719-4e22-9307-7d473b3f8624.mp3",
                "image_url": "https://cdn2.suno.ai/image_95afcdae-0719-4e22-9307-7d473b3f8624.jpeg",
                "is_public": false,
                "video_url": "https://cdn1.suno.ai/95afcdae-0719-4e22-9307-7d473b3f8624.mp4",
                "created_at": "2024-11-05T03:14:30.687Z",
                "is_trashed": false,
                "model_name": "chirp-v3",
                "play_count": 0,
                "display_name": "DisconcertedEncore5997",
                "upvote_count": 0,
                "image_large_url": "https://cdn2.suno.ai/image_large_95afcdae-0719-4e22-9307-7d473b3f8624.jpeg",
                "is_video_pending": false,
                "is_handle_updated": false,
                "major_model_version": "v3"
            },
            {
                "id": "cfe8403c-9986-47bf-a300-06ad12368a8d",
                "title": "City Lights",
                "handle": "disconcertedencore5997",
                "status": "complete",
                "user_id": "8b75dd78-7ca5-4d5b-8e3b-b2914697ad1e",
                "is_liked": false,
                "metadata": {
                    "tags": "emotional punk",
                    "type": "gen",
                    "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",
                    "stream": true,
                    "history": null,
                    "duration": 120,
                    "error_type": null,
                    "error_message": null,
                    "concat_history": null,
                    "refund_credits": false,
                    "audio_prompt_id": null,
                    "gpt_description_prompt": null
                },
                "reaction": null,
                "audio_url": "https://cdn1.suno.ai/cfe8403c-9986-47bf-a300-06ad12368a8d.mp3",
                "image_url": "https://cdn2.suno.ai/image_cfe8403c-9986-47bf-a300-06ad12368a8d.jpeg",
                "is_public": false,
                "video_url": "https://cdn1.suno.ai/cfe8403c-9986-47bf-a300-06ad12368a8d.mp4",
                "created_at": "2024-11-05T03:14:30.687Z",
                "is_trashed": false,
                "model_name": "chirp-v3",
                "play_count": 0,
                "display_name": "DisconcertedEncore5997",
                "upvote_count": 0,
                "image_large_url": "https://cdn2.suno.ai/image_large_cfe8403c-9986-47bf-a300-06ad12368a8d.jpeg",
                "is_video_pending": true,
                "is_handle_updated": false,
                "major_model_version": "v3"
            }
        ]
    },
    "id": ""
}
修改于 2024-12-17 14:43:43
上一页
歌曲拼接
下一页
查询歌词
Built with