DeerAPI-API文档
  1. Suno
DeerAPI-API文档
  • 帮助中心
    • 模型上新公告
    • 平台通知
    • 帮助中心
    • 快速开始
    • 关于价格
    • 关于分组
    • 接口稳定性
    • 隐私政策
    • 服务条款
    • 报错状态码说明
    • 代码示例
    • 入门必看
    • 常见误区
    • 使用困惑
    • 最佳实践
      • Deerapi 账户余额查询API 使用说明
      • 使用 DeerAPI 和 OpenAI 官方 API 的重试逻辑说明文档
      • Midjorney调用最佳实践
      • Runway调用最佳实践
  • OpenAI格式
    • gpt-4o-image生图
      POST
    • 聊天
      POST
    • 识图
      POST
    • 获取模型列表
      GET
    • 嵌入
      POST
    • 图像
      POST
    • Realtime
      POST
    • 图像编辑(gpt-image-1)
      POST
  • 音频
    • 文本转音频
    • 音频转文本
    • 创建翻译
  • Anthropic 格式
    • Anthropic Claude
  • 音乐生成
    • Suno
      • 设置 suno 版本
      • 生成歌词
        POST
      • 生成音乐
        POST
      • 上传音乐
        POST
      • 歌曲拼接
        POST
      • 查询单个任务
        GET
      • 批量查询任务
        POST
    • Udio(暂不可用)
      • 生成音乐
      • 查询单个任务
  • Midjourney 图像生成
    • 快速教学-完整流程一遍过
    • 任务查询
      • 分页查询
      • 指定ID获取任务
    • 提交Imagine任务
    • 提交Action任务
    • 提交Blend任务
    • 提交Describe任务
    • 提交Modal
  • 视频生成
    • runway(video)
      • 官方格式
        • 从图像生成视频
        • 获取任务详细信息
      • 逆向格式
        • generate(文本)
        • generate(参考图片)
        • video2video 视频转视频 风格重绘
        • Act-one 表情迁移
        • feed-获取任务
    • kling (video)
      • Callback协议
      • 生成图像
      • 文生视频
      • 图生视频
      • 视频延长
      • 虚拟试穿
      • 对口型
      • 查询任务(单个)
    • luma (video)
      • 官方API格式
        • 生成视频
        • 单个查询任务
    • MiniMax 海螺(video)
      • 官方文档
      • 视频生成
      • 查询任务
      • 文件下载
    • PIKA(video)
      • 通用版
        • generate video
        • 查询视频任务
      • generate(参考视频/扩展视频)
      • generate(参考图片)
      • generate(文本)
      • feed
    • sora
      • 逆向格式
        • 创建视频
        • 生成视频
        • 查询视频任务
  • 图像生成
    • ideogram(images)
      • 官方文档(实时更新)
      • Generate 3.0(文生图)
      • Reframe 3.0(重构)
      • Replace Background 3.0(背景替换)
      • Remix 3.0(混合图)
      • Edit 3.0(编辑)
      • Generate(文生图)
      • Remix(混合图)
      • Upscale(放大高清)
      • Describe(描述)
      • Edit(编辑)
    • Flux(images)
      • 生成图片(replicate格式)
      • 生成图片(暂不可用)
      • 微调(暂不可用)
      • 查询任务
    • Replicate(image)
      • 创建任务
      • 查询任务
    • Recraft(images)
      • 附录
      • Generate Image(生成图片)
      • Vectorize Image(矢量化图片)
      • Remove Background(删除背景)
      • Clarity Upscale(清晰度提升)
      • Create style(创建样式)
      • Generative Upscale(生成高清)
  • 应用集成指南
    • DeerAPI 本站调用
    • OpenManus
    • Chatbox
    • CherryStudio
    • Cursor
    • ChatAll
    • ChatHub
    • COZE
    • FastGPT
    • Lobe-Chat
    • NEXT CHAT (ChatGPT Next Web)
    • cline
    • gptme
    • LangChain
    • AnythingLLM
    • Zotero
    • librechat
    • avante.nvim
    • Dify
    • OpenAI Translator
    • Open WebUI
    • obsidian的text generator插件
    • STranslate
    • 沉浸式翻译
    • Pot 翻译
    • 欧陆翻译
    • utools-ChatGPT 好友
    • GPT 学术优化(gpt_academic)
    • 懒人客服
    • IntelliJ Translation Plugin
  1. Suno

批量查询任务

POST
https://api.deerapi.com/suno/fetch

获取 Suno 数据#

此 API 端点用于使用 HTTP POST 请求从 Suno 任务中获取响应。

请求正文#

{ “ids”: [“task_1”], “action”: “MUSIC"}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/suno/fetch' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": [
        "task_1",
        "task_2",
        "task_3"
    ],
    "action": "MUSIC" // or LYRICS
}'
响应示例响应示例
{
    "code": "success",
    "message": "",
    "data": [
        {
            "task_id": "346c5d10-a4a1-4f49-a851-66a7dae6cfaf",
            "notify_hook": "",
            "action": "MUSIC",
            "status": "IN_PROGRESS",
            "fail_reason": "",
            "submit_time": 1716191749,
            "start_time": 1716191786,
            "finish_time": 0,
            "progress": "0%",
            "data": [
                {
                    "id": "e9893d04-6a63-4007-8473-64b706eca4d1",
                    "title": "Electric Dance Party",
                    "status": "streaming",
                    "metadata": {
                        "tags": "club banger high-energy edm",
                        "prompt": "[Verse]\nEverybody in the place\nLet's go\nJump and dance\nFeel the rhythm\nLose control (ooh-yeah!)\nHands up in the air\nIt's time to show\nMove your body like you're on a roll\n\nShake it to the left\nShake it to the right\nFeel the bass\nFeel the beat\nAll night (ooh-yeah!)\nMiku's in the house\nGonna set the stage on fire\nGet ready for a wild ride\nIt's our desire\n\n[Verse 2]\nLights are flashing\nColors everywhere (ooh-yeah!)\nFeel the energy\nIt's in the air\nWe're unstoppable\nNothing can bring us down\nDancing to the beat\nThe whole world around",
                        "duration": null,
                        "error_type": null,
                        "error_message": null,
                        "audio_prompt_id": null,
                        "gpt_description_prompt": "miku dance"
                    },
                    "audio_url": "https://audiopipe.suno.ai/?item_id=e9893d04-6a63-4007-8473-64b706eca4d1",
                    "image_url": "https://cdn1.suno.ai/image_e9893d04-6a63-4007-8473-64b706eca4d1.png",
                    "video_url": "",
                    "model_name": "chirp-v3",
                    "image_large_url": "https://cdn1.suno.ai/image_large_e9893d04-6a63-4007-8473-64b706eca4d1.png",
                    "major_model_version": "v3"
                },
                {
                    "id": "fe69611b-fc72-4f6e-b476-5eef0b88c2e3",
                    "title": "Electric Dance Party",
                    "status": "streaming",
                    "metadata": {
                        "tags": "club banger high-energy edm",
                        "prompt": "[Verse]\nEverybody in the place\nLet's go\nJump and dance\nFeel the rhythm\nLose control (ooh-yeah!)\nHands up in the air\nIt's time to show\nMove your body like you're on a roll\n\nShake it to the left\nShake it to the right\nFeel the bass\nFeel the beat\nAll night (ooh-yeah!)\nMiku's in the house\nGonna set the stage on fire\nGet ready for a wild ride\nIt's our desire\n\n[Verse 2]\nLights are flashing\nColors everywhere (ooh-yeah!)\nFeel the energy\nIt's in the air\nWe're unstoppable\nNothing can bring us down\nDancing to the beat\nThe whole world around",
                        "duration": null,
                        "error_type": null,
                        "error_message": null,
                        "audio_prompt_id": null,
                        "gpt_description_prompt": "miku dance"
                    },
                    "audio_url": "https://audiopipe.suno.ai/?item_id=fe69611b-fc72-4f6e-b476-5eef0b88c2e3",
                    "image_url": "https://cdn1.suno.ai/image_fe69611b-fc72-4f6e-b476-5eef0b88c2e3.png",
                    "video_url": "",
                    "model_name": "chirp-v3",
                    "image_large_url": "https://cdn1.suno.ai/image_large_fe69611b-fc72-4f6e-b476-5eef0b88c2e3.png",
                    "major_model_version": "v3"
                }
            ]
        }
    ]
}

请求参数

Header 参数
Authorization
string 
必需
示例值:
Bearer {{api-key}}
Body 参数application/json
ids
array[string]
必需
action
string 
必需
操作:MUSIC、LYRICS
示例

返回响应

🟢200Batch task fetch
application/json
Body
code
string 
必需
API请求的响应状态码
message
string 
响应消息
必需
data
array [object {10}] 
包含主要数据的数组
必需
task_id
string 
任务的唯一标识符
可选
notify_hook
string 
可选
任务完成或状态变更时的回调通知URL (webhook)
action
string 
任务执行的动作类型
可选
status
string 
任务的当前状态
可选
fail_reason
string 
可选
如果任务失败,此处会显示失败原因
submit_time
integer 
可选
任务提交时间的时间戳 (Unix timestamp, 秒级)
start_time
integer 
可选
任务开始处理的时间戳 (Unix timestamp, 秒级)
finish_time
integer 
可选
任务完成的时间戳 (Unix timestamp, 秒级)
progress
string 
可选
任务的完成进度百分比
data
array [object {10}] 
可选
包含任务具体结果的数组
修改于 2025-05-27 06:24:45
上一页
查询单个任务
下一页
生成音乐
Built with