请求生成歌词。
| 参数名 | 必填 | 说明 | 示例 |
|---|---|---|---|
| Authorization | 是 | 鉴权 Token。格式:Bearer SENSEAUDIO_API_KEY | Bearer sk-123456... |
| Content-Type | 是 | 内容类型。固定为 application/json | application/json |
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| prompt | string | 是 | 提示词(必填),不能超过 2000 码位 |
| provider | string | 是 | 模型(必填),目前只支持senseaudio-music-1.0-260319 |
| 参数名 | 类型 | 描述 |
|---|---|---|
| data | array | 如果此模型为同步生成模型,则此项存在且包含生成的歌词数据 |
| 参数名 | 类型 | 描述 |
|---|---|---|
| text | string | 生成的歌词 |
| title | string | 与此歌词相应的曲目标题,可能为空 |
{
"data": [
{
"text": "[intro-medium] ; [verse] We stand upon the edge of dawn. The fire burns within our chest. ; [chorus] Rise up now and take the reigns. Break the chains that hold us down. ; [bridge] No voice can silence our song. We will march until the end. ; [outro-medium]",
"title": ""
}
]
}curl -X POST "https://api.senseaudio.cn/v1/music/lyrics/create" \
-H "Authorization: Bearer $SENSEAUDIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "一段慷慨激昂的歌词",
"provider": "senseaudio-music-1.0-260319"
}'