Skip to main content
POST
lyrics infill
写一段新词,或重写已有歌词里的一段。接口调用官方 lyrics-infill,并在当次响应里返回官方结果。不会生成 clip,也不改变 生成歌词 和 生成音乐。
同步。 歌词就在这次响应里。没有 taskId,不要轮询 查询任务状态。

参数

示例

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
prompt
string
必填

Instruction for the lyrics to write or fill in.

示例:

"a hopeful chorus about coming home"

context_lyrics_prefix
string

Lyrics before the edit. Omitted values are sent as an empty string.

context_lyrics_edit
string

Lyrics currently selected for edit. Omitted values are sent as an empty string.

context_lyrics_suffix
string

Lyrics after the edit. Omitted values are sent as an empty string.

title
string

Song title. Omitted values are sent as an empty string.

响应

201 - application/json

The response is of type object.