众扬汇 AI 开放平台 API 文档

场景一: 灵感模式

灵感模式只需给出一句主题描述,由模型自动完成作词与作曲。

请求体只传 gpt_description_prompt:

shell
curl --request POST \
  --url https://api.allyang.cn/suno/generate \
  --header 'Authorization: Bearer <令牌>' \
  --header 'Content-Type: application/json' \
  --data '{
  "gpt_description_prompt": "乡愁"
}'

同一接口传入不同请求体即可得到不同效果;提交成功后会返回两个 clip id,用英文逗号拼接后接到 /suno/feed/ 之后查询。