typetext
{
"aspect_ratio": "16:9",
"duration": 15,
"prompt": "One continuous handheld shot inside a tiny late-night ramen shop with steam rising from the counter. The old chef with a white headband slides a bowl to the young woman in a yellow raincoat and says, 'Last bowl of the night. You look like you needed it.' She laughs and replies, 'You have no idea. I missed the last train.' The chef leans on the counter and grins: 'Then you're in no hurry. Eat slowly.' Rain patters on the window, a radio plays soft jazz in the background, broth simmers. Warm tungsten light, shallow depth of field.",
"reference_images": [],
"resolution": "720p"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_RtE**********************************
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 = {
aspect_ratio: "16:9",
duration: 15,
prompt: "One continuous handheld shot inside a tiny late-night ramen shop with steam rising from the counter. The old chef with a white headband slides a bowl to the young woman in a yellow raincoat and says, 'Last bowl of the night. You look like you needed it.' She laughs and replies, 'You have no idea. I missed the last train.' The chef leans on the counter and grins: 'Then you're in no hurry. Eat slowly.' Rain patters on the window, a radio plays soft jazz in the background, broth simmers. Warm tungsten light, shallow depth of field.",
reference_images: [],
resolution: "720p"
};
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_RtE**********************************
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={
"aspect_ratio": "16:9",
"duration": 15,
"prompt": "One continuous handheld shot inside a tiny late-night ramen shop with steam rising from the counter. The old chef with a white headband slides a bowl to the young woman in a yellow raincoat and says, 'Last bowl of the night. You look like you needed it.' She laughs and replies, 'You have no idea. I missed the last train.' The chef leans on the counter and grins: 'Then you're in no hurry. Eat slowly.' Rain patters on the window, a radio plays soft jazz in the background, broth simmers. Warm tungsten light, shallow depth of field.",
"reference_images": [],
"resolution": "720p"
}
)
# 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_RtE**********************************
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": {
"aspect_ratio": "16:9",
"duration": 15,
"prompt": "One continuous handheld shot inside a tiny late-night ramen shop with steam rising from the counter. The old chef with a white headband slides a bowl to the young woman in a yellow raincoat and says, \'Last bowl of the night. You look like you needed it.\' She laughs and replies, \'You have no idea. I missed the last train.\' The chef leans on the counter and grins: \'Then you\'re in no hurry. Eat slowly.\' Rain patters on the window, a radio plays soft jazz in the background, broth simmers. Warm tungsten light, shallow depth of field.",
"reference_images": [],
"resolution": "720p"
}
}' \
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": "s20eqyzvs1rmr0d1np1vqm2774",
"model": "google/gemini-omni-1.2-flash",
"version": "hidden",
"input": {
"aspect_ratio": "16:9",
"duration": 15,
"prompt": "One continuous handheld shot inside a tiny late-night ramen shop with steam rising from the counter. The old chef with a white headband slides a bowl to the young woman in a yellow raincoat and says, 'Last bowl of the night. You look like you needed it.' She laughs and replies, 'You have no idea. I missed the last train.' The chef leans on the counter and grins: 'Then you're in no hurry. Eat slowly.' Rain patters on the window, a radio plays soft jazz in the background, broth simmers. Warm tungsten light, shallow depth of field.",
"reference_images": [],
"resolution": "720p"
},
"logs": "Generating video with model: gemini-omni-1.2-flash\n prompt: One continuous handheld shot inside a tiny late-night ramen shop with steam rising from the counter....\n task=text_to_video, duration=15s, aspect_ratio=16:9, resolution=720p, images=0, video=False\nVideo generated in 56.3s\nDownloading video...\nDownloaded video in 0.7s\nGenerated video duration: 15.04s",
"output": "https://replicate.delivery/xezq/h9DuN0rSegR7fESsHcLVOqfMrsenCxDktuoMvSGAe8vlaQ17C/tmpy30_giv4.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2026-11-05T21:01:10.472Z",
"started_at": "2026-11-05T21:01:10.518615Z",
"completed_at": "2026-11-05T21:02:12.895813Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/s20eqyzvs1rmr0d1np1vqm2774/cancel",
"get": "https://api.replicate.com/v1/predictions/s20eqyzvs1rmr0d1np1vqm2774",
"stream": "https://stream.replicate.com/v1/files/jbxs-zoowju7du7j55nrerl27cjfv5vjqfnizudonnsopoica2vtpflta",
"web": "https://replicate.com/p/s20eqyzvs1rmr0d1np1vqm2774"
},
"metrics": {
"predict_time": 62.377197715,
"resolution_target": "720p",
"total_time": 62.423813583,
"video_output_count": 1,
"video_output_duration_seconds": 15.04
}
}