You're looking at a specific version of this model. Jump to the model overview.

meta /musicgen:daba6434

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Music description for generation
melody
string
mp3 format file to use for melody
duration
integer
8
Duration of the generated audio in seconds
strategy
string (enum)
loudness

Options:

loudness, clip, peak, rms

Strategy for generating audio
output_format
string (enum)
wav

Options:

wav, mp3

Output format for generated audio
seed
integer
-1
Seed for random number generator. Default is -1 for random seed

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}