typetext
{
"aspect_ratio": "16:9",
"image": "https://replicate.delivery/xezq/IlV5GMzis46WMBfIPABq8REznOx8fUlyXHBiKS9DwFzJPbXVA/out-0.webp",
"prompt": "dog talks about their day in a scottish accent",
"resolution": "720p"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Jzq**********************************
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/veo-3-fast using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "16:9",
image: "https://replicate.delivery/xezq/IlV5GMzis46WMBfIPABq8REznOx8fUlyXHBiKS9DwFzJPbXVA/out-0.webp",
prompt: "dog talks about their day in a scottish accent",
resolution: "720p"
};
const output = await replicate.run("google/veo-3-fast", { 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_Jzq**********************************
This is your API token. Keep it to yourself.
import replicate
Run google/veo-3-fast using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"google/veo-3-fast",
input={
"aspect_ratio": "16:9",
"image": "https://replicate.delivery/xezq/IlV5GMzis46WMBfIPABq8REznOx8fUlyXHBiKS9DwFzJPbXVA/out-0.webp",
"prompt": "dog talks about their day in a scottish accent",
"resolution": "720p"
}
)
# 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_Jzq**********************************
This is your API token. Keep it to yourself.
Run google/veo-3-fast 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": {
"aspect_ratio": "16:9",
"image": "https://replicate.delivery/xezq/IlV5GMzis46WMBfIPABq8REznOx8fUlyXHBiKS9DwFzJPbXVA/out-0.webp",
"prompt": "dog talks about their day in a scottish accent",
"resolution": "720p"
}
}' \
https://api.replicate.com/v1/models/google/veo-3-fast/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "fnth8fwt9drmc0csdj3rev13b4",
"model": "google/veo-3-fast",
"version": "hidden",
"input": {
"aspect_ratio": "16:9",
"image": "https://replicate.delivery/xezq/IlV5GMzis46WMBfIPABq8REznOx8fUlyXHBiKS9DwFzJPbXVA/out-0.webp",
"prompt": "dog talks about their day in a scottish accent",
"resolution": "720p"
},
"logs": "Using seed: 596121154\nStarting video generation...\nStill generating...\nGenerated video in 50.91 seconds\nDownloading video...\nDownloaded video in 0.29 seconds",
"output": "https://replicate.delivery/xezq/a6d4n4VtO1qff0ojKuvr2ztnLVTPyzUMMHuX13EA0m1mQbXVA/tmpsxhp79dh.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-21T13:47:30.251Z",
"started_at": "2025-09-21T13:47:30.286238Z",
"completed_at": "2025-09-21T13:48:22.651267Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/fnth8fwt9drmc0csdj3rev13b4/cancel",
"get": "https://api.replicate.com/v1/predictions/fnth8fwt9drmc0csdj3rev13b4",
"stream": "https://stream.replicate.com/v1/files/bcwr-4vymvjzk6nzst73e3c23uhlb4yntr3komdk4hxadzi7pjylygscq",
"web": "https://replicate.com/p/fnth8fwt9drmc0csdj3rev13b4"
},
"metrics": {
"predict_time": 52.365029681,
"total_time": 52.400267
}
}