typetext
{
"prompt": "Change the season to a snowy winter night. Snow falls past the window instead of rain, and the young woman wears a red knit scarf and wool coat instead of the raincoat. Keep the chef, the dialogue, the timing and the camera move exactly the same.",
"resolution": "720p",
"video": "https://replicate.delivery/xezq/h9DuN0rSegR7fESsHcLVOqfMrsenCxDktuoMvSGAe8vlaQ17C/tmpy30_giv4.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_8DO**********************************
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/gemini-omni-1.2-flash using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "Change the season to a snowy winter night. Snow falls past the window instead of rain, and the young woman wears a red knit scarf and wool coat instead of the raincoat. Keep the chef, the dialogue, the timing and the camera move exactly the same.",
resolution: "720p",
video: "https://replicate.delivery/xezq/h9DuN0rSegR7fESsHcLVOqfMrsenCxDktuoMvSGAe8vlaQ17C/tmpy30_giv4.mp4"
};
const output = await replicate.run("google/gemini-omni-1.2-flash", { 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_8DO**********************************
This is your API token. Keep it to yourself.
import replicate
Run google/gemini-omni-1.2-flash using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"google/gemini-omni-1.2-flash",
input={
"prompt": "Change the season to a snowy winter night. Snow falls past the window instead of rain, and the young woman wears a red knit scarf and wool coat instead of the raincoat. Keep the chef, the dialogue, the timing and the camera move exactly the same.",
"resolution": "720p",
"video": "https://replicate.delivery/xezq/h9DuN0rSegR7fESsHcLVOqfMrsenCxDktuoMvSGAe8vlaQ17C/tmpy30_giv4.mp4"
}
)
# 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_8DO**********************************
This is your API token. Keep it to yourself.
Run google/gemini-omni-1.2-flash 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": "Change the season to a snowy winter night. Snow falls past the window instead of rain, and the young woman wears a red knit scarf and wool coat instead of the raincoat. Keep the chef, the dialogue, the timing and the camera move exactly the same.",
"resolution": "720p",
"video": "https://replicate.delivery/xezq/h9DuN0rSegR7fESsHcLVOqfMrsenCxDktuoMvSGAe8vlaQ17C/tmpy30_giv4.mp4"
}
}' \
https://api.replicate.com/v1/models/google/gemini-omni-1.2-flash/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "76amj4976nrmt0d1np2scdrzvw",
"model": "google/gemini-omni-1.2-flash",
"version": "hidden",
"input": {
"prompt": "Change the season to a snowy winter night. Snow falls past the window instead of rain, and the young woman wears a red knit scarf and wool coat instead of the raincoat. Keep the chef, the dialogue, the timing and the camera move exactly the same.",
"resolution": "720p",
"video": "https://replicate.delivery/xezq/h9DuN0rSegR7fESsHcLVOqfMrsenCxDktuoMvSGAe8vlaQ17C/tmpy30_giv4.mp4"
},
"logs": "Generating video with model: gemini-omni-1.2-flash\n prompt: Change the season to a snowy winter night. Snow falls past the window instead of rain, and the young...\n task=edit, duration=None, aspect_ratio=16:9, resolution=720p, images=0, video=True\nVideo generated in 119.5s\nDownloading video...\nDownloaded video in 1.4s\nGenerated video duration: 15.04s",
"output": "https://replicate.delivery/xezq/FHvcITCTAGbbDxiWlw72flsJthAI8a3LOzq2HCRTFOswCVvLA/tmp91v9auox.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2026-11-05T21:02:27.125Z",
"started_at": "2026-11-05T21:02:27.144654Z",
"completed_at": "2026-11-05T21:04:34.222987Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/76amj4976nrmt0d1np2scdrzvw/cancel",
"get": "https://api.replicate.com/v1/predictions/76amj4976nrmt0d1np2scdrzvw",
"stream": "https://stream.replicate.com/v1/files/jbxs-ye3jlnq3lxpywi3bfruit54nay5efyym2tanxfdq4jid3ir2mwsq",
"web": "https://replicate.com/p/76amj4976nrmt0d1np2scdrzvw"
},
"metrics": {
"predict_time": 127.078333319,
"resolution_target": "720p",
"total_time": 127.097987398,
"video_output_count": 1,
"video_output_duration_seconds": 15.04
}
}