Chat OpenAI(ChatGPT)中文文档
  1. 文生音乐 Suno
Chat OpenAI(ChatGPT)中文文档
  • 发出请求
  • 模型接口
    • 完成对象
    • OpenAI接口(Chat)
      • 列出模型
      • 聊天接口(通用)
      • 官方Function calling调用
      • 官方N测试
      • 官方最新response_format
      • 识图接口(通用)
    • Anthropic Claude
      • 官方Function calling调用
      • 聊天接口
      • 聊天接口(原生API格式请求)
      • 识图接口
    • 谷歌Gemini
      • 聊天接口
      • 识图接口
    • Midjourney
      • 提交swap_face任务
      • 执行Action动作
      • 根据ID列表查询任务
      • 提交Blend任务
      • 指定ID获取任务
      • 提交Describe任务
      • 获取任务图片的seed
      • 提交Imagine任务
      • 提交Modal
      • 上传文件到discord
    • GPTs 相关
      • GPTs对话
      • 搜索相关 GPTs
      • 查询 GPTs 详情
      • 批量查询 GPTs 详情
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
    • 文生音乐 Suno
      • 生成歌曲(API格式)
        POST
      • 生成歌词(API格式)
        POST
      • 查询单个任务(API格式)
        GET
      • 文生音乐(Chat格式)
        POST
    • 文生视频
      • 智谱清言GLM
      • 文生视频(luma)
      • 文生视频(runway)
    • Rerank API
      • Rerank API
    • 自动补全接口(Completions)
      • 内容补全接口
    • 文生图接口
      • DALL·E 3
      • Flux(OpenAI dall-e-3格式)
      • ideogram
      • Stable-Diffusion
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • 审查(Moderations)
      • 创建内容审核
  • 帮助中心
    • 常见问题及解决办法
  1. 文生音乐 Suno

查询单个任务(API格式)

GET
https://gitaigc.com/suno/fetch/{task_id}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
task_id
string 
必需
Header 参数
Authorization
string 
必需
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string 
必需
默认值:
application/json
Accept
string 
必需
默认值:
application/json

示例代码

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://gitaigc.com/suno/fetch/' \
--header 'Authorization;' \
--header 'Accept;'

返回响应

🟢200成功
application/json
Body
code
string 
必需
message
string 
必需
data
object 
必需
task_id
string 
必需
notify_hook
string 
必需
action
string 
必需
status
string 
必需
fail_reason
string 
必需
submit_time
integer 
必需
start_time
integer 
必需
finish_time
integer 
必需
progress
string 
必需
data
array [object {10}] 
必需
示例
{
    "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"
        }
    }
}
上一页
生成歌词(API格式)
下一页
文生音乐(Chat格式)
Built with