typetext
{
"prompt": "an alien hiding is hiding in my pond"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_I37**********************************
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 veo-3-apps/veo-3-home-footage using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "an alien hiding is hiding in my pond"
};
const output = await replicate.run("veo-3-apps/veo-3-home-footage", { 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_I37**********************************
This is your API token. Keep it to yourself.
import replicate
Run veo-3-apps/veo-3-home-footage using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"veo-3-apps/veo-3-home-footage",
input={
"prompt": "an alien hiding is hiding in my pond"
}
)
# 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_I37**********************************
This is your API token. Keep it to yourself.
Run veo-3-apps/veo-3-home-footage 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": "an alien hiding is hiding in my pond"
}
}' \
https://api.replicate.com/v1/models/veo-3-apps/veo-3-home-footage/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "whfmkk71m9rme0cqynbt22f7rc",
"model": "veo-3-apps/veo-3-home-footage",
"version": "hidden",
"input": {
"prompt": "an alien hiding is hiding in my pond"
},
"logs": "",
"output": "https://replicate.delivery/xezq/xNeSyb0CUeoLEkbOiLGtwfDYP0gDWfVdbND8Ellvv6mxfT7nC/tmpmarambje.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-10T17:17:46.786Z",
"started_at": "2025-07-10T17:17:47.303872Z",
"completed_at": "2025-07-10T17:18:52.614834Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/whfmkk71m9rme0cqynbt22f7rc/cancel",
"children": "https://api.replicate.com/v1/predictions/whfmkk71m9rme0cqynbt22f7rc/children",
"get": "https://api.replicate.com/v1/predictions/whfmkk71m9rme0cqynbt22f7rc",
"root": "https://api.replicate.com/v1/predictions/whfmkk71m9rme0cqynbt22f7rc",
"stream": "https://stream.replicate.com/v1/files/bcwr-ju53r762thcxr3lifkpiswt65sk536unmqagn4xtj4bfswitwxna",
"web": "https://replicate.com/p/whfmkk71m9rme0cqynbt22f7rc"
},
"metrics": {
"predict_time": 65.310961405,
"total_time": 65.828834
}
}