typetext
{
"prompt": "A German standup comedian in a German bar telling a German Joke about Plätzchen with the audience laughing"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_c0N**********************************
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 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "A German standup comedian in a German bar telling a German Joke about Plätzchen with the audience laughing"
};
const output = await replicate.run("google/veo-3", { 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_c0N**********************************
This is your API token. Keep it to yourself.
import replicate
Run google/veo-3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"google/veo-3",
input={
"prompt": "A German standup comedian in a German bar telling a German Joke about Plätzchen with the audience laughing"
}
)
# 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_c0N**********************************
This is your API token. Keep it to yourself.
Run google/veo-3 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": "A German standup comedian in a German bar telling a German Joke about Plätzchen with the audience laughing"
}
}' \
https://api.replicate.com/v1/models/google/veo-3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "9s7sm373b1rme0cpywd9akng2r",
"model": "google/veo-3",
"version": "hidden",
"input": {
"prompt": "A German standup comedian in a German bar telling a German Joke about Plätzchen with the audience laughing"
},
"logs": "Using seed: 1759849263\nStarting video generation...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nDownloading video...\nDownloaded video in 0.12 seconds",
"output": "https://replicate.delivery/xezq/c7VxPa2QfQUPWqeTcitTy0g6CrlCDHV63fDL0KdJcKnftk8SB/tmpv0btfhn6.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-22T08:27:36.664Z",
"started_at": "2025-05-22T08:29:08.595313Z",
"completed_at": "2025-05-22T08:31:27.608969Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/9s7sm373b1rme0cpywd9akng2r/cancel",
"get": "https://api.replicate.com/v1/predictions/9s7sm373b1rme0cpywd9akng2r",
"stream": "https://stream.replicate.com/v1/files/bcwr-ss6ctq2thfscvtboubbq6qwbnfsvfdhndwyye4pgpp3wthe6edjq",
"web": "https://replicate.com/p/9s7sm373b1rme0cpywd9akng2r"
},
"metrics": {
"predict_time": 139.01365514,
"total_time": 230.944969
}
}