typetext
{
"aspect_ratio": "3:4",
"prompt": "ASMR close-up shot of a strawberry made of glass being cut with a knife",
"seed": 0
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_L3z**********************************
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 lucataco/veo-3-fast-vertical using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "3:4",
prompt: "ASMR close-up shot of a strawberry made of glass being cut with a knife",
seed: 0
};
const output = await replicate.run("lucataco/veo-3-fast-vertical", { 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_L3z**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/veo-3-fast-vertical using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/veo-3-fast-vertical",
input={
"aspect_ratio": "3:4",
"prompt": "ASMR close-up shot of a strawberry made of glass being cut with a knife",
"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_L3z**********************************
This is your API token. Keep it to yourself.
Run lucataco/veo-3-fast-vertical 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": "3:4",
"prompt": "ASMR close-up shot of a strawberry made of glass being cut with a knife",
"seed": 0
}
}' \
https://api.replicate.com/v1/models/lucataco/veo-3-fast-vertical/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "2vx0h142axrmc0cr3tbr2zkrvr",
"model": "lucataco/veo-3-fast-vertical",
"version": "hidden",
"input": {
"aspect_ratio": "3:4",
"prompt": "ASMR close-up shot of a strawberry made of glass being cut with a knife",
"seed": 0
},
"logs": "Using Seed: 22835",
"output": "https://replicate.delivery/xezq/Kcrfskp8cZTkYCgGCX86BXeoPrz6f9anzqE2iHIny3cA8GEqA/tmpirs3ccdb.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-18T17:31:42.551Z",
"started_at": "2025-07-18T17:31:43.07618Z",
"completed_at": "2025-07-18T17:33:52.3389Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/2vx0h142axrmc0cr3tbr2zkrvr/cancel",
"children": "https://api.replicate.com/v1/predictions/2vx0h142axrmc0cr3tbr2zkrvr/children",
"get": "https://api.replicate.com/v1/predictions/2vx0h142axrmc0cr3tbr2zkrvr",
"root": "https://api.replicate.com/v1/predictions/2vx0h142axrmc0cr3tbr2zkrvr",
"stream": "https://stream.replicate.com/v1/files/bcwr-aboxsunuedyidvklrywv7zph6dlfsm6mdrw3h6sl3rwpejxmwxxq",
"web": "https://replicate.com/p/2vx0h142axrmc0cr3tbr2zkrvr"
},
"metrics": {
"predict_time": 129.262720813,
"total_time": 129.7879
}
}