gptproto AI
  1. 所有接口
gptproto AI
  • GPT相关
    • GPT对话
      POST
  • 图片生成
    • flux
      • flux 接口文档
      • 官方格式
        • 查询任务(get_result)
        • 生成图像(chat 格式)
      • OpenAI Image 格式
        • 生成(generations)
    • ideogram
      • openai images格式
        • Edit 3.0(编辑)
        • Remix 3.0(混合图)
        • Replace Background 3.0(背景替换)
        • Generate 3.0(文生图)
    • midjourney
      • 任务查询
        • ListByCondition
        • FetchFromTask
      • 任务提交
        • Blend
        • SwapFace
        • Describe
        • Imagine
        • Modal
        • Action
        • Change
    • gpt4oimage
      • chat 格式
        • gpt-image-1
      • image/generations 格式(dalle 格式)
        • 创建图像
        • 创建图片编辑
  • 音乐生成
    • suno
      • suno官网原生格式
        • 官网格式
        • 所有接口
          • 音乐生成(generations)
            POST
          • 查询任务(feed)
            GET
          • 生成歌词
            POST
          • 查询歌词
            GET
        • 场景1 生成自定义音乐(带歌词)
          • 音乐生成(generations)
        • 场景 2 通过提示词直接生成音乐(带歌词)
          • 音乐生成(generations)
        • 场景 4 通过提示词直接生成音乐(纯音乐)
          • 音乐生成(generations)
        • 场景 3 生成自定义音乐(纯音乐)
          • 音乐生成(generations)
        • 场景 5 上传自定义音频并续写
          • 续写自定义音频步骤介绍
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
        • 场景 6 续写音乐并获取完整音乐
          • 步骤 1 音乐生成
          • 步骤 3 扩展音乐
          • 步骤 5 获取完整音乐
        • 场景 7 Cover音乐(音乐翻版,修改风格)
          • 步骤 1 音乐生成
          • 步骤 3 Cover 音乐
  • 视频生成
    • runway
      • 官方格式
        • Act-one 表情迁移
        • generate 生成任务
        • video2video(视频转视频 风格重绘)
        • 提交视频生成任务
        • 查询任务
    • 可灵(官方格式)
      • 图像生成
      • 文生视频
      • 图生视频
      • 查询任务
    • veo3视频
      • chat格式
        • 文生视频
        • 图生视频
  1. 所有接口

音乐生成(generations)

POST
/suno/generate
生成音乐接口, 可以直接生成也可续写音乐
如果是续写用户上传的音乐则需要在 mv 字段后面加个-upload 如 chirp-v3-5-upload

请求参数

Body 参数application/json
mv
string 
必需
prompt
string 
必需
tags
string 
可选
title
string 
可选
continue_clip_id
string 
可选
continue_at
number 
可选
infill_start_s
null 
可选
infill_end_s
null 
可选
示例
{
    "prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
    "tags": "heavy metal",
    "mv": "chirp-v3-5",
    "title": "Starry ",
    // "continue_clip_id": "2e584f32-7ae3-4b2d-93f6-391f65a01f15",
    // "continue_at": 48.762,
    "infill_start_s": null,
    "infill_end_s": null
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gptproto.com/suno/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
    "tags": "heavy metal",
    "mv": "chirp-v3-5",
    "title": "Starry ",
    // "continue_clip_id": "2e584f32-7ae3-4b2d-93f6-391f65a01f15",
    // "continue_at": 48.762,
    "infill_start_s": null,
    "infill_end_s": null
}'

返回响应

🟢200成功
application/json
Body
clips
array [object {26}] 
必需
allow_comments
boolean 
必需
audio_url
string 
必需
avatar_image_url
string 
必需
created_at
string 
必需
display_name
string 
必需
entity_type
string 
必需
flag_count
integer 
必需
handle
string 
必需
id
string 
必需
is_handle_updated
boolean 
必需
is_liked
boolean 
必需
is_public
boolean 
必需
is_trashed
boolean 
必需
major_model_version
string 
必需
metadata
object 
必需
model_name
string 
必需
play_count
integer 
必需
status
string 
必需
title
string 
必需
upvote_count
integer 
必需
user_id
string 
必需
video_url
string 
必需
image_url
null 
必需
image_large_url
null 
必需
is_video_pending
boolean 
必需
reaction
null 
必需
id
string 
必需
status
string 
必需
metadata
object 
必需
tags
string 
必需
prompt
string 
必需
gpt_description_prompt
null 
必需
audio_prompt_id
string 
必需
history
array [object {5}] 
必需
concat_history
null 
必需
type
string 
必需
duration
null 
必需
refund_credits
null 
必需
stream
boolean 
必需
infill
boolean 
必需
has_vocal
boolean 
必需
is_audio_upload_tos_accepted
boolean 
必需
error_type
null 
必需
error_message
null 
必需
major_model_version
string 
必需
created_at
string 
必需
batch_size
integer 
必需
示例
{
    "clips": [
        {
            "allow_comments": true,
            "audio_url": "",
            "avatar_image_url": "https://cdn1.suno.ai/sAura9.jpg",
            "created_at": "2025-05-30T02:41:48.617Z",
            "display_name": "zndvchjxyy",
            "entity_type": "song_schema",
            "flag_count": 0,
            "handle": "zndvchjxyy",
            "id": "cbd12a18-c9d3-4bac-b71a-ce114de56226",
            "is_handle_updated": false,
            "is_liked": false,
            "is_public": false,
            "is_trashed": false,
            "major_model_version": "v3",
            "metadata": {
                "can_remix": true,
                "is_remix": false,
                "priority": 0,
                "prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
                "stream": true,
                "tags": "heavy metal",
                "type": "gen"
            },
            "model_name": "chirp-v3",
            "play_count": 0,
            "status": "submitted",
            "title": "Starry ",
            "upvote_count": 0,
            "user_id": "156ce82a-5d9e-42f8-a941-bf515a625c2f",
            "video_url": ""
        },
        {
            "allow_comments": true,
            "audio_url": "",
            "avatar_image_url": "https://cdn1.suno.ai/sAura9.jpg",
            "created_at": "2025-05-30T02:41:48.617Z",
            "display_name": "zndvchjxyy",
            "entity_type": "song_schema",
            "flag_count": 0,
            "handle": "zndvchjxyy",
            "id": "b99c50c7-95f9-4cef-b7aa-6ffef447999e",
            "is_handle_updated": false,
            "is_liked": false,
            "is_public": false,
            "is_trashed": false,
            "major_model_version": "v3",
            "metadata": {
                "can_remix": true,
                "is_remix": false,
                "priority": 0,
                "prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
                "stream": true,
                "tags": "heavy metal",
                "type": "gen"
            },
            "model_name": "chirp-v3",
            "play_count": 0,
            "status": "submitted",
            "title": "Starry ",
            "upvote_count": 0,
            "user_id": "156ce82a-5d9e-42f8-a941-bf515a625c2f",
            "video_url": ""
        }
    ],
    "id": "02b68ac4-ba20-4d91-ae48-ab427db0d018",
    "status": "complete"
}
修改于 2025-05-30 02:36:44
上一页
官网格式
下一页
查询任务(feed)
Built with