OpenAI 全球独家总代
  1. 场景3 生成自定义音乐(纯音乐)
OpenAI 全球独家总代
  • 发出请求
  • 模型接口
    • 聊天接口(Chat)
      • 聊天接口
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-vision-preview
    • 自动补全接口(Completions)
      • 内容补全接口
    • 图像接口(Images)
      • DALL·E 3
      • gpt-4-all(生成图片)
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • MJ图像接口
      • 补充 - 其他参数以及回调
      • InsightFace任务提交
        • 提交swap_face任务
      • 任务提交
        • 执行动作
        • 提交Blend任务
        • 提交Describe任务
        • 提交Imagine任务
        • 提交Modal
        • 提交Shorten任务
      • 任务查询
        • 查询所有任务
        • 根据ID列表查询任务
        • 分页查询任务
        • 查询任务队列
        • 取消任务
        • 指定ID获取任务
        • 获取任务图片的seed(需设置mj或niji的私信ID)
    • Suno音乐接口
      • GoAmzAI格式
        • v3.5
          • 生成音乐
          • 获取音乐
        • v3.0
          • 生成音乐
          • 获取音乐
      • 官网原生格式(v2)
        • 官网格式
        • 所有接口
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景1 生成自定义音乐(带歌词)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 2 通过提示词直接生成音乐(带歌词)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景 4 通过提示词直接生成音乐(纯音乐)
          • 音乐生成(generations)
          • 查询任务(feed)
        • 场景3 生成自定义音乐(纯音乐)
          • 音乐生成(generations)
            POST
          • 查询任务(feed)
            GET
        • 场景 5 上传自定义音频并续写
          • 续写自定义音频步骤介绍
          • 音乐链接转成suno(upload)
          • 音乐生成(generations)
          • 查询任务(feed)
      • 生成歌词
        • 获取歌词
        • 生成歌词
    • Luma视频接口
      • GoAmzAI格式
        • 付费版
          • 生成视频
          • 获取视频
        • 免费版
          • 生成视频
          • 获取视频
      • 官网原生格式(v2)
        • 提交生成视频任务
        • 查询单个任务
        • 扩展视频
        • 获取视频无水印链接
    • SD图像接口
      • SD3
        • Stable Image Ultra
        • Stable Image Core
        • Stable Diffusion 3
      • SDXL
        • Text-to-image
  • 帮助中心
    • 常见问题及解决办法
  1. 场景3 生成自定义音乐(纯音乐)

音乐生成(generations)

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

请求参数

Body 参数application/json
mv
string 
必需
prompt
string 
必需
tags
string 
必需
title
string 
必需
continue_clip_id
null 
必需
continue_at
null 
必需
infill_start_s
null 
必需
infill_end_s
null 
必需
示例
{
    "prompt": "",
    "tags": "heavy metal",
    "mv": "chirp-v3-5",
    "title": "Starry ",
    "continue_clip_id": null,
    "continue_at": null,
    "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 '/suno/v2/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "",
    "tags": "heavy metal",
    "mv": "chirp-v3-5",
    "title": "Starry ",
    "continue_clip_id": null,
    "continue_at": null,
    "infill_start_s": null,
    "infill_end_s": null
}'

返回响应

🟢200成功
application/json
Body
id
string 
必需
clips
array [object {23}] 
必需
id
string 
必需
video_url
string 
必需
audio_url
string 
必需
image_url
null 
必需
image_large_url
null 
必需
is_video_pending
boolean 
必需
major_model_version
string 
必需
model_name
string 
必需
metadata
object 
必需
is_liked
boolean 
必需
user_id
string 
必需
display_name
string 
必需
handle
string 
必需
is_handle_updated
boolean 
必需
avatar_image_url
string 
必需
is_trashed
boolean 
必需
reaction
null 
必需
created_at
string 
必需
status
string 
必需
title
string 
必需
play_count
integer 
必需
upvote_count
integer 
必需
is_public
boolean 
必需
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 
必需
status
string 
必需
created_at
string 
必需
batch_size
integer 
必需
示例
{"id":"3d5f0ee4-1d7b-410a-bafd-60a3978284d1","clips":[{"id":"7070ec00-462e-42ac-9b9f-1074977f473f","video_url":"","audio_url":"","image_url":null,"image_large_url":null,"is_video_pending":false,"major_model_version":"v3","model_name":"chirp-v3","metadata":{"tags":"heavy metal","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","gpt_description_prompt":null,"audio_prompt_id":"m_2e584f32-7ae3-4b2d-93f6-391f65a01f15","history":[{"id":"m_2e584f32-7ae3-4b2d-93f6-391f65a01f15","continue_at":48.762,"type":"upload","source":"web","infill":false}],"concat_history":null,"type":"gen","duration":null,"refund_credits":null,"stream":true,"infill":false,"has_vocal":true,"is_audio_upload_tos_accepted":true,"error_type":null,"error_message":null},"is_liked":false,"user_id":"4ed4f182-0b5a-4cde-bffe-44fb5237a3aa","display_name":"AmbientLens971","handle":"ambientlens971","is_handle_updated":false,"avatar_image_url":"https://cdn1.suno.ai/defaultOrange.jpg","is_trashed":false,"reaction":null,"created_at":"2024-07-22T07:56:36.710Z","status":"submitted","title":"Starry ","play_count":0,"upvote_count":0,"is_public":false},{"id":"00e6b9e4-c29c-4cfe-8d7a-5b3f06ff5b90","video_url":"","audio_url":"","image_url":null,"image_large_url":null,"is_video_pending":false,"major_model_version":"v3","model_name":"chirp-v3","metadata":{"tags":"heavy metal","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","gpt_description_prompt":null,"audio_prompt_id":"m_2e584f32-7ae3-4b2d-93f6-391f65a01f15","history":[{"id":"m_2e584f32-7ae3-4b2d-93f6-391f65a01f15","continue_at":48.762,"type":"upload","source":"web","infill":false}],"concat_history":null,"type":"gen","duration":null,"refund_credits":null,"stream":true,"infill":false,"has_vocal":true,"is_audio_upload_tos_accepted":true,"error_type":null,"error_message":null},"is_liked":false,"user_id":"4ed4f182-0b5a-4cde-bffe-44fb5237a3aa","display_name":"AmbientLens971","handle":"ambientlens971","is_handle_updated":false,"avatar_image_url":"https://cdn1.suno.ai/defaultOrange.jpg","is_trashed":false,"reaction":null,"created_at":"2024-07-22T07:56:36.711Z","status":"submitted","title":"Starry ","play_count":0,"upvote_count":0,"is_public":false}],"metadata":{"tags":"heavy metal","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","gpt_description_prompt":null,"audio_prompt_id":"m_2e584f32-7ae3-4b2d-93f6-391f65a01f15","history":[{"id":"m_2e584f32-7ae3-4b2d-93f6-391f65a01f15","continue_at":48.762,"type":"upload","source":"web","infill":false}],"concat_history":null,"type":"gen","duration":null,"refund_credits":null,"stream":true,"infill":false,"has_vocal":true,"is_audio_upload_tos_accepted":true,"error_type":null,"error_message":null},"major_model_version":"v3","status":"complete","created_at":"2024-07-22T07:56:36.699Z","batch_size":1}
🔴500服务器错误
上一页
查询任务(feed)
下一页
查询任务(feed)
Built with