小天API
  1. 音乐创作(suno)
小天API
  • 前言(必读)
  • OpenAI官方库使用教程
  • 聊天模型(Chat)
    • 查询令牌额度
      GET
    • 查询令牌已用多少额度
      GET
    • 查询令牌请求日志
      GET
    • 聊天接口(通用)
      POST
    • 列出可用模型
      GET
    • 聊天接口(o1系列模型)
      POST
    • 聊天补全
      POST
    • Claude3+(全系列)
      POST
    • Gemini1.5+(全系列)
      POST
    • GPTs
      POST
    • gpt-4-all 文件分析
      POST
    • gpt-4o-all 文件分析
      POST
    • 聊天接口(图片分析)
      POST
  • 向量嵌入
    • 创建嵌入
      POST
  • 音频模型(Audio)
    • 文字转语音 TTS
      POST
    • 语音转文字 whisper-1
      POST
    • 创建翻译
      POST
  • 绘画模型(Painting)
    • MidJourney
      • 提交模式与状态码说明
      • 任务:换脸 swap_face
      • 任务:图生图 Blend
      • 任务:文生图、文图生图 Imagine
      • 任务:提示词缩短 Shorten
      • 上传:上传图片到Discord
      • 任务:局部重绘 Modal
      • 任务:绘图变化
      • 任务:执行动作
      • 任务:绘图变化-simple
      • 任务:图生文 Describe
      • 查询:根据ID列表查任务
      • 查询:根据ID查询任务
      • 查询:根据ID获取图片
      • 查询:根据ID获取图片 Seed
    • Dalle
      • 图像生成
      • 图像编辑
    • stable-diffusion
      POST
    • Flux Ai
      POST
  • 音乐创作(suno)
    • 接口介绍
    • 任务:生成歌曲
      POST
    • 聊天方式:生成歌曲
      POST
    • 任务:生成歌词
      POST
    • 查询:批量查询任务
      POST
    • 查询:单个任务
      GET
  • 视频模型(Video)
    • 视频模型说明
    • 快手可灵AI
      • 查询:单个任务
      • 任务:图像生成
      • 任务:文生视频
      • 任务:图生视频
    • luma视频
      • 任务:生成视频
      • 任务:拓展视频
      • 获取:无水印视频
      • 查询:单个任务
      • 查询:批量查询任务
    • runway视频
      • 任务:生成视频.gen2
      • 任务:生成视频.gen3
      • 查询:单个任务
      • 上传:参考图 A认证
      • 上传:参考图 C 获取
      • 任务:拓展视频
  • API接口节点
  • 入门教程
    • 注册教程
    • 充值或者兑换额度
    • 生成令牌
    • 公益站设置
    • 第三方设置
  • GPT4检验方法
  • 注意事项
  • 常见问题回答
  • 联系方式
  • 更多接口开发中...
  1. 音乐创作(suno)

查询:单个任务

GET
https://api.chatgptsb.com/suno/fetch/{task_id}

请求参数

Path 参数
task_id
string 
必需
示例值:
2a145658-3342-4228-b779-b8323a2b77df
Header 参数
Content-Type
string 
可选
示例值:
application/json
Authorization
string 
可选
示例值:
Bearer sk-xxxx

示例代码

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.chatgptsb.com/suno/fetch/2a145658-3342-4228-b779-b8323a2b77df' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json'

返回响应

🟢200成功
application/json
Body
code
string 
必需
message
string 
必需
data
object 
必需
task_id
string 
必需
action
string 
必需
status
string 
必需
fail_reason
string 
必需
submit_time
integer 
必需
start_time
integer 
必需
finish_time
integer 
必需
progress
string 
必需
data
array [object {22}] 
必需
示例
{
    "code": "success",
    "message": "",
    "data": {
        "task_id": "2a145658-3342-4228-b779-b8323a2b77df",
        "action": "MUSIC",
        "status": "SUCCESS",
        "fail_reason": "",
        "submit_time": 1726911801,
        "start_time": 1726911812,
        "finish_time": 1726911897,
        "progress": "100%",
        "data": [
            {
                "id": "3435e194-50e7-4edc-9442-bffe072fccfc",
                "title": "快乐周末",
                "handle": "yellowrobots6855",
                "status": "complete",
                "user_id": "ee5e241a-ead6-435d-bea8-526c77c04c72",
                "is_liked": false,
                "metadata": {
                    "tags": "heartfelt salsa",
                    "type": "gen",
                    "prompt": "",
                    "stream": true,
                    "history": null,
                    "duration": 128.92,
                    "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/3435e194-50e7-4edc-9442-bffe072fccfc.mp3",
                "image_url": "https://cdn2.suno.ai/image_3435e194-50e7-4edc-9442-bffe072fccfc.jpeg",
                "is_public": false,
                "video_url": "https://cdn1.suno.ai/3435e194-50e7-4edc-9442-bffe072fccfc.mp4",
                "created_at": "2024-09-21T09:43:21.637Z",
                "is_trashed": false,
                "model_name": "chirp-v3",
                "play_count": 0,
                "display_name": "YellowRobots6855",
                "upvote_count": 0,
                "image_large_url": "https://cdn2.suno.ai/image_large_3435e194-50e7-4edc-9442-bffe072fccfc.jpeg",
                "is_video_pending": false,
                "is_handle_updated": false,
                "major_model_version": "v3.5"
            },
            {
                "id": "1d01fcc8-71bf-4e0f-ab0a-880a0580e6fe",
                "title": "快乐周末",
                "handle": "yellowrobots6855",
                "status": "complete",
                "user_id": "ee5e241a-ead6-435d-bea8-526c77c04c72",
                "is_liked": false,
                "metadata": {
                    "tags": "heartfelt salsa",
                    "type": "gen",
                    "prompt": "",
                    "stream": true,
                    "history": null,
                    "duration": 148.28,
                    "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/1d01fcc8-71bf-4e0f-ab0a-880a0580e6fe.mp3",
                "image_url": "https://cdn2.suno.ai/image_1d01fcc8-71bf-4e0f-ab0a-880a0580e6fe.jpeg",
                "is_public": false,
                "video_url": "https://cdn1.suno.ai/1d01fcc8-71bf-4e0f-ab0a-880a0580e6fe.mp4",
                "created_at": "2024-09-21T09:43:21.637Z",
                "is_trashed": false,
                "model_name": "chirp-v3",
                "play_count": 0,
                "display_name": "YellowRobots6855",
                "upvote_count": 0,
                "image_large_url": "https://cdn2.suno.ai/image_large_1d01fcc8-71bf-4e0f-ab0a-880a0580e6fe.jpeg",
                "is_video_pending": true,
                "is_handle_updated": false,
                "major_model_version": "v3.5"
            }
        ]
    }
}
上一页
查询:批量查询任务
下一页
视频模型说明
Built with