typetext
{
"classifier_free_guidance": 3,
"continuation": false,
"continuation_start": 0,
"duration": 8,
"multi_band_diffusion": false,
"normalization_strategy": "loudness",
"output_format": "wav",
"prompt": "disco dance sensation, sunny day, princess pop, bright and happy, 8 bit, chiptune",
"temperature": 2,
"top_k": 250,
"top_p": 0
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_9yF**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run petelouise/abba-8bit-dancing-queen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"petelouise/abba-8bit-dancing-queen:eb7db2e483a38df45f48e41f2d9e4f745930885e7f23cb897aaf889828fecd6b",
{
input: {
classifier_free_guidance: 3,
continuation: false,
continuation_start: 0,
duration: 8,
multi_band_diffusion: false,
normalization_strategy: "loudness",
output_format: "wav",
prompt: "disco dance sensation, sunny day, princess pop, bright and happy, 8 bit, chiptune",
temperature: 2,
top_k: 250,
top_p: 0
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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=r8_9yF**********************************
This is your API token. Keep it to yourself.
import replicate
Run petelouise/abba-8bit-dancing-queen using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"petelouise/abba-8bit-dancing-queen:eb7db2e483a38df45f48e41f2d9e4f745930885e7f23cb897aaf889828fecd6b",
input={
"classifier_free_guidance": 3,
"continuation": False,
"continuation_start": 0,
"duration": 8,
"multi_band_diffusion": False,
"normalization_strategy": "loudness",
"output_format": "wav",
"prompt": "disco dance sensation, sunny day, princess pop, bright and happy, 8 bit, chiptune",
"temperature": 2,
"top_k": 250,
"top_p": 0
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_9yF**********************************
This is your API token. Keep it to yourself.
Run petelouise/abba-8bit-dancing-queen 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": "petelouise/abba-8bit-dancing-queen:eb7db2e483a38df45f48e41f2d9e4f745930885e7f23cb897aaf889828fecd6b",
"input": {
"classifier_free_guidance": 3,
"continuation": false,
"continuation_start": 0,
"duration": 8,
"multi_band_diffusion": false,
"normalization_strategy": "loudness",
"output_format": "wav",
"prompt": "disco dance sensation, sunny day, princess pop, bright and happy, 8 bit, chiptune",
"temperature": 2,
"top_k": 250,
"top_p": 0
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "z7qfz2jbxrrj2aqyoh2f2e3kua",
"model": "petelouise/abba-8bit-dancing-queen",
"version": "eb7db2e483a38df45f48e41f2d9e4f745930885e7f23cb897aaf889828fecd6b",
"input": {
"classifier_free_guidance": 3,
"continuation": false,
"continuation_start": 0,
"duration": 8,
"multi_band_diffusion": false,
"normalization_strategy": "loudness",
"output_format": "wav",
"prompt": "disco dance sensation, sunny day, princess pop, bright and happy, 8 bit, chiptune",
"temperature": 2,
"top_k": 250,
"top_p": 0
},
"logs": "Fine-tuned model weights hot-swapped!\nUsing seed 414559126\n1 / 400\n2 / 400\n3 / 400\n4 / 400\n5 / 400\n6 / 400\n7 / 400\n8 / 400\n9 / 400\n10 / 400\n11 / 400\n12 / 400\n13 / 400\n14 / 400\n15 / 400\n16 / 400\n17 / 400\n18 / 400\n19 / 400\n20 / 400\n21 / 400\n22 / 400\n23 / 400\n24 / 400\n25 / 400\n26 / 400\n27 / 400\n28 / 400\n29 / 400\n30 / 400\n31 / 400\n32 / 400\n33 / 400\n34 / 400\n35 / 400\n36 / 400\n37 / 400\n38 / 400\n39 / 400\n40 / 400\n41 / 400\n42 / 400\n43 / 400\n44 / 400\n45 / 400\n46 / 400\n47 / 400\n48 / 400\n49 / 400\n50 / 400\n51 / 400\n52 / 400\n53 / 400\n54 / 400\n55 / 400\n56 / 400\n57 / 400\n58 / 400\n59 / 400\n60 / 400\n61 / 400\n62 / 400\n63 / 400\n64 / 400\n65 / 400\n66 / 400\n67 / 400\n68 / 400\n69 / 400\n70 / 400\n71 / 400\n72 / 400\n73 / 400\n74 / 400\n75 / 400\n76 / 400\n77 / 400\n78 / 400\n79 / 400\n80 / 400\n81 / 400\n82 / 400\n83 / 400\n84 / 400\n85 / 400\n86 / 400\n87 / 400\n 88 / 400\n89 / 400\n90 / 400\n91 / 400\n92 / 400\n93 / 400\n94 / 400\n95 / 400\n96 / 400\n97 / 400\n98 / 400\n99 / 400\n100 / 400\n101 / 400\n102 / 400\n103 / 400\n104 / 400\n105 / 400\n106 / 400\n107 / 400\n108 / 400\n109 / 400\n110 / 400\n111 / 400\n112 / 400\n113 / 400\n114 / 400\n115 / 400\n116 / 400\n117 / 400\n118 / 400\n119 / 400\n120 / 400\n121 / 400\n122 / 400\n123 / 400\n124 / 400\n125 / 400\n126 / 400\n127 / 400\n128 / 400\n129 / 400\n130 / 400\n131 / 400\n132 / 400\n133 / 400\n134 / 400\n135 / 400\n136 / 400\n137 / 400\n138 / 400\n139 / 400\n140 / 400\n141 / 400\n142 / 400\n143 / 400\n144 / 400\n145 / 400\n146 / 400\n147 / 400\n148 / 400\n149 / 400\n150 / 400\n151 / 400\n152 / 400\n153 / 400\n154 / 400\n155 / 400\n156 / 400\n157 / 400\n158 / 400\n159 / 400\n160 / 400\n161 / 400\n162 / 400\n163 / 400\n164 / 400\n165 / 400\n166 / 400\n167 / 400\n168 / 400\n169 / 400\n170 / 400\n171 / 400\n172 / 400\n173 / 400\n174 / 400\n175 / 400\n176 / 400\n177 / 400\n178 / 400\n179 / 400\n180 / 400\n181 / 400\n182 / 400\n183 / 400\n184 / 400\n185 / 400\n186 / 400\n187 / 400\n188 / 400\n189 / 400\n190 / 400\n191 / 400\n192 / 400\n193 / 400\n194 / 400\n195 / 400\n196 / 400\n197 / 400\n198 / 400\n199 / 400\n200 / 400\n201 / 400\n202 / 400\n203 / 400\n204 / 400\n205 / 400\n206 / 400\n207 / 400\n208 / 400\n209 / 400\n210 / 400\n211 / 400\n212 / 400\n213 / 400\n214 / 400\n215 / 400\n216 / 400\n217 / 400\n218 / 400\n219 / 400\n220 / 400\n221 / 400\n222 / 400\n223 / 400\n224 / 400\n225 / 400\n226 / 400\n227 / 400\n228 / 400\n229 / 400\n230 / 400\n231 / 400\n232 / 400\n233 / 400\n234 / 400\n235 / 400\n236 / 400\n237 / 400\n238 / 400\n239 / 400\n240 / 400\n241 / 400\n242 / 400\n243 / 400\n244 / 400\n245 / 400\n246 / 400\n247 / 400\n248 / 400\n249 / 400\n250 / 400\n251 / 400\n252 / 400\n253 / 400\n254 / 400\n255 / 400\n256 / 400\n257 / 400\n258 / 400\n259 / 400\n260 / 400\n261 / 400\n262 / 400\n263 / 400\n264 / 400\n265 / 400\n266 / 400\n267 / 400\n268 / 400\n269 / 400\n270 / 400\n271 / 400\n272 / 400\n273 / 400\n274 / 400\n275 / 400\n276 / 400\n277 / 400\n278 / 400\n279 / 400\n280 / 400\n281 / 400\n282 / 400\n283 / 400\n284 / 400\n285 / 400\n286 / 400\n287 / 400\n288 / 400\n289 / 400\n290 / 400\n291 / 400\n292 / 400\n293 / 400\n294 / 400\n295 / 400\n296 / 400\n297 / 400\n298 / 400\n299 / 400\n300 / 400\n301 / 400\n302 / 400\n303 / 400\n304 / 400\n305 / 400\n306 / 400\n307 / 400\n308 / 400\n309 / 400\n310 / 400\n311 / 400\n312 / 400\n313 / 400\n314 / 400\n315 / 400\n316 / 400\n317 / 400\n318 / 400\n319 / 400\n320 / 400\n321 / 400\n322 / 400\n323 / 400\n324 / 400\n325 / 400\n326 / 400\n327 / 400\n328 / 400\n329 / 400\n330 / 400\n331 / 400\n332 / 400\n333 / 400\n334 / 400\n335 / 400\n336 / 400\n337 / 400\n338 / 400\n339 / 400\n340 / 400\n341 / 400\n342 / 400\n343 / 400\n344 / 400\n345 / 400\n346 / 400\n347 / 400\n348 / 400\n349 / 400\n350 / 400\n351 / 400\n352 / 400\n353 / 400\n354 / 400\n355 / 400\n356 / 400\n357 / 400\n358 / 400\n359 / 400\n360 / 400\n361 / 400\n362 / 400\n363 / 400\n364 / 400\n365 / 400\n366 / 400\n367 / 400\n368 / 400\n369 / 400\n370 / 400\n371 / 400\n372 / 400\n373 / 400\n374 / 400\n375 / 400\n376 / 400\n377 / 400\n378 / 400\n379 / 400\n380 / 400\n381 / 400\n382 / 400\n383 / 400\n384 / 400\n385 / 400\n386 / 400\n387 / 400\n388 / 400\n389 / 400\n390 / 400\n391 / 400\n392 / 400\n393 / 400\n394 / 400\n395 / 400\n396 / 400\n397 / 400\n398 / 400\n399 / 400\n400 / 400\n401 / 400\n402 / 400\n403 / 400\nCLIPPING out happening with proba (a bit of clipping is okay): 1.9531250927684596e-06maximum scale: 1.0761033296585083",
"output": "https://replicate.delivery/pbxt/OPU2gwpTgcJAMJdVP2oUNZZUUnokbHpUaHRf35r8jbn4Mu8IA/out.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-11-18T01:33:07.202513Z",
"started_at": "2023-11-18T01:33:07.820893Z",
"completed_at": "2023-11-18T01:33:38.104571Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/z7qfz2jbxrrj2aqyoh2f2e3kua/cancel",
"get": "https://api.replicate.com/v1/predictions/z7qfz2jbxrrj2aqyoh2f2e3kua"
},
"metrics": {
"predict_time": 30.283678,
"total_time": 30.902058
}
}