All models
Audiov1.0.0
MusicGen Looper (Seamless Loop)
Generate a seamless music loop at a fixed tempo.
6 inputsAUDIO
a warm lo-fi hip hop loop with a dusty rhodes chord
Seamless loop at 90 BPM
Output
Fill in the inputs and run the node to see its output here.
Run it from your code
The same node, called by id from any surface. Every tab pins musicgen-looper and passes the ports below. Full guide.
import { BlitClient } from "@blitflow/sdk";
const { runNode } = new BlitClient({ apiKey: process.env.BLITFLOW_TOKEN });
const { outputs } = await runNode("musicgen-looper", {
prompt: { value: "example" },
bpm: { value: 140 },
maxDuration: { value: 8 },
modelVersion: { value: "medium" },
outputFormat: { value: "wav" },
seed: { value: -1 },
});# Install once, then sign in
npm install -g blitflow
blitflow login
blitflow node musicgen-looper \
-i prompt="example" \
-i bpm=140 \
-i maxDuration=8 \
-i modelVersion="medium" \
-i outputFormat="wav" \
-i seed=-1{
"name": "runs_node",
"arguments": {
"node": "musicgen-looper",
"inputs": {
"prompt": {
"value": "example"
},
"bpm": {
"value": 140
},
"maxDuration": {
"value": 8
},
"modelVersion": {
"value": "medium"
},
"outputFormat": {
"value": "wav"
},
"seed": {
"value": -1
}
}
}
}curl https://studio.blitflow.com/api/v1/runs/node \
-H "Authorization: Bearer $BLITFLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{"node":"musicgen-looper","inputs":{"prompt":{"value":"example"},"bpm":{"value":140},"maxDuration":{"value":8},"modelVersion":{"value":"medium"},"outputFormat":{"value":"wav"},"seed":{"value":-1}}}'Schema
Inputs
| prompt* | TEXT | ||
| bpm | FLOAT | Tempo (BPM) | 140 |
| maxDuration | INT | Loop length (seconds) | 8 |
| modelVersion | TEXT | Model size medium · large | medium |
| outputFormat | TEXT | wav · mp3 | wav |
| seed | INT | -1 |
Outputs
| audio | AUDIO |