defaultHello, my name is Suno. And, uh — and I like pizza. [laughs] But I also have other interests such as playing tic tac toe.
typetext
{
"prompt": "I have a silky smooth voice, and today I will tell you about the exercise regimen of the common sloth."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_GU7**********************************
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 suno-ai/bark using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"suno-ai/bark:f23937d7c80b3c0f06c5a01ec55154388647292cb9398bd7d117678bc930791a",
{
input: {
prompt: "I have a silky smooth voice, and today I will tell you about the exercise regimen of the common sloth."
}
}
);
// 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_GU7**********************************
This is your API token. Keep it to yourself.
import replicate
Run suno-ai/bark using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"suno-ai/bark:f23937d7c80b3c0f06c5a01ec55154388647292cb9398bd7d117678bc930791a",
input={
"prompt": "I have a silky smooth voice, and today I will tell you about the exercise regimen of the common sloth."
}
)
# 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_GU7**********************************
This is your API token. Keep it to yourself.
Run suno-ai/bark 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": "suno-ai/bark:f23937d7c80b3c0f06c5a01ec55154388647292cb9398bd7d117678bc930791a",
"input": {
"prompt": "I have a silky smooth voice, and today I will tell you about the exercise regimen of the common sloth."
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "34xjn2gre5fqphy7d473u5q3ji",
"model": "suno-ai/bark",
"version": "f23937d7c80b3c0f06c5a01ec55154388647292cb9398bd7d117678bc930791a",
"input": {
"prompt": "I have a silky smooth voice, and today I will tell you about the exercise regimen of the common sloth."
},
"logs": "0%| | 0/100 [00:00<?, ?it/s]\n 1%| | 1/100 [00:00<00:13, 7.51it/s]\n 3%|▎ | 3/100 [00:00<00:09, 10.01it/s]\n 5%|▌ | 5/100 [00:00<00:08, 10.94it/s]\n 7%|▋ | 7/100 [00:00<00:08, 11.26it/s]\n 9%|▉ | 9/100 [00:00<00:08, 11.22it/s]\n 11%|█ | 11/100 [00:00<00:07, 11.33it/s]\n 13%|█▎ | 13/100 [00:01<00:07, 11.22it/s]\n 15%|█▌ | 15/100 [00:01<00:07, 11.46it/s]\n 17%|█▋ | 17/100 [00:01<00:07, 11.70it/s]\n 19%|█▉ | 19/100 [00:01<00:06, 11.73it/s]\n 21%|██ | 21/100 [00:01<00:06, 11.98it/s]\n 23%|██▎ | 23/100 [00:01<00:06, 12.14it/s]\n 25%|██▌ | 25/100 [00:02<00:06, 12.04it/s]\n 27%|██▋ | 27/100 [00:02<00:06, 12.02it/s]\n 29%|██▉ | 29/100 [00:02<00:05, 11.97it/s]\n 31%|███ | 31/100 [00:02<00:05, 11.79it/s]\n 33%|███▎ | 33/100 [00:02<00:05, 11.94it/s]\n 35%|███▌ | 35/100 [00:03<00:05, 11.94it/s]\n 37%|███▋ | 37/100 [00:03<00:05, 11.33it/s]\n 39%|███▉ | 39/100 [00:03<00:05, 11.29it/s]\n 41%|████ | 41/100 [00:03<00:05, 11.38it/s]\n 43%|████▎ | 43/100 [00:03<00:04, 11.58it/s]\n 45%|████▌ | 45/100 [00:03<00:04, 11.69it/s]\n 47%|████▋ | 47/100 [00:04<00:04, 11.73it/s]\n100%|██████████| 100/100 [00:04<00:00, 24.42it/s]\n 0%| | 0/19 [00:00<?, ?it/s]\n 5%|▌ | 1/19 [00:00<00:11, 1.50it/s]\n 11%|█ | 2/19 [00:01<00:11, 1.50it/s]\n 16%|█▌ | 3/19 [00:02<00:10, 1.47it/s]\n 21%|██ | 4/19 [00:02<00:10, 1.46it/s]\n 26%|██▋ | 5/19 [00:03<00:09, 1.43it/s]\n 32%|███▏ | 6/19 [00:04<00:09, 1.41it/s]\n 37%|███▋ | 7/19 [00:04<00:08, 1.39it/s]\n 42%|████▏ | 8/19 [00:05<00:08, 1.34it/s]\n 47%|████▋ | 9/19 [00:06<00:07, 1.30it/s]\n 53%|█████▎ | 10/19 [00:07<00:07, 1.21it/s]\n 58%|█████▊ | 11/19 [00:08<00:06, 1.19it/s]\n 63%|██████▎ | 12/19 [00:09<00:05, 1.18it/s]\n 68%|██████▊ | 13/19 [00:10<00:05, 1.16it/s]\n 74%|███████▎ | 14/19 [00:10<00:04, 1.15it/s]\n 79%|███████▉ | 15/19 [00:11<00:03, 1.16it/s]\n 84%|████████▍ | 16/19 [00:12<00:02, 1.15it/s]\n 89%|████████▉ | 17/19 [00:13<00:01, 1.14it/s]\n 95%|█████████▍| 18/19 [00:14<00:00, 1.13it/s]\n100%|██████████| 19/19 [00:14<00:00, 1.48it/s]\n100%|██████████| 19/19 [00:14<00:00, 1.29it/s]",
"output": "https://replicate.delivery/pbxt/QbTgYZl4Oe17GaAQeKyc0UFUbpA4Zv4wWjKDeHwrTatH1ArhA/audio.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-04-25T22:30:38.662363Z",
"started_at": "2023-04-25T22:30:38.789649Z",
"completed_at": "2023-04-25T22:31:00.331179Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/34xjn2gre5fqphy7d473u5q3ji/cancel",
"get": "https://api.replicate.com/v1/predictions/34xjn2gre5fqphy7d473u5q3ji"
},
"metrics": {
"predict_time": 21.54153,
"total_time": 21.668816
}
}