typetext
{
"genre": "folk",
"mood": "melancholic",
"tempo": "slow",
"theme": "traveling roads"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Xhk**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run superhighfives/song-exploder using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
genre: "folk",
mood: "melancholic",
tempo: "slow",
theme: "traveling roads"
};
const output = await replicate.run("superhighfives/song-exploder", { input });
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=r8_Xhk**********************************
This is your API token. Keep it to yourself.
import replicate
Run superhighfives/song-exploder using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"superhighfives/song-exploder",
input={
"genre": "folk",
"mood": "melancholic",
"tempo": "slow",
"theme": "traveling roads"
}
)
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=r8_Xhk**********************************
This is your API token. Keep it to yourself.
Run superhighfives/song-exploder 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 $'{
"input": {
"genre": "folk",
"mood": "melancholic",
"tempo": "slow",
"theme": "traveling roads"
}
}' \
https://api.replicate.com/v1/models/superhighfives/song-exploder/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Object output with 6 properties
{
"id": "724pqsmemdrma0cs80ba594nbm",
"model": "superhighfives/song-exploder",
"version": "hidden",
"input": {
"genre": "folk",
"mood": "melancholic",
"tempo": "slow",
"theme": "traveling roads"
},
"logs": "/app/.venv/lib/python3.13/site-packages/coglet/scope.py:36: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning.\n warnings.warn(",
"output": {
"bass_stem": "https://replicate.delivery/xezq/XJYu8L8eMzSnGqou4Kjb5Zj7pLcCezbKmnEhZUBBe4mIdKpqA/bass_stem.wav",
"drum_stem": "https://replicate.delivery/xezq/F8KbXjD9Hhr4NtM1doaAlLt0FHCTyOQcOIetSGOSz4fkOlUVA/drums_stem.wav",
"metadata": "https://replicate.delivery/xezq/ksosKcbiU0pbI5SCTiMM8of3xpLtszXeyItUFgkxg08lOlUVA/song_metadata.txt",
"original_song": "https://replicate.delivery/xezq/Lznl9qi2eDxSWSr5hXgRhe1fenjGcfgOaUfhUeeaT4r0jOlUVA/tmpx30umnbq.wav",
"other_stem": "https://replicate.delivery/xezq/mypXFhZ5z57KH5D2QSxmHIHV8ayq5Gg4W5JSvXdZrVLpTJVF/other_stem.wav",
"vocal_stem": "https://replicate.delivery/xezq/XjPNXgFMEKrGFVTFOEMguGEcIG7YmlpjVaBPCT6TuQFpTJVF/vocal_stem.wav"
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-12T22:40:44.195Z",
"started_at": "2025-09-12T22:40:44.663151Z",
"completed_at": "2025-09-12T22:41:41.131632Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/724pqsmemdrma0cs80ba594nbm/cancel",
"children": "https://api.replicate.com/v1/predictions/724pqsmemdrma0cs80ba594nbm/children",
"get": "https://api.replicate.com/v1/predictions/724pqsmemdrma0cs80ba594nbm",
"root": "https://api.replicate.com/v1/predictions/724pqsmemdrma0cs80ba594nbm",
"web": "https://replicate.com/p/724pqsmemdrma0cs80ba594nbm"
},
"metrics": {
"predict_time": 56.468481543,
"total_time": 56.936632
}
}