Gemini Omni 1.2 Flash Reference-to-Video
Gemini Omni 1.2 Flash Reference-to-Video costs $0.07 to $0.21 per second of video on LLM API, depending on resolution (720p to 4k).
Pricing
Served by Runware, the only provider.
| 720p | $0.07 | per second |
|---|---|---|
| 1080p | $0.1 | per second |
| 4k | $0.21 | per second |
Specifications
- Generates fromReference
- Resolutions720p, 1080p, 4k
Call Gemini Omni 1.2 Flash Reference-to-Video
POST /v1/videosVideo jobs run in the background: create one, poll it, then download the file.Videos docs
import os
import time
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
video = client.videos.create(
model="gemini-omni-flash-1.2-r2v",
prompt="This paper boat drifts down a rainy street",
extra_body={"image_list": "https://llmapi.ai/samples/paper-boat.jpg"},
)
while video.status in ("queued", "in_progress"):
time.sleep(10)
video = client.videos.retrieve(video.id)
if video.status == "failed":
raise RuntimeError(video.error)
client.videos.download_content(video.id).write_to_file("video.mp4")import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
let video = await client.videos.create({
model: "gemini-omni-flash-1.2-r2v",
prompt: "This paper boat drifts down a rainy street",
// @ts-expect-error LLM API parameter
image_list: "https://llmapi.ai/samples/paper-boat.jpg",
});
while (video.status === "queued" || video.status === "in_progress") {
await new Promise((r) => setTimeout(r, 10_000));
video = await client.videos.retrieve(video.id);
}
if (video.status === "failed") throw new Error(video.error?.message);
const content = await client.videos.downloadContent(video.id);
fs.writeFileSync("video.mp4", Buffer.from(await content.arrayBuffer()));curl https://api.llmapi.ai/v1/videos \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-omni-flash-1.2-r2v",
"prompt": "This paper boat drifts down a rainy street",
"image_list": ["https://llmapi.ai/samples/paper-boat.jpg"]
}'
# Poll GET https://api.llmapi.ai/v1/videos/{id} until "completed",
# then download GET https://api.llmapi.ai/v1/videos/{id}/contentMore from Google
All Google video models
Gemini Omni 1.2 Flash Text-to-Videogemini-omni-flash-1.2-t2v$0.07–0.21per second
Gemini Omni 1.2 Flash Image-to-Videogemini-omni-flash-1.2-i2v$0.07–0.21per second
Veo 3.1 Fast Text-to-Videoveo3.1-fast-t2v$0.0975per second
Prices synced .