1. NewAPI兼容格式
xi-ai
  • 发出请求
  • 模型接口
    • 聊天接口(Chat)
      • 聊天接口
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-vision-preview
    • 自动补全接口(Completions)
      • 内容补全接口
    • 图像接口(Images)
      • Midjourney
        • 补充 - 其他参数以及回调
        • InsightFace任务提交
          • 提交swap_face任务
        • 任务提交
          • 执行动作
          • 提交Blend任务
          • 提交Describe任务
          • 提交Imagine任务
          • 提交Modal
          • 提交Shorten任务
        • 任务查询
          • 查询所有任务
          • 根据ID列表查询任务
          • 分页查询任务
          • 查询任务队列
          • 取消任务
          • 指定ID获取任务
          • 获取任务图片的seed(需设置mj或niji的私信ID)
      • DALL·E 3
      • Stable-Diffusion
      • gpt-4-all(生成图片)
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • Suno音乐接口
      • GoAmzAI格式
        • v3.5
          • 生成音乐
          • 获取音乐
        • v3.0
          • 生成音乐
          • 获取音乐
      • 官网原生格式(v2)
        • 所有接口
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景1 生成自定义音乐(带歌词)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 2 通过提示词直接生成音乐(带歌词)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 4 通过提示词直接生成音乐(纯音乐)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景3 生成自定义音乐(纯音乐)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 5 上传自定义音频并续写
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
          • 查询任务(feed)
      • 生成歌词
        • 获取歌词
        • 生成歌词
      • NewAPI兼容格式
        • 生成音乐
          POST
        • 查询歌曲
          GET
  • sora-2
    • 视频统一格式
      • 图生视频
      • 文生视频
      • 查询任务
    • chat 格式
      • 连续修改生成视频
      • 使用公共人物(例如奥特曼)生成视频
      • 流式请求
      • 非流请求
      • 带图片请求
      • 不同比例的视频(横竖屏)
    • OpenAI官方视频格式(适配 newapi)
      • 创建视频
      • 查询视频详情
      • 下载视频(不推荐该方式,查询视频接口有返回 url的)
      • 编辑视频(remix)
  • midjouriney
    • InsightFace任务提交
      • 提交swap_face任务
    • 任务提交
      • 执行动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Imagine任务
      • 提交Modal
      • 提交Shorten任务
    • 任务查询
      • 查询所有任务
      • 根据ID列表查询任务
      • 分页查询任务
      • 查询任务队列
      • 取消任务
      • 指定ID获取任务
      • 获取任务图片的seed(需设置mj或niji的私信ID)
  • 帮助中心
    • 常见问题及解决办法
  • 文生视频
    • 创建文生视频任务
      POST
    • 查询文生视频任务
      GET
  • 图生视频
    • 创建图生视频任务
      POST
    • 查询图生视频任务列表
      GET
    • 查询图生视频任务
      GET
  • 多图参考生视频
    • 创建多图参考生视频任务
    • 查询多图参考生视频任务列表
    • 查询多图参考生视频任务
  • 视频延长
    • 创建视频延长任务
    • 查询视频延长任务列表
    • 查询视频延长任务
  • 视频生成
    • 创建文生视频或图生视频任务
    • 创建首尾帧生视频任务
  • 任务管理
    • 获取异步任务结果
  • GPTs 相关
    • GPTs对话
    • 搜索相关 GPTs(chat格式)
    • 搜索相关 GPTs(官方格式)
    • 查询 GPTs 详情(chat格式)
    • 查询 GPTs 详情(官方格式)
    • 批量查询 GPTs 详情(chat格式)
    • 批量查询 GPTs 详情(官方格式)
  • 智谱清言(glm)
  • openai
    • 介绍
    • 项目说明
    • 导言
    • 身份验证
    • 发出请求
    • 参数详情
    • 聊天(Chat)
      • gpts 请求
      • 聊天完成块对象
    • 自动补全(Completions)
      • 完成对象
    • 嵌入(Embeddings)
      • 嵌入对象
    • 微调(Fine-tuning)
      • 微调作业对象
      • 微调作业事件对象
    • 图像(Images)
      • README
      • 图像对象
    • 模型(Models)
      • 模型对象
    • 文件(Files)
      • README
      • 文件对象
    • 审查(Moderations)
      • 调节对象
    • 助手测试版(AssistantsBeta)
      • 辅助对象
      • 辅助文件对象
    • 线程数(Threads)
      • 线程对象
    • 留言(Messages)
      • 消息对象
      • 消息文件对象
    • 运行(Runs)
      • 运行对象
      • 运行步骤对象
  • 即梦视频生成
    POST
  1. NewAPI兼容格式

查询歌曲

GET
/suno/fetch/{task_id}

请求参数

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

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/suno/fetch/' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "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": "7a4bde37-f81a-4af2-a8a6-0d0c92f745b8",
                "tags": "acoustic vibes, whimsical, playful, female vocals",
                "state": "succeeded",
                "title": "Feline Reverie",
                "handle": "croora5o",
                "prompt": "[Verse]\nPaws tap-dance on the wooden floor\nWhiskered mischief I adore\nA tail that flicks like a metronome\nThis feline world feels like my home\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be\n\n[Verse 2]\nEyes like jewels they pierce my soul\nSilent watcher never extols\nA leap a stretch a quiet yawn\nYou rule the night and greet the dawn\n\n[Bridge]\nThe sofa's yours the bed is shared\nEvery snack must be declared\nA conqueror in a tiny size\nYou’ve claimed my heart no compromise\n\n[Verse 3]\nA paper bag you’ve turned to gold\nA cozy nook you love to hold\nFrom lofty perch you gaze on down\nIn your soft paws resides my crown\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be",
                "status": "complete",
                "clip_id": "7a4bde37-f81a-4af2-a8a6-0d0c92f745b8",
                "duration": 198.76,
                "is_liked": false,
                "metadata": {
                    "tags": "acoustic vibes, whimsical, playful, female vocals",
                    "type": "gen",
                    "prompt": "[Verse]\nPaws tap-dance on the wooden floor\nWhiskered mischief I adore\nA tail that flicks like a metronome\nThis feline world feels like my home\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be\n\n[Verse 2]\nEyes like jewels they pierce my soul\nSilent watcher never extols\nA leap a stretch a quiet yawn\nYou rule the night and greet the dawn\n\n[Bridge]\nThe sofa's yours the bed is shared\nEvery snack must be declared\nA conqueror in a tiny size\nYou’ve claimed my heart no compromise\n\n[Verse 3]\nA paper bag you’ve turned to gold\nA cozy nook you love to hold\nFrom lofty perch you gaze on down\nIn your soft paws resides my crown\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be",
                    "stream": true,
                    "duration": 198.76,
                    "is_remix": false,
                    "priority": 0,
                    "can_remix": true,
                    "refund_credits": false,
                    "free_quota_category": "web_v4_gen",
                    "gpt_description_prompt": "cat"
                },
                "audio_url": "https://cdn1.suno.ai/7a4bde37-f81a-4af2-a8a6-0d0c92f745b8.mp3",
                "image_url": "https://cdn2.suno.ai/image_7a4bde37-f81a-4af2-a8a6-0d0c92f745b8.jpeg",
                "is_public": false,
                "video_url": "https://cdn1.suno.ai/7a4bde37-f81a-4af2-a8a6-0d0c92f745b8.mp4",
                "created_at": "2025-05-05T15:03:51.024Z",
                "flag_count": 0,
                "is_trashed": false,
                "model_name": "chirp-v4",
                "play_count": 0,
                "entity_type": "song_schema",
                "display_name": "croora5o",
                "upvote_count": 0,
                "comment_count": 0,
                "allow_comments": true,
                "image_large_url": "https://cdn2.suno.ai/image_large_7a4bde37-f81a-4af2-a8a6-0d0c92f745b8.jpeg",
                "avatar_image_url": "https://cdn1.suno.ai/sAura19.jpg",
                "is_handle_updated": false,
                "major_model_version": "v4",
                "is_following_creator": false
            },
            {
                "id": "375c0c33-988c-4178-98aa-25613f1b763c",
                "tags": "acoustic vibes, whimsical, playful, female vocals",
                "state": "succeeded",
                "title": "Feline Reverie",
                "handle": "croora5o",
                "prompt": "[Verse]\nPaws tap-dance on the wooden floor\nWhiskered mischief I adore\nA tail that flicks like a metronome\nThis feline world feels like my home\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be\n\n[Verse 2]\nEyes like jewels they pierce my soul\nSilent watcher never extols\nA leap a stretch a quiet yawn\nYou rule the night and greet the dawn\n\n[Bridge]\nThe sofa's yours the bed is shared\nEvery snack must be declared\nA conqueror in a tiny size\nYou’ve claimed my heart no compromise\n\n[Verse 3]\nA paper bag you’ve turned to gold\nA cozy nook you love to hold\nFrom lofty perch you gaze on down\nIn your soft paws resides my crown\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be",
                "status": "complete",
                "clip_id": "375c0c33-988c-4178-98aa-25613f1b763c",
                "duration": 119.04,
                "is_liked": false,
                "metadata": {
                    "tags": "acoustic vibes, whimsical, playful, female vocals",
                    "type": "gen",
                    "prompt": "[Verse]\nPaws tap-dance on the wooden floor\nWhiskered mischief I adore\nA tail that flicks like a metronome\nThis feline world feels like my home\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be\n\n[Verse 2]\nEyes like jewels they pierce my soul\nSilent watcher never extols\nA leap a stretch a quiet yawn\nYou rule the night and greet the dawn\n\n[Bridge]\nThe sofa's yours the bed is shared\nEvery snack must be declared\nA conqueror in a tiny size\nYou’ve claimed my heart no compromise\n\n[Verse 3]\nA paper bag you’ve turned to gold\nA cozy nook you love to hold\nFrom lofty perch you gaze on down\nIn your soft paws resides my crown\n\n[Chorus]\nOh cat oh cat you're a mystery\nA stealthy shadow in history\nYou pounce you prance a royal spree\nThe queen of pets you’ll always be",
                    "stream": true,
                    "duration": 119.04,
                    "is_remix": false,
                    "priority": 0,
                    "can_remix": true,
                    "refund_credits": false,
                    "free_quota_category": "web_v4_gen",
                    "gpt_description_prompt": "cat"
                },
                "audio_url": "https://cdn1.suno.ai/375c0c33-988c-4178-98aa-25613f1b763c.mp3",
                "image_url": "https://cdn2.suno.ai/image_375c0c33-988c-4178-98aa-25613f1b763c.jpeg",
                "is_public": false,
                "video_url": "https://cdn1.suno.ai/375c0c33-988c-4178-98aa-25613f1b763c.mp4",
                "created_at": "2025-05-05T15:03:51.024Z",
                "flag_count": 0,
                "is_trashed": false,
                "model_name": "chirp-v4",
                "play_count": 0,
                "entity_type": "song_schema",
                "display_name": "croora5o",
                "upvote_count": 0,
                "comment_count": 0,
                "allow_comments": true,
                "image_large_url": "https://cdn2.suno.ai/image_large_375c0c33-988c-4178-98aa-25613f1b763c.jpeg",
                "avatar_image_url": "https://cdn1.suno.ai/sAura19.jpg",
                "is_handle_updated": false,
                "major_model_version": "v4",
                "is_following_creator": false
            }
        ]
    }
}
修改于 2025-08-29 16:51:10
上一页
生成音乐
下一页
图生视频
Built with