VMAN API Docs
  1. v3.0
VMAN API Docs
  • 模型接口
    • 聊天接口(Chat)
      • 聊天接口
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-vision-preview
    • 自动补全接口(Completions)
      • 内容补全接口
    • 图像接口(Images)
      • DALL·E 3
      • Stable-Diffusion
      • gpt-4-all(生成图片)
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • Midjourney
      • 补充 - 其他参数以及回调
      • InsightFace任务提交
        • 提交swap_face任务
      • 任务提交
        • 执行动作
        • 提交Blend任务
        • 提交Describe任务
        • 提交Imagine任务
        • 提交Modal
        • 提交Shorten任务
      • 任务查询
        • 查询所有任务
        • 根据ID列表查询任务
        • 分页查询任务
        • 查询任务队列
        • 取消任务
        • 指定ID获取任务
        • 获取任务图片的seed(需设置mj或niji的私信ID)
    • Suno音乐(逆向)
      • v3.0
        • 生成音乐
          POST
        • 获取音乐
          GET
        • 合并音乐
          POST
      • v3.5
        • 生成音乐
        • 获取音乐
    • Flux图像(官方格式)
      • flux-pro-1.1
      • flux-pro
      • flux-dev
      • flux-查询
    • Recraft图像(官方格式)
      • styles
        • 创建样式
      • images
        • 生成图像
        • 图像矢量化
        • 移除背景
        • 清晰度提升
        • 生成式放大
    • Stability AI图像(官方格式)
      • SD3
        • Stable Image Ultra
        • Stable Image Core
        • Stable Diffusion 3
      • SDXL
        • Text-to-image
    • Ideogram图像(官方格式)
      • Generate(文生图)
      • Remix(混合图)
      • Upscale(放大高清)
      • Describe(描述)
    • Ideogram图像(逆向)
      • 图片描述
      • 文生图
      • 合成图
      • 放大图片
      • ideogram任务查询
    • Kling视频(官方格式)
      • 图像生成
      • 文生视频
      • 图生视频
      • 查询任务
    • Luma视频(逆向)
      • 付费版
        • 生成视频
        • 获取视频
    • Runway视频(官方格式)
      • 图生视频
      • 任务查询
    • CogVideoX视频(官方格式)
      • CogVideoX视频生成
      • CogVideoX视频查询
    • Viggle舞蹈(逆向)
      • Mix上传视频并生成视频
      • Mix官方模板列表
      • Mix上传视频素材库
      • Mix上传图片素材库
      • Multi上传视频并生成视频
      • Multi模板列表
      • Move上传视频并生成视频
      • 查询视频任务
      • 剩余积分查询
  • 帮助中心
    • 常见问题及解决办法
  1. v3.0

生成音乐

POST
/suno/v1/v3.0/music

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Content-Type
string 
可选
示例值:
application/json
Accept
string 
可选
示例值:
application/json
Authorization
string 
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
custom_mode
boolean 
必需
input
object 
必需
prompt
string 
必需
title
string 
必需
tags
string 
必需
continue_at
integer 
必需
continue_clip_id
string 
必需
示例
{
  "custom_mode": true,
  "input": {
    "prompt": "[Verse]\nTesla riding\nBatteries flying\nElon Musk\nHe's got the future on his mind\nSolar panels shining\nRockets reaching for the skies\nInnovation's flowing\nHe's the tech wizard of our times\n\n[Verse]\nNeuralink connecting minds\nAI running wild\nMars colonization\nHe's making it his style\nFrom PayPal he came and shook the world with his touch\nElon Musk\nThe eccentric genius\nHe's too much\n\n[Chorus]\nElon Musk\nHe's the man with electric dreams\nChanging the world with his technology schemes\nFrom PayPal to SpaceX\nHe's a force to be seen\nElectric cars and rockets\nHe's living the dream",
    "title": "Electric Dreams",
    "tags": "epic reggae",
    "continue_at": 0,
    "continue_clip_id": ""
  }
}

示例代码

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/v1/v3.0/music' \
--header 'Content-Type: application/json' \
--data-raw '{
    "custom_mode": true,
    "input": {
        "prompt": "[Verse]\nTesla riding\nBatteries flying\nElon Musk\nHe'\''s got the future on his mind\nSolar panels shining\nRockets reaching for the skies\nInnovation'\''s flowing\nHe'\''s the tech wizard of our times\n\n[Verse]\nNeuralink connecting minds\nAI running wild\nMars colonization\nHe'\''s making it his style\nFrom PayPal he came and shook the world with his touch\nElon Musk\nThe eccentric genius\nHe'\''s too much\n\n[Chorus]\nElon Musk\nHe'\''s the man with electric dreams\nChanging the world with his technology schemes\nFrom PayPal to SpaceX\nHe'\''s a force to be seen\nElectric cars and rockets\nHe'\''s living the dream",
        "title": "Electric Dreams",
        "tags": "epic reggae",
        "continue_at": 0,
        "continue_clip_id": ""
    }
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
data
object 
必需
task_id
string 
必需
message
string 
必需
示例
{
  "code": 200,
  "data": {
    "task_id": "56ea8da3-8507-4118-9f1e-111111111111"
  },
  "message": "success"
}
上一页
获取任务图片的seed(需设置mj或niji的私信ID)
下一页
获取音乐
Built with