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": "Buenos días Miguel. Tu colega piensa que tu alemán es extremadamente malo. But I suppose your english isn't terrible."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_DDo**********************************
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: "Buenos días Miguel. Tu colega piensa que tu alemán es extremadamente malo. But I suppose your english isn't terrible."
}
}
);
// 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_DDo**********************************
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": "Buenos días Miguel. Tu colega piensa que tu alemán es extremadamente malo. But I suppose your english isn't terrible."
}
)
# 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_DDo**********************************
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": "Buenos días Miguel. Tu colega piensa que tu alemán es extremadamente malo. But I suppose your english isn\'t terrible."
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "2cniu2e47raahkg3xvwexa6v4i",
"model": "suno-ai/bark",
"version": "f23937d7c80b3c0f06c5a01ec55154388647292cb9398bd7d117678bc930791a",
"input": {
"prompt": "Buenos días Miguel. Tu colega piensa que tu alemán es extremadamente malo. But I suppose your english isn't terrible."
},
"logs": "0%| | 0/100 [00:00<?, ?it/s]\n 1%| | 1/100 [00:00<00:13, 7.39it/s]\n 3%|▎ | 3/100 [00:00<00:10, 9.54it/s]\n 5%|▌ | 5/100 [00:00<00:08, 11.19it/s]\n 7%|▋ | 7/100 [00:00<00:07, 11.82it/s]\n 9%|▉ | 9/100 [00:00<00:07, 11.97it/s]\n 11%|█ | 11/100 [00:00<00:07, 12.23it/s]\n 13%|█▎ | 13/100 [00:01<00:07, 12.21it/s]\n 15%|█▌ | 15/100 [00:01<00:07, 12.12it/s]\n 17%|█▋ | 17/100 [00:01<00:06, 11.96it/s]\n 19%|█▉ | 19/100 [00:01<00:06, 11.94it/s]\n 21%|██ | 21/100 [00:01<00:06, 12.24it/s]\n 23%|██▎ | 23/100 [00:01<00:06, 12.30it/s]\n 25%|██▌ | 25/100 [00:02<00:06, 12.16it/s]\n 27%|██▋ | 27/100 [00:02<00:06, 12.01it/s]\n 29%|██▉ | 29/100 [00:02<00:05, 12.17it/s]\n 31%|███ | 31/100 [00:02<00:05, 11.62it/s]\n 33%|███▎ | 33/100 [00:02<00:05, 11.79it/s]\n 35%|███▌ | 35/100 [00:02<00:05, 11.47it/s]\n 37%|███▋ | 37/100 [00:03<00:05, 11.54it/s]\n 39%|███▉ | 39/100 [00:03<00:05, 11.72it/s]\n 41%|████ | 41/100 [00:03<00:05, 11.79it/s]\n 43%|████▎ | 43/100 [00:03<00:04, 12.03it/s]\n 45%|████▌ | 45/100 [00:03<00:04, 12.20it/s]\n 47%|████▋ | 47/100 [00:03<00:04, 12.06it/s]\n 49%|████▉ | 49/100 [00:04<00:04, 12.11it/s]\n 51%|█████ | 51/100 [00:04<00:04, 12.00it/s]\n 53%|█████▎ | 53/100 [00:04<00:03, 11.83it/s]\n 55%|█████▌ | 55/100 [00:04<00:03, 11.76it/s]\n 57%|█████▋ | 57/100 [00:04<00:03, 11.69it/s]\n 59%|█████▉ | 59/100 [00:04<00:03, 11.54it/s]\n 61%|██████ | 61/100 [00:05<00:03, 11.60it/s]\n 63%|██████▎ | 63/100 [00:05<00:03, 11.34it/s]\n 65%|██████▌ | 65/100 [00:05<00:03, 11.44it/s]\n 67%|██████▋ | 67/100 [00:05<00:02, 11.51it/s]\n 69%|██████▉ | 69/100 [00:05<00:02, 11.24it/s]\n 71%|███████ | 71/100 [00:06<00:02, 11.28it/s]\n 73%|███████▎ | 73/100 [00:06<00:02, 11.16it/s]\n 75%|███████▌ | 75/100 [00:06<00:02, 10.98it/s]\n100%|██████████| 100/100 [00:06<00:00, 49.89it/s]\n100%|██████████| 100/100 [00:06<00:00, 15.15it/s]\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:19, 1.53it/s]\n 7%|▋ | 2/30 [00:01<00:18, 1.53it/s]\n 10%|█ | 3/30 [00:02<00:18, 1.48it/s]\n 13%|█▎ | 4/30 [00:02<00:18, 1.44it/s]\n 17%|█▋ | 5/30 [00:03<00:17, 1.43it/s]\n 20%|██ | 6/30 [00:04<00:17, 1.39it/s]\n 23%|██▎ | 7/30 [00:04<00:16, 1.36it/s]\n 27%|██▋ | 8/30 [00:05<00:16, 1.32it/s]\n 30%|███ | 9/30 [00:06<00:16, 1.28it/s]\n 33%|███▎ | 10/30 [00:07<00:16, 1.24it/s]\n 37%|███▋ | 11/30 [00:08<00:15, 1.21it/s]\n 40%|████ | 12/30 [00:09<00:15, 1.18it/s]\n 43%|████▎ | 13/30 [00:10<00:14, 1.16it/s]\n 47%|████▋ | 14/30 [00:11<00:13, 1.14it/s]\n 50%|█████ | 15/30 [00:11<00:13, 1.13it/s]\n 53%|█████▎ | 16/30 [00:12<00:12, 1.12it/s]\n 57%|█████▋ | 17/30 [00:13<00:11, 1.12it/s]\n 60%|██████ | 18/30 [00:14<00:10, 1.11it/s]\n 63%|██████▎ | 19/30 [00:15<00:09, 1.12it/s]\n 67%|██████▋ | 20/30 [00:16<00:08, 1.11it/s]\n 70%|███████ | 21/30 [00:17<00:08, 1.11it/s]\n 73%|███████▎ | 22/30 [00:18<00:07, 1.11it/s]\n 77%|███████▋ | 23/30 [00:19<00:06, 1.11it/s]\n 80%|████████ | 24/30 [00:20<00:05, 1.11it/s]\n 83%|████████▎ | 25/30 [00:20<00:04, 1.11it/s]\n 87%|████████▋ | 26/30 [00:21<00:03, 1.11it/s]\n 90%|█████████ | 27/30 [00:22<00:02, 1.11it/s]\n 93%|█████████▎| 28/30 [00:23<00:01, 1.11it/s]\n 97%|█████████▋| 29/30 [00:24<00:00, 1.11it/s]\n100%|██████████| 30/30 [00:25<00:00, 1.31it/s]\n100%|██████████| 30/30 [00:25<00:00, 1.20it/s]",
"output": "https://replicate.delivery/pbxt/fGI1Va9XBrXgHCNNOtnAojyZB92KjsEcNaqhKSEIMIRPKwaIA/audio.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-04-25T22:23:56.818991Z",
"started_at": "2023-04-25T22:23:56.936584Z",
"completed_at": "2023-04-25T22:24:31.356257Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/2cniu2e47raahkg3xvwexa6v4i/cancel",
"get": "https://api.replicate.com/v1/predictions/2cniu2e47raahkg3xvwexa6v4i"
},
"metrics": {
"predict_time": 34.419673,
"total_time": 34.537266
}
}