You're looking at a specific version of this model. Jump to the model overview.
andreasjansson /musicgen-looper:ccddb0df
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
|
A description of the music you want to generate.
|
|
bpm |
number
|
140
Min: 40 Max: 300 |
Tempo in beats per minute
|
variations |
integer
|
4
Min: 1 Max: 20 |
Number of variations to generate
|
max_duration |
integer
|
8
Min: 2 Max: 20 |
Maximum duration of the generated loop in seconds.
|
model_version |
string
(enum)
|
medium
Options: medium, large |
Model to use for generation. .
|
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. If None or -1, a random seed will be used.
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'items': {'properties': {'variation_01': {'format': 'uri',
'title': 'Variation 01',
'type': 'string'},
'variation_02': {'format': 'uri',
'title': 'Variation 02',
'type': 'string'},
'variation_03': {'format': 'uri',
'title': 'Variation 03',
'type': 'string'},
'variation_04': {'format': 'uri',
'title': 'Variation 04',
'type': 'string'},
'variation_05': {'format': 'uri',
'title': 'Variation 05',
'type': 'string'},
'variation_06': {'format': 'uri',
'title': 'Variation 06',
'type': 'string'},
'variation_07': {'format': 'uri',
'title': 'Variation 07',
'type': 'string'},
'variation_08': {'format': 'uri',
'title': 'Variation 08',
'type': 'string'},
'variation_09': {'format': 'uri',
'title': 'Variation 09',
'type': 'string'},
'variation_10': {'format': 'uri',
'title': 'Variation 10',
'type': 'string'},
'variation_11': {'format': 'uri',
'title': 'Variation 11',
'type': 'string'},
'variation_12': {'format': 'uri',
'title': 'Variation 12',
'type': 'string'},
'variation_13': {'format': 'uri',
'title': 'Variation 13',
'type': 'string'},
'variation_14': {'format': 'uri',
'title': 'Variation 14',
'type': 'string'},
'variation_15': {'format': 'uri',
'title': 'Variation 15',
'type': 'string'},
'variation_16': {'format': 'uri',
'title': 'Variation 16',
'type': 'string'},
'variation_17': {'format': 'uri',
'title': 'Variation 17',
'type': 'string'},
'variation_18': {'format': 'uri',
'title': 'Variation 18',
'type': 'string'},
'variation_19': {'format': 'uri',
'title': 'Variation 19',
'type': 'string'},
'variation_20': {'format': 'uri',
'title': 'Variation 20',
'type': 'string'}},
'title': 'Outputs',
'type': 'object'},
'title': 'Output',
'type': 'array',
'x-cog-array-type': 'iterator'}