typetext
{
"aspect_ratio": "9:16",
"prompt": "A handheld selfie-style shot, from the point-of-view of a gorilla in a lush jungle. A large silverback gorilla holds the camera at arm’s length. His long, powerful arm is clearly visible in the frame, and his face is perfectly framed. The gorilla says: “I’m just testing out this actually works and I’m going to post it on TikTok later, Essentially it felt cute might delete it later” (lips moving like he’s saying it)",
"seed": 0
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OFv**********************************
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-fast-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 handheld selfie-style shot, from the point-of-view of a gorilla in a lush jungle. A large silverback gorilla holds the camera at arm’s length. His long, powerful arm is clearly visible in the frame, and his face is perfectly framed. The gorilla says: “I’m just testing out this actually works and I’m going to post it on TikTok later, Essentially it felt cute might delete it later” (lips moving like he’s saying it)",
seed: 0
};
const output = await replicate.run("veo-3-apps/veo-3-fast-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_OFv**********************************
This is your API token. Keep it to yourself.
import replicate
Run veo-3-apps/veo-3-fast-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-fast-portrait",
input={
"aspect_ratio": "9:16",
"prompt": "A handheld selfie-style shot, from the point-of-view of a gorilla in a lush jungle. A large silverback gorilla holds the camera at arm’s length. His long, powerful arm is clearly visible in the frame, and his face is perfectly framed. The gorilla says: “I’m just testing out this actually works and I’m going to post it on TikTok later, Essentially it felt cute might delete it later” (lips moving like he’s saying it)",
"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_OFv**********************************
This is your API token. Keep it to yourself.
Run veo-3-apps/veo-3-fast-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 handheld selfie-style shot, from the point-of-view of a gorilla in a lush jungle. A large silverback gorilla holds the camera at arm’s length. His long, powerful arm is clearly visible in the frame, and his face is perfectly framed. The gorilla says: “I’m just testing out this actually works and I’m going to post it on TikTok later, Essentially it felt cute might delete it later” (lips moving like he’s saying it)",
"seed": 0
}
}' \
https://api.replicate.com/v1/models/veo-3-apps/veo-3-fast-portrait/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "aq33c11d9nrm80cr5q9abyp250",
"model": "veo-3-apps/veo-3-fast-portrait",
"version": "hidden",
"input": {
"aspect_ratio": "9:16",
"prompt": "A handheld selfie-style shot, from the point-of-view of a gorilla in a lush jungle. A large silverback gorilla holds the camera at arm’s length. His long, powerful arm is clearly visible in the frame, and his face is perfectly framed. The gorilla says: “I’m just testing out this actually works and I’m going to post it on TikTok later, Essentially it felt cute might delete it later” (lips moving like he’s saying it)",
"seed": 0
},
"logs": "Using Seed: 35084",
"output": "https://replicate.delivery/xezq/YyeaFjycCq09ESEorciowRN82y0penFYNkrk8u2X2Vvj2BDVA/tmp_c_5x5qy.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-21T16:30:05.645Z",
"started_at": "2025-07-21T16:30:14.311246Z",
"completed_at": "2025-07-21T16:32:35.211984Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/aq33c11d9nrm80cr5q9abyp250/cancel",
"children": "https://api.replicate.com/v1/predictions/aq33c11d9nrm80cr5q9abyp250/children",
"get": "https://api.replicate.com/v1/predictions/aq33c11d9nrm80cr5q9abyp250",
"root": "https://api.replicate.com/v1/predictions/aq33c11d9nrm80cr5q9abyp250",
"stream": "https://stream.replicate.com/v1/files/bcwr-akimsdz4ajv7hxvxzy5qtjzsaslulebgonlfgmxl4szdunxa6sua",
"web": "https://replicate.com/p/aq33c11d9nrm80cr5q9abyp250"
},
"metrics": {
"predict_time": 140.900737548,
"total_time": 149.566984
}
}