Skip to content

🎧 音乐模型 suno-v3

  • 2024.03.27 本站已经支持 音乐模型 suno-v3
  • suno 本身无api, 跟GPTs 一样是通过逆向为openai接口形式得来,
  • 提示词输入一次,生成2首歌曲
  • 计费是按次数,并非按歌曲数
  • 如何使用 访问 https://suno.ddaiai.com 看下面的 在线测试

注意

1.访问 https://suno.ddaiai.com (如果被墙了,换下二级域名前缀 suibian)
2.如果发现被墙了 可以自己换地址 https://suibian.ddaiai.comsuibian 换其他的 如 https://2024.ddaiai.com 都能访问

以suno非官方API调用

cover

效果如下 cover

对话方式调用

  • 以对话方式调用 模型为 suno-v3

设置

cover

效果

  • 将模型设置为 suno-v3cover
  • 输入框 提问对话 得到音乐歌曲2首、歌词、歌曲封面 covercover

程序接入

已经跟openai接口对齐,仅需将模型修改为 suno-v3

shell
curl --request POST \
  --url https://api.openai-hk.com/v1/chat/completions \
  --header 'Authorization: Bearer hk-你的key' \
  --header 'content-type: application/json' \
  --data '{
    "max_tokens": 800,
    "model": "suno-v3",
    "temperature": 0.8,
    "top_p": 1,
    "presence_penalty": 1,
    "stream":false,
    "messages": [ 
        {
            "role": "user",
            "content": "儿时的回忆"
        }
    ]
}'
curl --request POST \
  --url https://api.openai-hk.com/v1/chat/completions \
  --header 'Authorization: Bearer hk-你的key' \
  --header 'content-type: application/json' \
  --data '{
    "max_tokens": 800,
    "model": "suno-v3",
    "temperature": 0.8,
    "top_p": 1,
    "presence_penalty": 1,
    "stream":false,
    "messages": [ 
        {
            "role": "user",
            "content": "儿时的回忆"
        }
    ]
}'