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.
nateraw /musicgen-songstarter-v0.2:020ac56a
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run nateraw/musicgen-songstarter-v0.2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"nateraw/musicgen-songstarter-v0.2:020ac56a613f4494065e2e5544c7377788a8abcfbe645ecb8146634de0bc383e",
{
input: {
top_k: 250,
top_p: 0,
prompt: "trap, synthesizer, dark, D minor, 155 bpm",
duration: 10,
input_audio: "https://replicate.delivery/pbxt/KjlMvXLwAyqS5zCXOEhU09gscXC1g35oAYPIjNMeRIvhug65/assets_bach.mp3",
temperature: 1,
continuation: false,
output_format: "wav",
continuation_start: 0,
normalization_strategy: "loudness",
classifier_free_guidance: 3
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 nateraw/musicgen-songstarter-v0.2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"nateraw/musicgen-songstarter-v0.2:020ac56a613f4494065e2e5544c7377788a8abcfbe645ecb8146634de0bc383e",
input={
"top_k": 250,
"top_p": 0,
"prompt": "trap, synthesizer, dark, D minor, 155 bpm",
"duration": 10,
"input_audio": "https://replicate.delivery/pbxt/KjlMvXLwAyqS5zCXOEhU09gscXC1g35oAYPIjNMeRIvhug65/assets_bach.mp3",
"temperature": 1,
"continuation": False,
"output_format": "wav",
"continuation_start": 0,
"normalization_strategy": "loudness",
"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 nateraw/musicgen-songstarter-v0.2 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": "nateraw/musicgen-songstarter-v0.2:020ac56a613f4494065e2e5544c7377788a8abcfbe645ecb8146634de0bc383e",
"input": {
"top_k": 250,
"top_p": 0,
"prompt": "trap, synthesizer, dark, D minor, 155 bpm",
"duration": 10,
"input_audio": "https://replicate.delivery/pbxt/KjlMvXLwAyqS5zCXOEhU09gscXC1g35oAYPIjNMeRIvhug65/assets_bach.mp3",
"temperature": 1,
"continuation": false,
"output_format": "wav",
"continuation_start": 0,
"normalization_strategy": "loudness",
"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
- 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.
- 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.
- 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.
- 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": "2024-04-13T00:29:00.757753Z",
"created_at": "2024-04-13T00:28:39.180000Z",
"data_removed": false,
"error": null,
"id": "qrn4751khhrgg0cetkdv7fpv2g",
"input": {
"top_k": 250,
"top_p": 0,
"prompt": "trap, synthesizer, dark, D minor, 155 bpm",
"duration": 10,
"input_audio": "https://replicate.delivery/pbxt/KjlMvXLwAyqS5zCXOEhU09gscXC1g35oAYPIjNMeRIvhug65/assets_bach.mp3",
"temperature": 1,
"continuation": false,
"output_format": "wav",
"continuation_start": 0,
"normalization_strategy": "loudness",
"classifier_free_guidance": 3
},
"logs": "Using seed 3419052878\nMelody wavform shape! torch.Size([4, 2, 442368])\n1 / 500\n2 / 500\n3 / 500\n4 / 500\n5 / 500\n6 / 500\n7 / 500\n8 / 500\n9 / 500\n10 / 500\n11 / 500\n12 / 500\n13 / 500\n14 / 500\n15 / 500\n16 / 500\n17 / 500\n18 / 500\n19 / 500\n20 / 500\n21 / 500\n22 / 500\n23 / 500\n24 / 500\n25 / 500\n26 / 500\n27 / 500\n28 / 500\n29 / 500\n30 / 500\n31 / 500\n32 / 500\n33 / 500\n34 / 500\n35 / 500\n36 / 500\n37 / 500\n38 / 500\n39 / 500\n40 / 500\n41 / 500\n42 / 500\n43 / 500\n44 / 500\n45 / 500\n46 / 500\n47 / 500\n48 / 500\n49 / 500\n50 / 500\n51 / 500\n52 / 500\n53 / 500\n54 / 500\n55 / 500\n56 / 500\n57 / 500\n58 / 500\n59 / 500\n60 / 500\n61 / 500\n62 / 500\n63 / 500\n64 / 500\n65 / 500\n66 / 500\n67 / 500\n68 / 500\n69 / 500\n70 / 500\n71 / 500\n72 / 500\n73 / 500\n74 / 500\n75 / 500\n76 / 500\n77 / 500\n78 / 500\n79 / 500\n80 / 500\n81 / 500\n82 / 500\n83 / 500\n84 / 500\n85 / 500\n86 / 500\n87 / 500\n88 / 500\n89 / 500\n90 / 500\n91 / 500\n92 / 500\n93 / 500\n94 / 500\n95 / 500\n96 / 500\n97 / 500\n98 / 500\n99 / 500\n100 / 500\n101 / 500\n102 / 500\n103 / 500\n104 / 500\n105 / 500\n106 / 500\n107 / 500\n108 / 500\n109 / 500\n110 / 500\n111 / 500\n112 / 500\n113 / 500\n114 / 500\n115 / 500\n116 / 500\n117 / 500\n118 / 500\n119 / 500\n120 / 500\n121 / 500\n122 / 500\n123 / 500\n124 / 500\n125 / 500\n126 / 500\n127 / 500\n128 / 500\n129 / 500\n130 / 500\n131 / 500\n132 / 500\n133 / 500\n134 / 500\n135 / 500\n136 / 500\n137 / 500\n138 / 500\n139 / 500\n140 / 500\n141 / 500\n142 / 500\n143 / 500\n144 / 500\n145 / 500\n146 / 500\n147 / 500\n148 / 500\n149 / 500\n150 / 500\n151 / 500\n152 / 500\n153 / 500\n154 / 500\n155 / 500\n156 / 500\n157 / 500\n158 / 500\n159 / 500\n160 / 500\n161 / 500\n162 / 500\n163 / 500\n164 / 500\n165 / 500\n166 / 500\n167 / 500\n168 / 500\n169 / 500\n170 / 500\n171 / 500\n172 / 500\n173 / 500\n174 / 500\n175 / 500\n176 / 500\n177 / 500\n178 / 500\n179 / 500\n180 / 500\n181 / 500\n182 / 500\n183 / 500\n184 / 500\n185 / 500\n186 / 500\n187 / 500\n188 / 500\n189 / 500\n190 / 500\n191 / 500\n192 / 500\n193 / 500\n194 / 500\n195 / 500\n196 / 500\n197 / 500\n198 / 500\n199 / 500\n200 / 500\n201 / 500\n202 / 500\n203 / 500\n204 / 500\n205 / 500\n206 / 500\n207 / 500\n208 / 500\n209 / 500\n210 / 500\n211 / 500\n212 / 500\n213 / 500\n214 / 500\n215 / 500\n216 / 500\n217 / 500\n218 / 500\n219 / 500\n220 / 500\n221 / 500\n222 / 500\n223 / 500\n224 / 500\n225 / 500\n226 / 500\n227 / 500\n228 / 500\n229 / 500\n230 / 500\n231 / 500\n232 / 500\n233 / 500\n234 / 500\n235 / 500\n236 / 500\n237 / 500\n238 / 500\n239 / 500\n240 / 500\n241 / 500\n242 / 500\n243 / 500\n244 / 500\n245 / 500\n246 / 500\n247 / 500\n248 / 500\n249 / 500\n250 / 500\n251 / 500\n252 / 500\n253 / 500\n254 / 500\n255 / 500\n256 / 500\n257 / 500\n258 / 500\n259 / 500\n260 / 500\n261 / 500\n262 / 500\n263 / 500\n264 / 500\n265 / 500\n266 / 500\n267 / 500\n268 / 500\n269 / 500\n270 / 500\n271 / 500\n272 / 500\n273 / 500\n274 / 500\n275 / 500\n276 / 500\n277 / 500\n278 / 500\n279 / 500\n280 / 500\n281 / 500\n282 / 500\n283 / 500\n284 / 500\n285 / 500\n286 / 500\n287 / 500\n288 / 500\n289 / 500\n290 / 500\n291 / 500\n292 / 500\n293 / 500\n294 / 500\n295 / 500\n296 / 500\n297 / 500\n298 / 500\n299 / 500\n300 / 500\n301 / 500\n302 / 500\n303 / 500\n304 / 500\n305 / 500\n306 / 500\n307 / 500\n308 / 500\n309 / 500\n310 / 500\n311 / 500\n312 / 500\n313 / 500\n314 / 500\n315 / 500\n316 / 500\n317 / 500\n318 / 500\n319 / 500\n320 / 500\n321 / 500\n322 / 500\n323 / 500\n324 / 500\n325 / 500\n326 / 500\n327 / 500\n328 / 500\n329 / 500\n330 / 500\n331 / 500\n332 / 500\n333 / 500\n334 / 500\n335 / 500\n336 / 500\n337 / 500\n338 / 500\n339 / 500\n340 / 500\n341 / 500\n342 / 500\n343 / 500\n344 / 500\n345 / 500\n346 / 500\n347 / 500\n348 / 500\n349 / 500\n350 / 500\n351 / 500\n352 / 500\n353 / 500\n354 / 500\n355 / 500\n356 / 500\n357 / 500\n358 / 500\n359 / 500\n360 / 500\n361 / 500\n362 / 500\n363 / 500\n364 / 500\n365 / 500\n366 / 500\n367 / 500\n368 / 500\n369 / 500\n370 / 500\n371 / 500\n372 / 500\n373 / 500\n374 / 500\n375 / 500\n376 / 500\n377 / 500\n378 / 500\n379 / 500\n380 / 500\n381 / 500\n382 / 500\n383 / 500\n384 / 500\n385 / 500\n386 / 500\n387 / 500\n388 / 500\n389 / 500\n390 / 500\n391 / 500\n392 / 500\n393 / 500\n394 / 500\n395 / 500\n396 / 500\n397 / 500\n398 / 500\n399 / 500\n400 / 500\n401 / 500\n402 / 500\n403 / 500\n404 / 500\n405 / 500\n406 / 500\n407 / 500\n408 / 500\n409 / 500\n410 / 500\n411 / 500\n412 / 500\n413 / 500\n414 / 500\n415 / 500\n416 / 500\n417 / 500\n418 / 500\n419 / 500\n420 / 500\n421 / 500\n422 / 500\n423 / 500\n424 / 500\n425 / 500\n426 / 500\n427 / 500\n428 / 500\n429 / 500\n430 / 500\n431 / 500\n432 / 500\n433 / 500\n434 / 500\n435 / 500\n436 / 500\n437 / 500\n438 / 500\n439 / 500\n440 / 500\n441 / 500\n442 / 500\n443 / 500\n444 / 500\n445 / 500\n446 / 500\n447 / 500\n448 / 500\n449 / 500\n450 / 500\n451 / 500\n452 / 500\n453 / 500\n454 / 500\n455 / 500\n456 / 500\n457 / 500\n458 / 500\n459 / 500\n460 / 500\n461 / 500\n462 / 500\n463 / 500\n464 / 500\n465 / 500\n466 / 500\n467 / 500\n468 / 500\n469 / 500\n470 / 500\n471 / 500\n472 / 500\n473 / 500\n474 / 500\n475 / 500\n476 / 500\n477 / 500\n478 / 500\n479 / 500\n480 / 500\n481 / 500\n482 / 500\n483 / 500\n484 / 500\n485 / 500\n486 / 500\n487 / 500\n488 / 500\n489 / 500\n490 / 500\n491 / 500\n492 / 500\n493 / 500\n494 / 500\n495 / 500\n496 / 500\n497 / 500\n498 / 500\n499 / 500\n500 / 500\n501 / 500\n502 / 500\n503 / 500",
"metrics": {
"predict_time": 21.56634,
"total_time": 21.577753
},
"output": [
"https://replicate.delivery/pbxt/8g0wPEkUFi4qBRR8uuVUGlE3lS4hAfGsYeszG4QO0ffu8gnKB/2024-04-13_00-28-58_out_000.wav",
"https://replicate.delivery/pbxt/y5Z2otTMghb6NRm0wSueiSwTFrlh4IhfidfDv2qaxnex8gnKB/2024-04-13_00-28-58_out_001.wav",
"https://replicate.delivery/pbxt/Yhq3OQwsbj7EHJQnYzsj84kHskS0IHVNaJxdcjC9v7BzDeUJA/2024-04-13_00-28-58_out_002.wav",
"https://replicate.delivery/pbxt/lvfk9WQUy0RjC6J273RqzUA9I53f1RfcteCua5jAi3Vz8gnKB/2024-04-13_00-28-58_out_003.wav"
],
"started_at": "2024-04-13T00:28:39.191413Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/qrn4751khhrgg0cetkdv7fpv2g",
"cancel": "https://api.replicate.com/v1/predictions/qrn4751khhrgg0cetkdv7fpv2g/cancel"
},
"version": "020ac56a613f4494065e2e5544c7377788a8abcfbe645ecb8146634de0bc383e"
}
Using seed 3419052878
Melody wavform shape! torch.Size([4, 2, 442368])
1 / 500
2 / 500
3 / 500
4 / 500
5 / 500
6 / 500
7 / 500
8 / 500
9 / 500
10 / 500
11 / 500
12 / 500
13 / 500
14 / 500
15 / 500
16 / 500
17 / 500
18 / 500
19 / 500
20 / 500
21 / 500
22 / 500
23 / 500
24 / 500
25 / 500
26 / 500
27 / 500
28 / 500
29 / 500
30 / 500
31 / 500
32 / 500
33 / 500
34 / 500
35 / 500
36 / 500
37 / 500
38 / 500
39 / 500
40 / 500
41 / 500
42 / 500
43 / 500
44 / 500
45 / 500
46 / 500
47 / 500
48 / 500
49 / 500
50 / 500
51 / 500
52 / 500
53 / 500
54 / 500
55 / 500
56 / 500
57 / 500
58 / 500
59 / 500
60 / 500
61 / 500
62 / 500
63 / 500
64 / 500
65 / 500
66 / 500
67 / 500
68 / 500
69 / 500
70 / 500
71 / 500
72 / 500
73 / 500
74 / 500
75 / 500
76 / 500
77 / 500
78 / 500
79 / 500
80 / 500
81 / 500
82 / 500
83 / 500
84 / 500
85 / 500
86 / 500
87 / 500
88 / 500
89 / 500
90 / 500
91 / 500
92 / 500
93 / 500
94 / 500
95 / 500
96 / 500
97 / 500
98 / 500
99 / 500
100 / 500
101 / 500
102 / 500
103 / 500
104 / 500
105 / 500
106 / 500
107 / 500
108 / 500
109 / 500
110 / 500
111 / 500
112 / 500
113 / 500
114 / 500
115 / 500
116 / 500
117 / 500
118 / 500
119 / 500
120 / 500
121 / 500
122 / 500
123 / 500
124 / 500
125 / 500
126 / 500
127 / 500
128 / 500
129 / 500
130 / 500
131 / 500
132 / 500
133 / 500
134 / 500
135 / 500
136 / 500
137 / 500
138 / 500
139 / 500
140 / 500
141 / 500
142 / 500
143 / 500
144 / 500
145 / 500
146 / 500
147 / 500
148 / 500
149 / 500
150 / 500
151 / 500
152 / 500
153 / 500
154 / 500
155 / 500
156 / 500
157 / 500
158 / 500
159 / 500
160 / 500
161 / 500
162 / 500
163 / 500
164 / 500
165 / 500
166 / 500
167 / 500
168 / 500
169 / 500
170 / 500
171 / 500
172 / 500
173 / 500
174 / 500
175 / 500
176 / 500
177 / 500
178 / 500
179 / 500
180 / 500
181 / 500
182 / 500
183 / 500
184 / 500
185 / 500
186 / 500
187 / 500
188 / 500
189 / 500
190 / 500
191 / 500
192 / 500
193 / 500
194 / 500
195 / 500
196 / 500
197 / 500
198 / 500
199 / 500
200 / 500
201 / 500
202 / 500
203 / 500
204 / 500
205 / 500
206 / 500
207 / 500
208 / 500
209 / 500
210 / 500
211 / 500
212 / 500
213 / 500
214 / 500
215 / 500
216 / 500
217 / 500
218 / 500
219 / 500
220 / 500
221 / 500
222 / 500
223 / 500
224 / 500
225 / 500
226 / 500
227 / 500
228 / 500
229 / 500
230 / 500
231 / 500
232 / 500
233 / 500
234 / 500
235 / 500
236 / 500
237 / 500
238 / 500
239 / 500
240 / 500
241 / 500
242 / 500
243 / 500
244 / 500
245 / 500
246 / 500
247 / 500
248 / 500
249 / 500
250 / 500
251 / 500
252 / 500
253 / 500
254 / 500
255 / 500
256 / 500
257 / 500
258 / 500
259 / 500
260 / 500
261 / 500
262 / 500
263 / 500
264 / 500
265 / 500
266 / 500
267 / 500
268 / 500
269 / 500
270 / 500
271 / 500
272 / 500
273 / 500
274 / 500
275 / 500
276 / 500
277 / 500
278 / 500
279 / 500
280 / 500
281 / 500
282 / 500
283 / 500
284 / 500
285 / 500
286 / 500
287 / 500
288 / 500
289 / 500
290 / 500
291 / 500
292 / 500
293 / 500
294 / 500
295 / 500
296 / 500
297 / 500
298 / 500
299 / 500
300 / 500
301 / 500
302 / 500
303 / 500
304 / 500
305 / 500
306 / 500
307 / 500
308 / 500
309 / 500
310 / 500
311 / 500
312 / 500
313 / 500
314 / 500
315 / 500
316 / 500
317 / 500
318 / 500
319 / 500
320 / 500
321 / 500
322 / 500
323 / 500
324 / 500
325 / 500
326 / 500
327 / 500
328 / 500
329 / 500
330 / 500
331 / 500
332 / 500
333 / 500
334 / 500
335 / 500
336 / 500
337 / 500
338 / 500
339 / 500
340 / 500
341 / 500
342 / 500
343 / 500
344 / 500
345 / 500
346 / 500
347 / 500
348 / 500
349 / 500
350 / 500
351 / 500
352 / 500
353 / 500
354 / 500
355 / 500
356 / 500
357 / 500
358 / 500
359 / 500
360 / 500
361 / 500
362 / 500
363 / 500
364 / 500
365 / 500
366 / 500
367 / 500
368 / 500
369 / 500
370 / 500
371 / 500
372 / 500
373 / 500
374 / 500
375 / 500
376 / 500
377 / 500
378 / 500
379 / 500
380 / 500
381 / 500
382 / 500
383 / 500
384 / 500
385 / 500
386 / 500
387 / 500
388 / 500
389 / 500
390 / 500
391 / 500
392 / 500
393 / 500
394 / 500
395 / 500
396 / 500
397 / 500
398 / 500
399 / 500
400 / 500
401 / 500
402 / 500
403 / 500
404 / 500
405 / 500
406 / 500
407 / 500
408 / 500
409 / 500
410 / 500
411 / 500
412 / 500
413 / 500
414 / 500
415 / 500
416 / 500
417 / 500
418 / 500
419 / 500
420 / 500
421 / 500
422 / 500
423 / 500
424 / 500
425 / 500
426 / 500
427 / 500
428 / 500
429 / 500
430 / 500
431 / 500
432 / 500
433 / 500
434 / 500
435 / 500
436 / 500
437 / 500
438 / 500
439 / 500
440 / 500
441 / 500
442 / 500
443 / 500
444 / 500
445 / 500
446 / 500
447 / 500
448 / 500
449 / 500
450 / 500
451 / 500
452 / 500
453 / 500
454 / 500
455 / 500
456 / 500
457 / 500
458 / 500
459 / 500
460 / 500
461 / 500
462 / 500
463 / 500
464 / 500
465 / 500
466 / 500
467 / 500
468 / 500
469 / 500
470 / 500
471 / 500
472 / 500
473 / 500
474 / 500
475 / 500
476 / 500
477 / 500
478 / 500
479 / 500
480 / 500
481 / 500
482 / 500
483 / 500
484 / 500
485 / 500
486 / 500
487 / 500
488 / 500
489 / 500
490 / 500
491 / 500
492 / 500
493 / 500
494 / 500
495 / 500
496 / 500
497 / 500
498 / 500
499 / 500
500 / 500
501 / 500
502 / 500
503 / 500