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

meta /musicgen:b1547dad

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
model_version
string (enum)
melody

Options:

large, melody

Model to use for generation
prompt
string
A description of the music you want to generate
melody
string
An audio file that will influence the generated music. If `continuation` is `True`, the generated music will be a continuation of the audio file. Otherwise, the generated music will mimic the audio file's melody.
duration
integer
8

Max: 30

Duration of the generated audio in seconds
continuation
boolean
False
If `True`, generated music will continue `melody`. Otherwise, generated music will mimic `melody`'s melody.
continuation_start
integer
0
Start time of the audio file to use for continuation
continuation_end
integer
8
End time of the audio file to use for continuation
normalization_strategy
string (enum)
loudness

Options:

loudness, clip, peak, rms

Strategy for normalizing audio
top_k
integer
250
Reduces sampling to the k most likely tokens
top_p
number
0
Reduces sampling to tokens with cumulative probability of p. When set to `0` (default), top_k sampling is used.
temperature
number
1
Controls the 'conservativeness' of the sampling process. Higher temperature means more diversity
classifier_free_guidance
integer
3
Increases the influence of inputs on the output. Higher values produce lower-varience outputs that adhere more closely to inputs.
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'}