Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
andreasjansson /musicgen-looper:ad041aeb
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run andreasjansson/musicgen-looper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"andreasjansson/musicgen-looper:ad041aebc8406f8883e7f28313614c4a11c6e623dd934a54f2bf30127b4bc7a8",
{
input: {
bpm: 125,
seed: -1,
top_k: 250,
top_p: 0,
prompt: "Balearic house",
variations: 4,
temperature: 1,
max_duration: 4,
model_version: "medium",
output_format: "wav",
classifier_free_guidance: 3
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run andreasjansson/musicgen-looper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"andreasjansson/musicgen-looper:ad041aebc8406f8883e7f28313614c4a11c6e623dd934a54f2bf30127b4bc7a8",
input={
"bpm": 125,
"seed": -1,
"top_k": 250,
"top_p": 0,
"prompt": "Balearic house",
"variations": 4,
"temperature": 1,
"max_duration": 4,
"model_version": "medium",
"output_format": "wav",
"classifier_free_guidance": 3
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run andreasjansson/musicgen-looper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "andreasjansson/musicgen-looper:ad041aebc8406f8883e7f28313614c4a11c6e623dd934a54f2bf30127b4bc7a8",
"input": {
"bpm": 125,
"seed": -1,
"top_k": 250,
"top_p": 0,
"prompt": "Balearic house",
"variations": 4,
"temperature": 1,
"max_duration": 4,
"model_version": "medium",
"output_format": "wav",
"classifier_free_guidance": 3
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
variation_01
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
variation_02
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
variation_03
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
variation_04
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
{
"completed_at": "2023-06-18T15:30:15.276966Z",
"created_at": "2023-06-18T15:29:25.961574Z",
"data_removed": false,
"error": null,
"id": "jurn5wzbiqd3ur23a5l22fdycu",
"input": {
"bpm": 125,
"seed": -1,
"top_k": 250,
"prompt": "Balearic house",
"variations": 4,
"temperature": 1,
"max_duration": 4,
"model_version": "medium",
"output_format": "wav",
"classifier_free_guidance": 3
},
"logs": "Using seed 13551291060750632462\nGenerating variation 1\n1 / 200\n2 / 200\n3 / 200\n4 / 200\n5 / 200\n6 / 200\n7 / 200\n8 / 200\n9 / 200\n10 / 200\n11 / 200\n12 / 200\n13 / 200\n14 / 200\n15 / 200\n16 / 200\n17 / 200\n18 / 200\n19 / 200\n20 / 200\n21 / 200\n22 / 200\n23 / 200\n24 / 200\n25 / 200\n26 / 200\n27 / 200\n28 / 200\n29 / 200\n30 / 200\n31 / 200\n32 / 200\n33 / 200\n34 / 200\n35 / 200\n36 / 200\n37 / 200\n38 / 200\n39 / 200\n40 / 200\n41 / 200\n42 / 200\n43 / 200\n44 / 200\n45 / 200\n46 / 200\n47 / 200\n48 / 200\n49 / 200\n50 / 200\n51 / 200\n52 / 200\n53 / 200\n54 / 200\n55 / 200\n56 / 200\n57 / 200\n58 / 200\n59 / 200\n60 / 200\n61 / 200\n62 / 200\n63 / 200\n64 / 200\n65 / 200\n66 / 200\n67 / 200\n68 / 200\n69 / 200\n70 / 200\n71 / 200\n72 / 200\n73 / 200\n74 / 200\n75 / 200\n76 / 200\n77 / 200\n78 / 200\n79 / 200\n80 / 200\n81 / 200\n82 / 200\n83 / 200\n84 / 200\n85 / 200\n86 / 200\n87 / 200\n88 / 200\n89 / 200\n90 / 200\n91 / 200\n92 / 200\n93 / 200\n94 / 200\n95 / 200\n96 / 200\n97 / 200\n98 / 200\n99 / 200\n100 / 200\n101 / 200\n102 / 200\n103 / 200\n104 / 200\n105 / 200\n106 / 200\n107 / 200\n108 / 200\n109 / 200\n110 / 200\n111 / 200\n112 / 200\n113 / 200\n114 / 200\n115 / 200\n116 / 200\n117 / 200\n118 / 200\n119 / 200\n120 / 200\n121 / 200\n122 / 200\n123 / 200\n124 / 200\n125 / 200\n126 / 200\n127 / 200\n128 / 200\n129 / 200\n130 / 200\n131 / 200\n132 / 200\n133 / 200\n134 / 200\n135 / 200\n136 / 200\n137 / 200\n138 / 200\n139 / 200\n140 / 200\n141 / 200\n142 / 200\n143 / 200\n144 / 200\n145 / 200\n146 / 200\n147 / 200\n148 / 200\n149 / 200\n150 / 200\n151 / 200\n152 / 200\n153 / 200\n154 / 200\n155 / 200\n156 / 200\n157 / 200\n158 / 200\n159 / 200\n160 / 200\n161 / 200\n162 / 200\n163 / 200\n164 / 200\n165 / 200\n166 / 200\n167 / 200\n168 / 200\n169 / 200\n170 / 200\n171 / 200\n172 / 200\n173 / 200\n174 / 200\n175 / 200\n176 / 200\n177 / 200\n178 / 200\n179 / 200\n180 / 200\n181 / 200\n182 / 200\n183 / 200\n184 / 200\n185 / 200\n186 / 200\n187 / 200\n188 / 200\n189 / 200\n190 / 200\n191 / 200\n192 / 200\n193 / 200\n194 / 200\n195 / 200\n196 / 200\n197 / 200\n198 / 200\n199 / 200\n200 / 200\n201 / 200\n202 / 200\n203 / 200\nBeats:\n[[0.02 2. ]\n[0.48 3. ]\n[0.96 4. ]\n[1.44 1. ]\n[1.92 2. ]\n[2.4 3. ]\n[2.88 4. ]\n[3.36 1. ]\n[3.84 2. ]]\nstart_time=1.44, end_time=3.36\nGenerating variation 2\n1 / 173\n2 / 173\n3 / 173\n4 / 173\n5 / 173\n6 / 173\n7 / 173\n8 / 173\n9 / 173\n10 / 173\n11 / 173\n12 / 173\n13 / 173\n14 / 173\n15 / 173\n16 / 173\n17 / 173\n18 / 173\n19 / 173\n20 / 173\n21 / 173\n22 / 173\n23 / 173\n24 / 173\n25 / 173\n26 / 173\n27 / 173\n28 / 173\n29 / 173\n30 / 173\n31 / 173\n32 / 173\n33 / 173\n34 / 173\n35 / 173\n36 / 173\n37 / 173\n38 / 173\n39 / 173\n40 / 173\n41 / 173\n42 / 173\n43 / 173\n44 / 173\n45 / 173\n46 / 173\n47 / 173\n48 / 173\n49 / 173\n50 / 173\n51 / 173\n52 / 173\n53 / 173\n54 / 173\n55 / 173\n56 / 173\n57 / 173\n58 / 173\n59 / 173\n60 / 173\n61 / 173\n62 / 173\n63 / 173\n64 / 173\n65 / 173\n66 / 173\n67 / 173\n68 / 173\n69 / 173\n70 / 173\n71 / 173\n72 / 173\n73 / 173\n74 / 173\n75 / 173\n76 / 173\n77 / 173\n78 / 173\n79 / 173\n80 / 173\n81 / 173\n82 / 173\n83 / 173\n84 / 173\n85 / 173\n86 / 173\n87 / 173\n88 / 173\n89 / 173\n90 / 173\n91 / 173\n92 / 173\n93 / 173\n94 / 173\n95 / 173\n96 / 173\n97 / 173\n98 / 173\n99 / 173\n100 / 173\n101 / 173\n102 / 173\n103 / 173\n104 / 173\nGenerating variation 3\n1 / 173\n2 / 173\n3 / 173\n4 / 173\n5 / 173\n6 / 173\n7 / 173\n8 / 173\n9 / 173\n10 / 173\n11 / 173\n12 / 173\n13 / 173\n14 / 173\n15 / 173\n16 / 173\n17 / 173\n18 / 173\n19 / 173\n20 / 173\n21 / 173\n22 / 173\n23 / 173\n24 / 173\n25 / 173\n26 / 173\n27 / 173\n28 / 173\n29 / 173\n30 / 173\n31 / 173\n32 / 173\n33 / 173\n34 / 173\n35 / 173\n36 / 173\n37 / 173\n38 / 173\n39 / 173\n40 / 173\n41 / 173\n42 / 173\n43 / 173\n44 / 173\n45 / 173\n46 / 173\n47 / 173\n48 / 173\n49 / 173\n50 / 173\n51 / 173\n52 / 173\n53 / 173\n54 / 173\n55 / 173\n56 / 173\n57 / 173\n58 / 173\n59 / 173\n60 / 173\n61 / 173\n62 / 173\n63 / 173\n64 / 173\n65 / 173\n66 / 173\n67 / 173\n68 / 173\n69 / 173\n70 / 173\n71 / 173\n72 / 173\n73 / 173\n74 / 173\n75 / 173\n76 / 173\n77 / 173\n78 / 173\n79 / 173\n80 / 173\n81 / 173\n82 / 173\n83 / 173\n84 / 173\n85 / 173\n86 / 173\n87 / 173\n88 / 173\n89 / 173\n90 / 173\n91 / 173\n92 / 173\n93 / 173\n94 / 173\n95 / 173\n96 / 173\n97 / 173\n98 / 173\n99 / 173\n100 / 173\n101 / 173\n102 / 173\n103 / 173\n104 / 173\nGenerating variation 4\n1 / 173\n2 / 173\n3 / 173\n4 / 173\n5 / 173\n6 / 173\n7 / 173\n8 / 173\n9 / 173\n10 / 173\n11 / 173\n12 / 173\n13 / 173\n14 / 173\n15 / 173\n16 / 173\n17 / 173\n18 / 173\n19 / 173\n20 / 173\n21 / 173\n22 / 173\n23 / 173\n24 / 173\n25 / 173\n26 / 173\n27 / 173\n28 / 173\n29 / 173\n30 / 173\n31 / 173\n32 / 173\n33 / 173\n34 / 173\n35 / 173\n36 / 173\n37 / 173\n38 / 173\n39 / 173\n40 / 173\n41 / 173\n42 / 173\n43 / 173\n44 / 173\n45 / 173\n46 / 173\n47 / 173\n48 / 173\n49 / 173\n50 / 173\n51 / 173\n52 / 173\n53 / 173\n54 / 173\n55 / 173\n56 / 173\n57 / 173\n58 / 173\n59 / 173\n60 / 173\n61 / 173\n62 / 173\n63 / 173\n64 / 173\n65 / 173\n66 / 173\n67 / 173\n68 / 173\n69 / 173\n70 / 173\n71 / 173\n72 / 173\n73 / 173\n74 / 173\n75 / 173\n76 / 173\n77 / 173\n78 / 173\n79 / 173\n80 / 173\n81 / 173\n82 / 173\n83 / 173\n84 / 173\n85 / 173\n86 / 173\n87 / 173\n88 / 173\n89 / 173\n90 / 173\n91 / 173\n92 / 173\n93 / 173\n94 / 173\n95 / 173\n96 / 173\n97 / 173\n98 / 173\n99 / 173\n100 / 173\n101 / 173\n102 / 173\n103 / 173\n104 / 173",
"metrics": {
"predict_time": 49.380759,
"total_time": 49.315392
},
"output": {
"variation_01": "https://replicate.delivery/pbxt/uU25sBxzZ1b7MZjA3qvOLzwzmxaBJ5r5sgYdtXQuQfGDqmjIA/out-0.wav",
"variation_02": "https://replicate.delivery/pbxt/vYHef2ehe1juHTmaIPQsiBADTAmYo635cB6Y3vDctqWZQ1cEB/out-1.wav",
"variation_03": "https://replicate.delivery/pbxt/HNFv8TmAjZZpK5grgMzy1SegLQofXRSBfhOW5SmJOvZMoaOiA/out-2.wav",
"variation_04": "https://replicate.delivery/pbxt/FWdoRydELc4YCRyD2J5BRfFeoShf2Ujrc2ae7cCGmSWfgq5IC/out-3.wav"
},
"started_at": "2023-06-18T15:29:25.896207Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/jurn5wzbiqd3ur23a5l22fdycu",
"cancel": "https://api.replicate.com/v1/predictions/jurn5wzbiqd3ur23a5l22fdycu/cancel"
},
"version": "ad041aebc8406f8883e7f28313614c4a11c6e623dd934a54f2bf30127b4bc7a8"
}
Using seed 13551291060750632462
Generating variation 1
1 / 200
2 / 200
3 / 200
4 / 200
5 / 200
6 / 200
7 / 200
8 / 200
9 / 200
10 / 200
11 / 200
12 / 200
13 / 200
14 / 200
15 / 200
16 / 200
17 / 200
18 / 200
19 / 200
20 / 200
21 / 200
22 / 200
23 / 200
24 / 200
25 / 200
26 / 200
27 / 200
28 / 200
29 / 200
30 / 200
31 / 200
32 / 200
33 / 200
34 / 200
35 / 200
36 / 200
37 / 200
38 / 200
39 / 200
40 / 200
41 / 200
42 / 200
43 / 200
44 / 200
45 / 200
46 / 200
47 / 200
48 / 200
49 / 200
50 / 200
51 / 200
52 / 200
53 / 200
54 / 200
55 / 200
56 / 200
57 / 200
58 / 200
59 / 200
60 / 200
61 / 200
62 / 200
63 / 200
64 / 200
65 / 200
66 / 200
67 / 200
68 / 200
69 / 200
70 / 200
71 / 200
72 / 200
73 / 200
74 / 200
75 / 200
76 / 200
77 / 200
78 / 200
79 / 200
80 / 200
81 / 200
82 / 200
83 / 200
84 / 200
85 / 200
86 / 200
87 / 200
88 / 200
89 / 200
90 / 200
91 / 200
92 / 200
93 / 200
94 / 200
95 / 200
96 / 200
97 / 200
98 / 200
99 / 200
100 / 200
101 / 200
102 / 200
103 / 200
104 / 200
105 / 200
106 / 200
107 / 200
108 / 200
109 / 200
110 / 200
111 / 200
112 / 200
113 / 200
114 / 200
115 / 200
116 / 200
117 / 200
118 / 200
119 / 200
120 / 200
121 / 200
122 / 200
123 / 200
124 / 200
125 / 200
126 / 200
127 / 200
128 / 200
129 / 200
130 / 200
131 / 200
132 / 200
133 / 200
134 / 200
135 / 200
136 / 200
137 / 200
138 / 200
139 / 200
140 / 200
141 / 200
142 / 200
143 / 200
144 / 200
145 / 200
146 / 200
147 / 200
148 / 200
149 / 200
150 / 200
151 / 200
152 / 200
153 / 200
154 / 200
155 / 200
156 / 200
157 / 200
158 / 200
159 / 200
160 / 200
161 / 200
162 / 200
163 / 200
164 / 200
165 / 200
166 / 200
167 / 200
168 / 200
169 / 200
170 / 200
171 / 200
172 / 200
173 / 200
174 / 200
175 / 200
176 / 200
177 / 200
178 / 200
179 / 200
180 / 200
181 / 200
182 / 200
183 / 200
184 / 200
185 / 200
186 / 200
187 / 200
188 / 200
189 / 200
190 / 200
191 / 200
192 / 200
193 / 200
194 / 200
195 / 200
196 / 200
197 / 200
198 / 200
199 / 200
200 / 200
201 / 200
202 / 200
203 / 200
Beats:
[[0.02 2. ]
[0.48 3. ]
[0.96 4. ]
[1.44 1. ]
[1.92 2. ]
[2.4 3. ]
[2.88 4. ]
[3.36 1. ]
[3.84 2. ]]
start_time=1.44, end_time=3.36
Generating variation 2
1 / 173
2 / 173
3 / 173
4 / 173
5 / 173
6 / 173
7 / 173
8 / 173
9 / 173
10 / 173
11 / 173
12 / 173
13 / 173
14 / 173
15 / 173
16 / 173
17 / 173
18 / 173
19 / 173
20 / 173
21 / 173
22 / 173
23 / 173
24 / 173
25 / 173
26 / 173
27 / 173
28 / 173
29 / 173
30 / 173
31 / 173
32 / 173
33 / 173
34 / 173
35 / 173
36 / 173
37 / 173
38 / 173
39 / 173
40 / 173
41 / 173
42 / 173
43 / 173
44 / 173
45 / 173
46 / 173
47 / 173
48 / 173
49 / 173
50 / 173
51 / 173
52 / 173
53 / 173
54 / 173
55 / 173
56 / 173
57 / 173
58 / 173
59 / 173
60 / 173
61 / 173
62 / 173
63 / 173
64 / 173
65 / 173
66 / 173
67 / 173
68 / 173
69 / 173
70 / 173
71 / 173
72 / 173
73 / 173
74 / 173
75 / 173
76 / 173
77 / 173
78 / 173
79 / 173
80 / 173
81 / 173
82 / 173
83 / 173
84 / 173
85 / 173
86 / 173
87 / 173
88 / 173
89 / 173
90 / 173
91 / 173
92 / 173
93 / 173
94 / 173
95 / 173
96 / 173
97 / 173
98 / 173
99 / 173
100 / 173
101 / 173
102 / 173
103 / 173
104 / 173
Generating variation 3
1 / 173
2 / 173
3 / 173
4 / 173
5 / 173
6 / 173
7 / 173
8 / 173
9 / 173
10 / 173
11 / 173
12 / 173
13 / 173
14 / 173
15 / 173
16 / 173
17 / 173
18 / 173
19 / 173
20 / 173
21 / 173
22 / 173
23 / 173
24 / 173
25 / 173
26 / 173
27 / 173
28 / 173
29 / 173
30 / 173
31 / 173
32 / 173
33 / 173
34 / 173
35 / 173
36 / 173
37 / 173
38 / 173
39 / 173
40 / 173
41 / 173
42 / 173
43 / 173
44 / 173
45 / 173
46 / 173
47 / 173
48 / 173
49 / 173
50 / 173
51 / 173
52 / 173
53 / 173
54 / 173
55 / 173
56 / 173
57 / 173
58 / 173
59 / 173
60 / 173
61 / 173
62 / 173
63 / 173
64 / 173
65 / 173
66 / 173
67 / 173
68 / 173
69 / 173
70 / 173
71 / 173
72 / 173
73 / 173
74 / 173
75 / 173
76 / 173
77 / 173
78 / 173
79 / 173
80 / 173
81 / 173
82 / 173
83 / 173
84 / 173
85 / 173
86 / 173
87 / 173
88 / 173
89 / 173
90 / 173
91 / 173
92 / 173
93 / 173
94 / 173
95 / 173
96 / 173
97 / 173
98 / 173
99 / 173
100 / 173
101 / 173
102 / 173
103 / 173
104 / 173
Generating variation 4
1 / 173
2 / 173
3 / 173
4 / 173
5 / 173
6 / 173
7 / 173
8 / 173
9 / 173
10 / 173
11 / 173
12 / 173
13 / 173
14 / 173
15 / 173
16 / 173
17 / 173
18 / 173
19 / 173
20 / 173
21 / 173
22 / 173
23 / 173
24 / 173
25 / 173
26 / 173
27 / 173
28 / 173
29 / 173
30 / 173
31 / 173
32 / 173
33 / 173
34 / 173
35 / 173
36 / 173
37 / 173
38 / 173
39 / 173
40 / 173
41 / 173
42 / 173
43 / 173
44 / 173
45 / 173
46 / 173
47 / 173
48 / 173
49 / 173
50 / 173
51 / 173
52 / 173
53 / 173
54 / 173
55 / 173
56 / 173
57 / 173
58 / 173
59 / 173
60 / 173
61 / 173
62 / 173
63 / 173
64 / 173
65 / 173
66 / 173
67 / 173
68 / 173
69 / 173
70 / 173
71 / 173
72 / 173
73 / 173
74 / 173
75 / 173
76 / 173
77 / 173
78 / 173
79 / 173
80 / 173
81 / 173
82 / 173
83 / 173
84 / 173
85 / 173
86 / 173
87 / 173
88 / 173
89 / 173
90 / 173
91 / 173
92 / 173
93 / 173
94 / 173
95 / 173
96 / 173
97 / 173
98 / 173
99 / 173
100 / 173
101 / 173
102 / 173
103 / 173
104 / 173