typetext
{
"backing_audio": "https://api.replicate.com/v1/files/ODE5YzhhMmEtN2I2OS00MDRhLTkxMGItOTc1YjEyNjRiZTc3",
"prompt": "Tiny Chef is making a paella and singing some delightful Spanish rap!"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Qez**********************************
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 pipeline-examples/tinychef using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
backing_audio: "https://api.replicate.com/v1/files/ODE5YzhhMmEtN2I2OS00MDRhLTkxMGItOTc1YjEyNjRiZTc3",
prompt: "Tiny Chef is making a paella and singing some delightful Spanish rap!"
};
const output = await replicate.run("pipeline-examples/tinychef", { 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_Qez**********************************
This is your API token. Keep it to yourself.
import replicate
Run pipeline-examples/tinychef using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pipeline-examples/tinychef",
input={
"backing_audio": "https://api.replicate.com/v1/files/ODE5YzhhMmEtN2I2OS00MDRhLTkxMGItOTc1YjEyNjRiZTc3",
"prompt": "Tiny Chef is making a paella and singing some delightful Spanish rap!"
}
)
# 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_Qez**********************************
This is your API token. Keep it to yourself.
Run pipeline-examples/tinychef 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": {
"backing_audio": "https://api.replicate.com/v1/files/ODE5YzhhMmEtN2I2OS00MDRhLTkxMGItOTc1YjEyNjRiZTc3",
"prompt": "Tiny Chef is making a paella and singing some delightful Spanish rap!"
}
}' \
https://api.replicate.com/v1/models/pipeline-examples/tinychef/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "35w0cg2er9rm80cr72zs2kqps4",
"model": "pipeline-examples/tinychef",
"version": "hidden",
"input": {
"backing_audio": "https://api.replicate.com/v1/files/ODE5YzhhMmEtN2I2OS00MDRhLTkxMGItOTc1YjEyNjRiZTc3",
"prompt": "Tiny Chef is making a paella and singing some delightful Spanish rap!"
},
"logs": "MoviePy - Writing audio in tinychef_backing_audio.mp3\n\nchunk: 0%| | 0/280 [00:00<?, ?it/s, now=None]\nchunk: 63%|██████▎ | 177/280 [00:00<00:00, 1684.83it/s, now=None]\n \nMoviePy - Done.\nMoviePy - Building video talking_video.mp4.\nMoviePy - Writing audio in talking_videoTEMP_MPY_wvf_snd.mp3\n\nchunk: 0%| | 0/178 [00:00<?, ?it/s, now=None]\nchunk: 78%|███████▊ | 139/178 [00:00<00:00, 1359.87it/s, now=None]\n \nMoviePy - Done.\nMoviePy - Writing video talking_video.mp4\n\n\nframe_index: 0%| | 0/200 [00:00<?, ?it/s, now=None]\nframe_index: 18%|█▊ | 36/200 [00:00<00:00, 355.72it/s, now=None]\nframe_index: 36%|███▌ | 72/200 [00:00<00:00, 233.54it/s, now=None]\nframe_index: 49%|████▉ | 98/200 [00:00<00:00, 132.98it/s, now=None]\nframe_index: 58%|█████▊ | 116/200 [00:00<00:00, 113.15it/s, now=None]\nframe_index: 65%|██████▌ | 130/200 [00:01<00:00, 105.79it/s, now=None]\nframe_index: 71%|███████ | 142/200 [00:01<00:00, 103.00it/s, now=None]\nframe_index: 77%|███████▋ | 154/200 [00:01<00:00, 100.80it/s, now=None]\nframe_index: 88%|████████▊ | 175/200 [00:01<00:00, 94.83it/s, now=None]\nframe_index: 92%|█████████▎| 185/200 [00:01<00:00, 94.42it/s, now=None]\nframe_index: 98%|█████████▊| 197/200 [00:01<00:00, 96.81it/s, now=None]",
"output": "https://replicate.delivery/xezq/VVJveC0ShSWwek8gytlYqKnNGuS4qQWMKfV8OXZyp67aydHqA/talking_video.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-23T19:25:18.402Z",
"started_at": "2025-07-23T19:25:26.905189Z",
"completed_at": "2025-07-23T19:47:25.989289Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/35w0cg2er9rm80cr72zs2kqps4/cancel",
"children": "https://api.replicate.com/v1/predictions/35w0cg2er9rm80cr72zs2kqps4/children",
"get": "https://api.replicate.com/v1/predictions/35w0cg2er9rm80cr72zs2kqps4",
"root": "https://api.replicate.com/v1/predictions/35w0cg2er9rm80cr72zs2kqps4",
"stream": "https://stream.replicate.com/v1/files/bcwr-tj24ppk42rsd6pxsu6umdtevmq4cqntpjly2xcccanelmx7yzw2a",
"web": "https://replicate.com/p/35w0cg2er9rm80cr72zs2kqps4"
},
"metrics": {
"predict_time": 1319.084100763,
"total_time": 1327.587289
}
}