typetext
{
"lyrics": "[Intro]\n(Fingerpicked guitar)\n\n[Verse]\nOld screen door don't close right anymore\nCreaks like my knees on a cold morning\nCoffee's on the stove, dog's on the floor\nAnother day without warning\n\n[Verse]\nUsed to fish that creek behind the mill\nWater ran so clear you'd see the bottom\nNow the mill's a parking lot and still\nI drive past like I forgot 'em\n\n[Chorus]\nBut time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Bridge]\n(Harmonica solo)\nMy daughter sent a photograph last week\nHer boy's got my father's eyes\nFunny how the things we couldn't keep\nShow up in the sweetest disguise\n\n[Chorus]\nNo, time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Outro]\nLearn to love the bend...\n(Guitar fades to crickets)",
"prompt": "Acoustic folk-blues, raw and intimate, front porch recording feel, fingerpicked acoustic guitar, harmonica, upright bass, warm lo-fi production, slow tempo, male vocals with gravelly texture"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Ty4**********************************
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 minimax/music-2.5 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
lyrics: "[Intro]\n(Fingerpicked guitar)\n\n[Verse]\nOld screen door don't close right anymore\nCreaks like my knees on a cold morning\nCoffee's on the stove, dog's on the floor\nAnother day without warning\n\n[Verse]\nUsed to fish that creek behind the mill\nWater ran so clear you'd see the bottom\nNow the mill's a parking lot and still\nI drive past like I forgot 'em\n\n[Chorus]\nBut time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Bridge]\n(Harmonica solo)\nMy daughter sent a photograph last week\nHer boy's got my father's eyes\nFunny how the things we couldn't keep\nShow up in the sweetest disguise\n\n[Chorus]\nNo, time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Outro]\nLearn to love the bend...\n(Guitar fades to crickets)",
prompt: "Acoustic folk-blues, raw and intimate, front porch recording feel, fingerpicked acoustic guitar, harmonica, upright bass, warm lo-fi production, slow tempo, male vocals with gravelly texture"
};
const output = await replicate.run("minimax/music-2.5", { input });
// 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_Ty4**********************************
This is your API token. Keep it to yourself.
import replicate
Run minimax/music-2.5 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"minimax/music-2.5",
input={
"lyrics": "[Intro]\n(Fingerpicked guitar)\n\n[Verse]\nOld screen door don't close right anymore\nCreaks like my knees on a cold morning\nCoffee's on the stove, dog's on the floor\nAnother day without warning\n\n[Verse]\nUsed to fish that creek behind the mill\nWater ran so clear you'd see the bottom\nNow the mill's a parking lot and still\nI drive past like I forgot 'em\n\n[Chorus]\nBut time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Bridge]\n(Harmonica solo)\nMy daughter sent a photograph last week\nHer boy's got my father's eyes\nFunny how the things we couldn't keep\nShow up in the sweetest disguise\n\n[Chorus]\nNo, time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Outro]\nLearn to love the bend...\n(Guitar fades to crickets)",
"prompt": "Acoustic folk-blues, raw and intimate, front porch recording feel, fingerpicked acoustic guitar, harmonica, upright bass, warm lo-fi production, slow tempo, male vocals with gravelly texture"
}
)
# 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_Ty4**********************************
This is your API token. Keep it to yourself.
Run minimax/music-2.5 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": {
"lyrics": "[Intro]\\n(Fingerpicked guitar)\\n\\n[Verse]\\nOld screen door don\'t close right anymore\\nCreaks like my knees on a cold morning\\nCoffee\'s on the stove, dog\'s on the floor\\nAnother day without warning\\n\\n[Verse]\\nUsed to fish that creek behind the mill\\nWater ran so clear you\'d see the bottom\\nNow the mill\'s a parking lot and still\\nI drive past like I forgot \'em\\n\\n[Chorus]\\nBut time don\'t ask permission\\nAnd rivers don\'t run backwards, friend\\nYou just hold what\'s left\\nAnd learn to love the bend\\n\\n[Bridge]\\n(Harmonica solo)\\nMy daughter sent a photograph last week\\nHer boy\'s got my father\'s eyes\\nFunny how the things we couldn\'t keep\\nShow up in the sweetest disguise\\n\\n[Chorus]\\nNo, time don\'t ask permission\\nAnd rivers don\'t run backwards, friend\\nYou just hold what\'s left\\nAnd learn to love the bend\\n\\n[Outro]\\nLearn to love the bend...\\n(Guitar fades to crickets)",
"prompt": "Acoustic folk-blues, raw and intimate, front porch recording feel, fingerpicked acoustic guitar, harmonica, upright bass, warm lo-fi production, slow tempo, male vocals with gravelly texture"
}
}' \
https://api.replicate.com/v1/models/minimax/music-2.5/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "0jex2h2da1rmw0cwpp2sdghwv0",
"model": "minimax/music-2.5",
"version": "hidden",
"input": {
"lyrics": "[Intro]\n(Fingerpicked guitar)\n\n[Verse]\nOld screen door don't close right anymore\nCreaks like my knees on a cold morning\nCoffee's on the stove, dog's on the floor\nAnother day without warning\n\n[Verse]\nUsed to fish that creek behind the mill\nWater ran so clear you'd see the bottom\nNow the mill's a parking lot and still\nI drive past like I forgot 'em\n\n[Chorus]\nBut time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Bridge]\n(Harmonica solo)\nMy daughter sent a photograph last week\nHer boy's got my father's eyes\nFunny how the things we couldn't keep\nShow up in the sweetest disguise\n\n[Chorus]\nNo, time don't ask permission\nAnd rivers don't run backwards, friend\nYou just hold what's left\nAnd learn to love the bend\n\n[Outro]\nLearn to love the bend...\n(Guitar fades to crickets)",
"prompt": "Acoustic folk-blues, raw and intimate, front porch recording feel, fingerpicked acoustic guitar, harmonica, upright bass, warm lo-fi production, slow tempo, male vocals with gravelly texture"
},
"logs": "Warning: Moderation check failed: Error code: 401 - {'error': {'message': 'The OpenAI account associated with this API key has been deactivated. If you are the developer for this OpenAI app, please check your email for more information. If you are seeing this error while using another app or site, please reach out to them for more help.', 'type': 'invalid_request_error', 'code': 'account_deactivated', 'param': None}, 'status': 401}\nWarning: Moderation check failed: Error code: 401 - {'error': {'message': 'The OpenAI account associated with this API key has been deactivated. If you are the developer for this OpenAI app, please check your email for more information. If you are seeing this error while using another app or site, please reach out to them for more help.', 'type': 'invalid_request_error', 'code': 'account_deactivated', 'param': None}, 'status': 401}\nGenerating music (music-2.5)...\nGenerated music in 73.87sec",
"output": "https://replicate.delivery/xezq/q2buDdf3Ki27KyUUP2EKMlqwGxiS2RlnvQR8ENL1AQN2ePNWA/tmpxxmj9csu.mp3",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-03-03T21:05:38.128Z",
"started_at": "2026-03-03T21:05:38.14604Z",
"completed_at": "2026-03-03T21:06:52.555043Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/0jex2h2da1rmw0cwpp2sdghwv0/cancel",
"get": "https://api.replicate.com/v1/predictions/0jex2h2da1rmw0cwpp2sdghwv0",
"stream": "https://stream.replicate.com/v1/files/jbxs-63vwarvptd3re2bgizruw5fzmbtkmxszg555tau6u3cht3d2nmfq",
"web": "https://replicate.com/p/0jex2h2da1rmw0cwpp2sdghwv0"
},
"metrics": {
"predict_time": 74.409003723,
"total_time": 74.427043816
}
}