Skip to main content
POST
lyrics infill
Write or rewrite one span of lyrics. This calls the official lyrics-infill endpoint and returns that body in the same response. It does not create a clip, and it does not change Generate Lyrics or Generate Music.
Synchronous. The lyrics are in this response. No taskId — do not poll Get Task Status.

Parameters

Example

Authorizations

Authorization
string
header
required

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

Body

application/json
prompt
string
required

Instruction for the lyrics to write or fill in.

Example:

"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.

Response

201 - application/json

The response is of type object.