奶鲨API(OpenAI)中文文档
  1. Suno-V3.5
奶鲨API(OpenAI)中文文档
  • 发出请求
  • 模型接口
    • 完成对象
    • 模型(Models)
      • 列出模型
    • 聊天接口(Chat)
      • 聊天接口(通用)
      • Suno
      • Anthropic Claude(全系列,已更新支持第三代)
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
      • gpt-4-turbo-2024-04-09(识图)
    • 查询令牌额度
      • 已用额度查询
    • 自动补全接口(Completions)
      • 内容补全接口
    • 图像接口(Images)
      • Midjourney API文档
        • InsightFace任务提交
          • 提交swap_face任务
        • 任务提交
          • 执行动作
          • 提交Blend任务
          • 提交Describe任务
          • 提交Imagine任务
          • 提交Modal
          • 提交Shorten任务
          • 上传文件到discord
        • 任务查询
          • 查询所有任务
          • 根据ID列表查询任务
          • 根据ID列表查询任务-字段displays
          • 分页查询任务
          • 查询任务队列
          • 取消任务
          • 指定ID获取任务
          • 获取任务图片的seed(需设置mj或niji的私信ID)
      • DALL·E 3
      • Stable-Diffusion
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • Suno音乐接口
      • Suno-V3.5
        • 生成音乐
          POST
        • 查询任务
          GET
    • 定制suno接口
      • suno定制接口
  • 帮助中心
    • 常见问题及解决办法
  1. Suno-V3.5

生成音乐

开发中
POST
https://newapi02.sharkchat.cn/v1/suno/v1/music

请求参数

Header 参数
Content-Type
string 
可选
示例值:
application/json
Body 参数application/json
custom_mode
boolean 
必需
input
object 
必需
prompt
string 
必需
title
string 
必需
tags
string 
必需
continue_at
string 
必需
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 'https://newapi02.sharkchat.cn/v1/suno/v1/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
object {0}
示例
{
    "code": 200,
    "data": {
        "task_id": "56ea8da3-8507-4118-9f1e-111111111111"
    },
    "message": "success"
}
上一页
TTS文本转语音
下一页
查询任务
Built with