Skip to main content

MusicCreateIn

promptPromptrequired

What the music is: its subject, instruments, voice or lyrics.

Possible values: non-empty and <= 4000 characters

duration_secondsDuration Secondsnullable

Preferred length in seconds — a hint only: the result is usually a full song of about two minutes.

Possible values: >= 10 and <= 300

genreGenrenullable

Optional genre, e.g. lo-fi hip hop.

Possible values: non-empty and <= 100 characters

moodMoodnullable

Optional mood, e.g. calm.

Possible values: non-empty and <= 100 characters

tempoTemponullable

Optional tempo, e.g. slow or 120 bpm.

Possible values: non-empty and <= 100 characters

MusicCreateIn
{
"duration_seconds": 30,
"mood": "calm",
"prompt": "Warm acoustic guitar for a slow morning"
}