MusicGenerationInterfaceGenerateMusicMessage
HTTP API schema
← HTTP API referenceView source specification ↗
Generates a piece of music from a prompt and optional lyrics, genres and vocal gender. Fields the model does not support are rejected; the model catalog says which it supports.
MusicGenerationInterfaceGenerateMusicMessage fields
- model
stringRequired Model identifier from the model catalog (query-models). An unknown model is rejected.
- prompt
string Describes the music: mood, instrumentation, tempo and, for models without a lyrics field, the lyrics. Required unless the model takes lyrics and they are given.
- lyrics
string Lyrics to sing, for models whose catalog entry supports a separate lyrics field
- genres
array<string> Genres from the model catalog list
- Item
string
- Item
- vocalGenderVocalGender
vocalGender: Reference VocalGender
- durationSeconds
integer Target length in seconds, for models whose catalog entry supports a duration
minimum: 1
- responseFormatBinaryResponseFormat
responseFormat: Reference BinaryResponseFormat