typetext
{
"prompt": "A calm acoustic folk song with gentle guitar and soft strings. Instrumental only."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_FNF**********************************
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 google/lyria-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "A calm acoustic folk song with gentle guitar and soft strings. Instrumental only."
};
const output = await replicate.run("google/lyria-3", { 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_FNF**********************************
This is your API token. Keep it to yourself.
import replicate
Run google/lyria-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"google/lyria-3",
input={
"prompt": "A calm acoustic folk song with gentle guitar and soft strings. Instrumental only."
}
)
# 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_FNF**********************************
This is your API token. Keep it to yourself.
Run google/lyria-3 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": {
"prompt": "A calm acoustic folk song with gentle guitar and soft strings. Instrumental only."
}
}' \
https://api.replicate.com/v1/models/google/lyria-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "k4h04fygsxrmy0cx9w1b9b96ar",
"model": "google/lyria-3",
"version": "hidden",
"input": {
"prompt": "A calm acoustic folk song with gentle guitar and soft strings. Instrumental only."
},
"logs": "Generating music...\nGenerated music in 10.38 seconds\nLyrics/structure:\n\nCaption: This is a calm and serene Acoustic Folk instrumental, designed to evoke a peaceful, pastoral atmosphere. The entire piece is built upon the foundation of a steel-string dreadnought acoustic guitar (like a Martin D-28) being gently fingerpicked. The guitar plays a flowing pattern of arpeggiated major chords, creating a warm and resonant harmonic bed. After a few bars, a lush string quartet (two violins, viola, cello) enters with a soft, legato counter-melody. These strings provide long, soaring, and emotionally rich phrases that swell and fall gently, adding a layer of sophisticated elegance. Supporting this, a second acoustic guitar is strummed very softly with the fleshy part of the thumb, adding a gentle rhythmic pulse and a soft percussive texture that sits quietly in the background. The cello plays a simple, warm bassline that anchors the harmony, while the violins and viola carry the main string melody. The entire mix is airy and spacious, recorded with a touch of natural room reverb to give it a dreamy, open-field feeling. The production is clean and warm, emphasizing the organic texture of the acoustic instruments.\nMosic: 4.5\nBPM: 90.0",
"output": "https://replicate.delivery/xezq/RWQronPoDfwpCiEhKgjgRNnV8ieKuwaT7zDjlodZ0U0QpEXWA/tmpwjqmskf3.mp3",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-04-02T16:24:37.839Z",
"started_at": "2026-04-02T16:24:37.860475Z",
"completed_at": "2026-04-02T16:24:48.338397Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/k4h04fygsxrmy0cx9w1b9b96ar/cancel",
"get": "https://api.replicate.com/v1/predictions/k4h04fygsxrmy0cx9w1b9b96ar",
"stream": "https://stream.replicate.com/v1/files/jbxs-j7h5ftm6y2uffo4w5hbnrisahh72ahd5nb4k66qqrszvaqrvqdsq",
"web": "https://replicate.com/p/k4h04fygsxrmy0cx9w1b9b96ar"
},
"metrics": {
"predict_time": 10.47792168,
"total_time": 10.499397604
}
}