typetext
{
"aspect_ratio": "9:16",
"prompt": "A selfie video of a UGC content creator exploring a bustling Tokyo street market. She’s wearing a vintage denim jacket and has excitement in her eyes. The afternoon sun creates beautiful shadows between the vendor stalls. She’s sampling different street foods while talking, occasionally looking into the camera before turning to point at interesting stalls. The video is filmed on an iPhone camera. She speaks in a valley girl accent and says: “Okay, you have to try this place when you visit Tokyo. The takoyaki here is absolutely incredible.” She ends with a thumbs up.",
"seed": 0
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_SyU**********************************
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-portrait using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "9:16",
prompt: "A selfie video of a UGC content creator exploring a bustling Tokyo street market. She’s wearing a vintage denim jacket and has excitement in her eyes. The afternoon sun creates beautiful shadows between the vendor stalls. She’s sampling different street foods while talking, occasionally looking into the camera before turning to point at interesting stalls. The video is filmed on an iPhone camera. She speaks in a valley girl accent and says: “Okay, you have to try this place when you visit Tokyo. The takoyaki here is absolutely incredible.” She ends with a thumbs up.",
seed: 0
};
const output = await replicate.run("veo-3-apps/veo-3-portrait", { 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_SyU**********************************
This is your API token. Keep it to yourself.
import replicate
Run veo-3-apps/veo-3-portrait 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-portrait",
input={
"aspect_ratio": "9:16",
"prompt": "A selfie video of a UGC content creator exploring a bustling Tokyo street market. She’s wearing a vintage denim jacket and has excitement in her eyes. The afternoon sun creates beautiful shadows between the vendor stalls. She’s sampling different street foods while talking, occasionally looking into the camera before turning to point at interesting stalls. The video is filmed on an iPhone camera. She speaks in a valley girl accent and says: “Okay, you have to try this place when you visit Tokyo. The takoyaki here is absolutely incredible.” She ends with a thumbs up.",
"seed": 0
}
)
# 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_SyU**********************************
This is your API token. Keep it to yourself.
Run veo-3-apps/veo-3-portrait 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": "9:16",
"prompt": "A selfie video of a UGC content creator exploring a bustling Tokyo street market. She’s wearing a vintage denim jacket and has excitement in her eyes. The afternoon sun creates beautiful shadows between the vendor stalls. She’s sampling different street foods while talking, occasionally looking into the camera before turning to point at interesting stalls. The video is filmed on an iPhone camera. She speaks in a valley girl accent and says: “Okay, you have to try this place when you visit Tokyo. The takoyaki here is absolutely incredible.” She ends with a thumbs up.",
"seed": 0
}
}' \
https://api.replicate.com/v1/models/veo-3-apps/veo-3-portrait/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "hzk64s8kkdrm80crdk5rxfffhw",
"model": "veo-3-apps/veo-3-portrait",
"version": "hidden",
"input": {
"aspect_ratio": "9:16",
"prompt": "A selfie video of a UGC content creator exploring a bustling Tokyo street market. She’s wearing a vintage denim jacket and has excitement in her eyes. The afternoon sun creates beautiful shadows between the vendor stalls. She’s sampling different street foods while talking, occasionally looking into the camera before turning to point at interesting stalls. The video is filmed on an iPhone camera. She speaks in a valley girl accent and says: “Okay, you have to try this place when you visit Tokyo. The takoyaki here is absolutely incredible.” She ends with a thumbs up.",
"seed": 0
},
"logs": "Using Seed: 50691",
"output": "https://replicate.delivery/xezq/rRayWu7B8s6nOpaw1NWCtn6YmtIBi9m1aAMUz4oww2dp8wRF/tmpbsag_h9f.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-02T21:58:24.923Z",
"started_at": "2025-08-02T21:58:33.089196Z",
"completed_at": "2025-08-02T22:01:10.075171Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/hzk64s8kkdrm80crdk5rxfffhw/cancel",
"children": "https://api.replicate.com/v1/predictions/hzk64s8kkdrm80crdk5rxfffhw/children",
"get": "https://api.replicate.com/v1/predictions/hzk64s8kkdrm80crdk5rxfffhw",
"root": "https://api.replicate.com/v1/predictions/hzk64s8kkdrm80crdk5rxfffhw",
"stream": "https://stream.replicate.com/v1/files/bcwr-cg35vohgypkzghn6wjdzf3oxwwsttc2g6xwq6gkvy3ir4wewjctq",
"web": "https://replicate.com/p/hzk64s8kkdrm80crdk5rxfffhw"
},
"metrics": {
"predict_time": 156.985975043,
"total_time": 165.152171
}
}