typefile
{
"fps": 1,
"max_frames": 180,
"max_new_tokens": 2048,
"prompt": "What is unusual in the video?",
"temperature": 0.2,
"top_p": 0.9,
"video": "https://replicate.delivery/pbxt/MV1tNGskZ6lDM0iDmHelOin3dAvOmsbSGQUW6KYhhwKiQMUT/bear.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_f7T**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/videollama3-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/videollama3-7b:34a1f45f7068f7121a5b47c91f2d7e06c298850767f76f96660450a0a3bd5bbe",
{
input: {
fps: 1,
max_frames: 180,
max_new_tokens: 2048,
prompt: "What is unusual in the video?",
temperature: 0.2,
top_p: 0.9,
video: "https://replicate.delivery/pbxt/MV1tNGskZ6lDM0iDmHelOin3dAvOmsbSGQUW6KYhhwKiQMUT/bear.mp4"
}
}
);
console.log(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_f7T**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/videollama3-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/videollama3-7b:34a1f45f7068f7121a5b47c91f2d7e06c298850767f76f96660450a0a3bd5bbe",
input={
"fps": 1,
"max_frames": 180,
"max_new_tokens": 2048,
"prompt": "What is unusual in the video?",
"temperature": 0.2,
"top_p": 0.9,
"video": "https://replicate.delivery/pbxt/MV1tNGskZ6lDM0iDmHelOin3dAvOmsbSGQUW6KYhhwKiQMUT/bear.mp4"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_f7T**********************************
This is your API token. Keep it to yourself.
Run lucataco/videollama3-7b 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 $'{
"version": "lucataco/videollama3-7b:34a1f45f7068f7121a5b47c91f2d7e06c298850767f76f96660450a0a3bd5bbe",
"input": {
"fps": 1,
"max_frames": 180,
"max_new_tokens": 2048,
"prompt": "What is unusual in the video?",
"temperature": 0.2,
"top_p": 0.9,
"video": "https://replicate.delivery/pbxt/MV1tNGskZ6lDM0iDmHelOin3dAvOmsbSGQUW6KYhhwKiQMUT/bear.mp4"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
The unusual aspect of the video is that it shows bears, which are typically wild animals, engaging in a human-like activity such as eating sushi at a dining table.
{
"id": "h6e9bsyzz9rme0cn0rh8r7ey1w",
"model": "lucataco/videollama3-7b",
"version": "34a1f45f7068f7121a5b47c91f2d7e06c298850767f76f96660450a0a3bd5bbe",
"input": {
"fps": 1,
"max_frames": 180,
"max_new_tokens": 2048,
"prompt": "What is unusual in the video?",
"temperature": 0.2,
"top_p": 0.9,
"video": "https://replicate.delivery/pbxt/MV1tNGskZ6lDM0iDmHelOin3dAvOmsbSGQUW6KYhhwKiQMUT/bear.mp4"
},
"logs": "",
"output": "The unusual aspect of the video is that it shows bears, which are typically wild animals, engaging in a human-like activity such as eating sushi at a dining table.",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-02-14T20:25:03.738Z",
"started_at": "2025-02-14T20:25:27.702511Z",
"completed_at": "2025-02-14T20:25:31.710589Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/h6e9bsyzz9rme0cn0rh8r7ey1w/cancel",
"get": "https://api.replicate.com/v1/predictions/h6e9bsyzz9rme0cn0rh8r7ey1w",
"web": "https://replicate.com/p/h6e9bsyzz9rme0cn0rh8r7ey1w"
},
"metrics": {
"predict_time": 4.008077748,
"total_time": 27.972589
}
}