You're looking at a specific version of this model. Jump to the model overview.
pollinations /music-gen:9b8643c0
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport 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 pollinations/music-gen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pollinations/music-gen:9b8643c06debace10b9026f94dcb117f61dc1fee66558a09cde4cfbf51bcced6",
{
input: {
text: "A dynamic blend of hip-hop and orchestral elements, with sweeping strings and brass, evoking the vibrant energy of the city.",
duration: 12
}
}
);
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 variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run pollinations/music-gen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pollinations/music-gen:9b8643c06debace10b9026f94dcb117f61dc1fee66558a09cde4cfbf51bcced6",
input={
"text": "A dynamic blend of hip-hop and orchestral elements, with sweeping strings and brass, evoking the vibrant energy of the city.",
"duration": 12
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pollinations/music-gen 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": "9b8643c06debace10b9026f94dcb117f61dc1fee66558a09cde4cfbf51bcced6",
"input": {
"text": "A dynamic blend of hip-hop and orchestral elements, with sweeping strings and brass, evoking the vibrant energy of the city.",
"duration": 12
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run pollinations/music-gen using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/pollinations/music-gen@sha256:9b8643c06debace10b9026f94dcb117f61dc1fee66558a09cde4cfbf51bcced6 \
-i 'text="A dynamic blend of hip-hop and orchestral elements, with sweeping strings and brass, evoking the vibrant energy of the city."' \
-i 'duration=12'
To learn more, take a look at the Cog documentation.
Pull and run pollinations/music-gen using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/pollinations/music-gen@sha256:9b8643c06debace10b9026f94dcb117f61dc1fee66558a09cde4cfbf51bcced6
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "text": "A dynamic blend of hip-hop and orchestral elements, with sweeping strings and brass, evoking the vibrant energy of the city.", "duration": 12 } }' \ http://localhost:5000/predictions
Add a payment method to run this model.
Each run costs approximately $0.074. Alternatively, try out our featured models for free.
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.
{
"completed_at": "2023-06-15T00:41:56.304422Z",
"created_at": "2023-06-15T00:32:43.285036Z",
"data_removed": false,
"error": null,
"id": "kpqpy4zbu3p5q2axois3fmi5fa",
"input": {
"text": "A dynamic blend of hip-hop and orchestral elements, with sweeping strings and brass, evoking the vibrant energy of the city.",
"duration": 12
},
"logs": "1 / 603\n2 / 603\n3 / 603\n4 / 603\n5 / 603\n6 / 603\n7 / 603\n8 / 603\n9 / 603\n10 / 603\n11 / 603\n12 / 603\n13 / 603\n14 / 603\n15 / 603\n16 / 603\n17 / 603\n18 / 603\n19 / 603\n20 / 603\n21 / 603\n22 / 603\n23 / 603\n24 / 603\n25 / 603\n26 / 603\n27 / 603\n28 / 603\n29 / 603\n30 / 603\n31 / 603\n32 / 603\n33 / 603\n34 / 603\n35 / 603\n36 / 603\n37 / 603\n38 / 603\n39 / 603\n40 / 603\n41 / 603\n42 / 603\n43 / 603\n44 / 603\n45 / 603\n46 / 603\n47 / 603\n48 / 603\n49 / 603\n50 / 603\n51 / 603\n52 / 603\n53 / 603\n54 / 603\n55 / 603\n56 / 603\n57 / 603\n58 / 603\n59 / 603\n60 / 603\n61 / 603\n62 / 603\n63 / 603\n64 / 603\n65 / 603\n66 / 603\n67 / 603\n68 / 603\n69 / 603\n70 / 603\n71 / 603\n72 / 603\n73 / 603\n74 / 603\n75 / 603\n 76 / 603\n77 / 603\n78 / 603\n79 / 603\n80 / 603\n81 / 603\n82 / 603\n83 / 603\n84 / 603\n85 / 603\n86 / 603\n87 / 603\n88 / 603\n89 / 603\n90 / 603\n91 / 603\n92 / 603\n93 / 603\n94 / 603\n95 / 603\n96 / 603\n97 / 603\n98 / 603\n99 / 603\n100 / 603\n101 / 603\n102 / 603\n103 / 603\n104 / 603\n105 / 603\n106 / 603\n107 / 603\n108 / 603\n109 / 603\n110 / 603\n111 / 603\n112 / 603\n113 / 603\n114 / 603\n115 / 603\n116 / 603\n117 / 603\n118 / 603\n119 / 603\n120 / 603\n121 / 603\n122 / 603\n123 / 603\n124 / 603\n125 / 603\n126 / 603\n127 / 603\n128 / 603\n129 / 603\n130 / 603\n131 / 603\n132 / 603\n133 / 603\n134 / 603\n135 / 603\n136 / 603\n137 / 603\n138 / 603\n139 / 603\n140 / 603\n141 / 603\n142 / 603\n143 / 603\n144 / 603\n145 / 603\n146 / 603\n147 / 603\n148 / 603\n149 / 603\n150 / 603\n151 / 603\n152 / 603\n153 / 603\n154 / 603\n155 / 603\n156 / 603\n157 / 603\n158 / 603\n159 / 603\n160 / 603\n161 / 603\n162 / 603\n163 / 603\n164 / 603\n165 / 603\n166 / 603\n167 / 603\n168 / 603\n169 / 603\n170 / 603\n171 / 603\n172 / 603\n173 / 603\n174 / 603\n175 / 603\n176 / 603\n177 / 603\n178 / 603\n179 / 603\n180 / 603\n181 / 603\n182 / 603\n183 / 603\n184 / 603\n185 / 603\n186 / 603\n187 / 603\n188 / 603\n189 / 603\n190 / 603\n191 / 603\n192 / 603\n193 / 603\n194 / 603\n195 / 603\n196 / 603\n197 / 603\n198 / 603\n199 / 603\n200 / 603\n201 / 603\n202 / 603\n203 / 603\n204 / 603\n205 / 603\n206 / 603\n207 / 603\n208 / 603\n209 / 603\n210 / 603\n211 / 603\n212 / 603\n213 / 603\n214 / 603\n215 / 603\n216 / 603\n217 / 603\n218 / 603\n219 / 603\n220 / 603\n221 / 603\n222 / 603\n223 / 603\n224 / 603\n225 / 603\n226 / 603\n227 / 603\n228 / 603\n229 / 603\n230 / 603\n231 / 603\n232 / 603\n233 / 603\n234 / 603\n235 / 603\n236 / 603\n237 / 603\n238 / 603\n239 / 603\n 240 / 603\n241 / 603\n242 / 603\n243 / 603\n244 / 603\n245 / 603\n246 / 603\n247 / 603\n248 / 603\n249 / 603\n250 / 603\n251 / 603\n252 / 603\n253 / 603\n254 / 603\n255 / 603\n256 / 603\n257 / 603\n258 / 603\n259 / 603\n260 / 603\n261 / 603\n262 / 603\n263 / 603\n264 / 603\n265 / 603\n266 / 603\n267 / 603\n268 / 603\n269 / 603\n270 / 603\n271 / 603\n272 / 603\n273 / 603\n274 / 603\n275 / 603\n276 / 603\n277 / 603\n278 / 603\n279 / 603\n280 / 603\n281 / 603\n282 / 603\n283 / 603\n284 / 603\n285 / 603\n286 / 603\n287 / 603\n288 / 603\n289 / 603\n290 / 603\n291 / 603\n292 / 603\n293 / 603\n294 / 603\n295 / 603\n296 / 603\n297 / 603\n298 / 603\n299 / 603\n300 / 603\n301 / 603\n302 / 603\n303 / 603\n304 / 603\n305 / 603\n306 / 603\n307 / 603\n308 / 603\n309 / 603\n310 / 603\n311 / 603\n312 / 603\n313 / 603\n314 / 603\n315 / 603\n316 / 603\n317 / 603\n318 / 603\n319 / 603\n320 / 603\n321 / 603\n322 / 603\n323 / 603\n324 / 603\n325 / 603\n326 / 603\n327 / 603\n328 / 603\n329 / 603\n330 / 603\n331 / 603\n332 / 603\n333 / 603\n334 / 603\n335 / 603\n336 / 603\n337 / 603\n338 / 603\n339 / 603\n340 / 603\n341 / 603\n342 / 603\n343 / 603\n344 / 603\n345 / 603\n346 / 603\n347 / 603\n348 / 603\n349 / 603\n350 / 603\n351 / 603\n352 / 603\n353 / 603\n354 / 603\n355 / 603\n356 / 603\n357 / 603\n358 / 603\n359 / 603\n360 / 603\n361 / 603\n362 / 603\n363 / 603\n364 / 603\n365 / 603\n366 / 603\n367 / 603\n368 / 603\n369 / 603\n370 / 603\n371 / 603\n372 / 603\n373 / 603\n374 / 603\n375 / 603\n376 / 603\n377 / 603\n378 / 603\n379 / 603\n380 / 603\n381 / 603\n382 / 603\n383 / 603\n384 / 603\n385 / 603\n386 / 603\n387 / 603\n388 / 603\n389 / 603\n390 / 603\n391 / 603\n392 / 603\n393 / 603\n394 / 603\n395 / 603\n396 / 603\n397 / 603\n398 / 603\n399 / 603\n400 / 603\n401 / 603\n402 / 603\n403 / 603\n404 / 603\n405 / 603\n406 / 603\n407 / 603\n408 / 603\n409 / 603\n410 / 603\n411 / 603\n412 / 603\n413 / 603\n414 / 603\n415 / 603\n416 / 603\n417 / 603\n418 / 603\n419 / 603\n420 / 603\n421 / 603\n422 / 603\n423 / 603\n424 / 603\n425 / 603\n426 / 603\n427 / 603\n428 / 603\n429 / 603\n430 / 603\n431 / 603\n432 / 603\n433 / 603\n434 / 603\n435 / 603\n436 / 603\n437 / 603\n438 / 603\n439 / 603\n440 / 603\n441 / 603\n442 / 603\n 443 / 603\n444 / 603\n445 / 603\n446 / 603\n447 / 603\n448 / 603\n449 / 603\n450 / 603\n451 / 603\n452 / 603\n453 / 603\n454 / 603\n455 / 603\n456 / 603\n457 / 603\n458 / 603\n459 / 603\n460 / 603\n461 / 603\n462 / 603\n463 / 603\n464 / 603\n465 / 603\n466 / 603\n467 / 603\n468 / 603\n469 / 603\n470 / 603\n471 / 603\n472 / 603\n473 / 603\n474 / 603\n475 / 603\n476 / 603\n477 / 603\n478 / 603\n479 / 603\n480 / 603\n481 / 603\n482 / 603\n483 / 603\n484 / 603\n485 / 603\n486 / 603\n487 / 603\n488 / 603\n489 / 603\n490 / 603\n491 / 603\n492 / 603\n493 / 603\n494 / 603\n495 / 603\n496 / 603\n497 / 603\n498 / 603\n499 / 603\n500 / 603\n501 / 603\n502 / 603\n503 / 603\n504 / 603\n505 / 603\n506 / 603\n507 / 603\n508 / 603\n509 / 603\n510 / 603\n511 / 603\n512 / 603\n513 / 603\n514 / 603\n515 / 603\n516 / 603\n517 / 603\n518 / 603\n519 / 603\n520 / 603\n521 / 603\n522 / 603\n523 / 603\n524 / 603\n525 / 603\n526 / 603\n527 / 603\n528 / 603\n529 / 603\n530 / 603\n531 / 603\n532 / 603\n533 / 603\n534 / 603\n535 / 603\n536 / 603\n537 / 603\n538 / 603\n539 / 603\n540 / 603\n541 / 603\n542 / 603\n543 / 603\n544 / 603\n545 / 603\n546 / 603\n547 / 603\n548 / 603\n549 / 603\n550 / 603\n551 / 603\n552 / 603\n553 / 603\n554 / 603\n555 / 603\n556 / 603\n557 / 603\n558 / 603\n559 / 603\n560 / 603\n561 / 603\n562 / 603\n563 / 603\n564 / 603\n565 / 603\n566 / 603\n567 / 603\n568 / 603\n569 / 603\n570 / 603\n571 / 603\n572 / 603\n573 / 603\n574 / 603\n575 / 603\n576 / 603\n577 / 603\n578 / 603\n579 / 603\n580 / 603\n581 / 603\n582 / 603\n583 / 603\n584 / 603\n585 / 603\n586 / 603\n587 / 603\n588 / 603\n589 / 603\n590 / 603\n591 / 603\n592 / 603\n593 / 603\n594 / 603\n595 / 603\n596 / 603\n597 / 603\n598 / 603\n599 / 603\n600 / 603\n601 / 603\n602 / 603\n603 / 603\nGeneration took 93.93825554847717 seconds\nSaving /tmp/1f83cca4-2323-4fc9-ae42-11d9a429e84b\nCLIPPING /tmp/1f83cca4-2323-4fc9-ae42-11d9a429e84b happening with proba (a bit of clipping is okay): 0.0007656249799765646 maximum scale: 1.250171184539795",
"metrics": {
"predict_time": 95.108327,
"total_time": 553.019386
},
"output": "https://replicate.delivery/pbxt/A4SbpD3vDLroO1uXMYAooAqv7sfeXF5LHS8tuibSDftmCCMiA/1f83cca4-2323-4fc9-ae42-11d9a429e84b.wav",
"started_at": "2023-06-15T00:40:21.196095Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/kpqpy4zbu3p5q2axois3fmi5fa",
"cancel": "https://api.replicate.com/v1/predictions/kpqpy4zbu3p5q2axois3fmi5fa/cancel"
},
"version": "9b8643c06debace10b9026f94dcb117f61dc1fee66558a09cde4cfbf51bcced6"
}
1 / 603
2 / 603
3 / 603
4 / 603
5 / 603
6 / 603
7 / 603
8 / 603
9 / 603
10 / 603
11 / 603
12 / 603
13 / 603
14 / 603
15 / 603
16 / 603
17 / 603
18 / 603
19 / 603
20 / 603
21 / 603
22 / 603
23 / 603
24 / 603
25 / 603
26 / 603
27 / 603
28 / 603
29 / 603
30 / 603
31 / 603
32 / 603
33 / 603
34 / 603
35 / 603
36 / 603
37 / 603
38 / 603
39 / 603
40 / 603
41 / 603
42 / 603
43 / 603
44 / 603
45 / 603
46 / 603
47 / 603
48 / 603
49 / 603
50 / 603
51 / 603
52 / 603
53 / 603
54 / 603
55 / 603
56 / 603
57 / 603
58 / 603
59 / 603
60 / 603
61 / 603
62 / 603
63 / 603
64 / 603
65 / 603
66 / 603
67 / 603
68 / 603
69 / 603
70 / 603
71 / 603
72 / 603
73 / 603
74 / 603
75 / 603
76 / 603
77 / 603
78 / 603
79 / 603
80 / 603
81 / 603
82 / 603
83 / 603
84 / 603
85 / 603
86 / 603
87 / 603
88 / 603
89 / 603
90 / 603
91 / 603
92 / 603
93 / 603
94 / 603
95 / 603
96 / 603
97 / 603
98 / 603
99 / 603
100 / 603
101 / 603
102 / 603
103 / 603
104 / 603
105 / 603
106 / 603
107 / 603
108 / 603
109 / 603
110 / 603
111 / 603
112 / 603
113 / 603
114 / 603
115 / 603
116 / 603
117 / 603
118 / 603
119 / 603
120 / 603
121 / 603
122 / 603
123 / 603
124 / 603
125 / 603
126 / 603
127 / 603
128 / 603
129 / 603
130 / 603
131 / 603
132 / 603
133 / 603
134 / 603
135 / 603
136 / 603
137 / 603
138 / 603
139 / 603
140 / 603
141 / 603
142 / 603
143 / 603
144 / 603
145 / 603
146 / 603
147 / 603
148 / 603
149 / 603
150 / 603
151 / 603
152 / 603
153 / 603
154 / 603
155 / 603
156 / 603
157 / 603
158 / 603
159 / 603
160 / 603
161 / 603
162 / 603
163 / 603
164 / 603
165 / 603
166 / 603
167 / 603
168 / 603
169 / 603
170 / 603
171 / 603
172 / 603
173 / 603
174 / 603
175 / 603
176 / 603
177 / 603
178 / 603
179 / 603
180 / 603
181 / 603
182 / 603
183 / 603
184 / 603
185 / 603
186 / 603
187 / 603
188 / 603
189 / 603
190 / 603
191 / 603
192 / 603
193 / 603
194 / 603
195 / 603
196 / 603
197 / 603
198 / 603
199 / 603
200 / 603
201 / 603
202 / 603
203 / 603
204 / 603
205 / 603
206 / 603
207 / 603
208 / 603
209 / 603
210 / 603
211 / 603
212 / 603
213 / 603
214 / 603
215 / 603
216 / 603
217 / 603
218 / 603
219 / 603
220 / 603
221 / 603
222 / 603
223 / 603
224 / 603
225 / 603
226 / 603
227 / 603
228 / 603
229 / 603
230 / 603
231 / 603
232 / 603
233 / 603
234 / 603
235 / 603
236 / 603
237 / 603
238 / 603
239 / 603
240 / 603
241 / 603
242 / 603
243 / 603
244 / 603
245 / 603
246 / 603
247 / 603
248 / 603
249 / 603
250 / 603
251 / 603
252 / 603
253 / 603
254 / 603
255 / 603
256 / 603
257 / 603
258 / 603
259 / 603
260 / 603
261 / 603
262 / 603
263 / 603
264 / 603
265 / 603
266 / 603
267 / 603
268 / 603
269 / 603
270 / 603
271 / 603
272 / 603
273 / 603
274 / 603
275 / 603
276 / 603
277 / 603
278 / 603
279 / 603
280 / 603
281 / 603
282 / 603
283 / 603
284 / 603
285 / 603
286 / 603
287 / 603
288 / 603
289 / 603
290 / 603
291 / 603
292 / 603
293 / 603
294 / 603
295 / 603
296 / 603
297 / 603
298 / 603
299 / 603
300 / 603
301 / 603
302 / 603
303 / 603
304 / 603
305 / 603
306 / 603
307 / 603
308 / 603
309 / 603
310 / 603
311 / 603
312 / 603
313 / 603
314 / 603
315 / 603
316 / 603
317 / 603
318 / 603
319 / 603
320 / 603
321 / 603
322 / 603
323 / 603
324 / 603
325 / 603
326 / 603
327 / 603
328 / 603
329 / 603
330 / 603
331 / 603
332 / 603
333 / 603
334 / 603
335 / 603
336 / 603
337 / 603
338 / 603
339 / 603
340 / 603
341 / 603
342 / 603
343 / 603
344 / 603
345 / 603
346 / 603
347 / 603
348 / 603
349 / 603
350 / 603
351 / 603
352 / 603
353 / 603
354 / 603
355 / 603
356 / 603
357 / 603
358 / 603
359 / 603
360 / 603
361 / 603
362 / 603
363 / 603
364 / 603
365 / 603
366 / 603
367 / 603
368 / 603
369 / 603
370 / 603
371 / 603
372 / 603
373 / 603
374 / 603
375 / 603
376 / 603
377 / 603
378 / 603
379 / 603
380 / 603
381 / 603
382 / 603
383 / 603
384 / 603
385 / 603
386 / 603
387 / 603
388 / 603
389 / 603
390 / 603
391 / 603
392 / 603
393 / 603
394 / 603
395 / 603
396 / 603
397 / 603
398 / 603
399 / 603
400 / 603
401 / 603
402 / 603
403 / 603
404 / 603
405 / 603
406 / 603
407 / 603
408 / 603
409 / 603
410 / 603
411 / 603
412 / 603
413 / 603
414 / 603
415 / 603
416 / 603
417 / 603
418 / 603
419 / 603
420 / 603
421 / 603
422 / 603
423 / 603
424 / 603
425 / 603
426 / 603
427 / 603
428 / 603
429 / 603
430 / 603
431 / 603
432 / 603
433 / 603
434 / 603
435 / 603
436 / 603
437 / 603
438 / 603
439 / 603
440 / 603
441 / 603
442 / 603
443 / 603
444 / 603
445 / 603
446 / 603
447 / 603
448 / 603
449 / 603
450 / 603
451 / 603
452 / 603
453 / 603
454 / 603
455 / 603
456 / 603
457 / 603
458 / 603
459 / 603
460 / 603
461 / 603
462 / 603
463 / 603
464 / 603
465 / 603
466 / 603
467 / 603
468 / 603
469 / 603
470 / 603
471 / 603
472 / 603
473 / 603
474 / 603
475 / 603
476 / 603
477 / 603
478 / 603
479 / 603
480 / 603
481 / 603
482 / 603
483 / 603
484 / 603
485 / 603
486 / 603
487 / 603
488 / 603
489 / 603
490 / 603
491 / 603
492 / 603
493 / 603
494 / 603
495 / 603
496 / 603
497 / 603
498 / 603
499 / 603
500 / 603
501 / 603
502 / 603
503 / 603
504 / 603
505 / 603
506 / 603
507 / 603
508 / 603
509 / 603
510 / 603
511 / 603
512 / 603
513 / 603
514 / 603
515 / 603
516 / 603
517 / 603
518 / 603
519 / 603
520 / 603
521 / 603
522 / 603
523 / 603
524 / 603
525 / 603
526 / 603
527 / 603
528 / 603
529 / 603
530 / 603
531 / 603
532 / 603
533 / 603
534 / 603
535 / 603
536 / 603
537 / 603
538 / 603
539 / 603
540 / 603
541 / 603
542 / 603
543 / 603
544 / 603
545 / 603
546 / 603
547 / 603
548 / 603
549 / 603
550 / 603
551 / 603
552 / 603
553 / 603
554 / 603
555 / 603
556 / 603
557 / 603
558 / 603
559 / 603
560 / 603
561 / 603
562 / 603
563 / 603
564 / 603
565 / 603
566 / 603
567 / 603
568 / 603
569 / 603
570 / 603
571 / 603
572 / 603
573 / 603
574 / 603
575 / 603
576 / 603
577 / 603
578 / 603
579 / 603
580 / 603
581 / 603
582 / 603
583 / 603
584 / 603
585 / 603
586 / 603
587 / 603
588 / 603
589 / 603
590 / 603
591 / 603
592 / 603
593 / 603
594 / 603
595 / 603
596 / 603
597 / 603
598 / 603
599 / 603
600 / 603
601 / 603
602 / 603
603 / 603
Generation took 93.93825554847717 seconds
Saving /tmp/1f83cca4-2323-4fc9-ae42-11d9a429e84b
CLIPPING /tmp/1f83cca4-2323-4fc9-ae42-11d9a429e84b happening with proba (a bit of clipping is okay): 0.0007656249799765646 maximum scale: 1.250171184539795