imagestringrequerido
URL of the input image to animate.
google/gemini-omni-flash/image-to-videoGemini Omni Flash by Google - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
{
"aspect_ratio": "9:16",
"duration": 3,
"image": "https://static.sandbase.ai/examples/cfbc9108-0728-4751-a18f-2e8eb3e6a9ea/input/4746f7db-31ca-43c2-a62c-cbc2ef82a1eb.jpg",
"prompt": "The waves roll gently onto the shore, slow push-in, no dialogue"
}Gemini Omni Flash image-to-video: animate a picture into a 3–10 second clip with synchronized audio.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 20,000 characters. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
duration | integer 3–10 | 8 | Output length in seconds (3–10). |
aspect_ratio | 16:9 / 9:16 | 16:9 | Output frame shape. |
You pay $0.13 per output second.
| Output | Price |
|---|---|
| 3s | $0.39 |
| 8s (default) | $1.04 |
| 10s | $1.30 |
Failed runs are not charged.
Other Gemini Omni Flash endpoints: google/gemini-omni-flash/text-to-video, google/gemini-omni-flash/reference-to-video, google/gemini-omni-flash/edit, google/gemini-omni-flash/1.1/image-to-video (newer).
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "google/gemini-omni-flash/image-to-video",
"image": "https://static.sandbase.ai/examples/google/gemini-omni-flash/image-to-video/input_image_0.png",
"prompt": "The dog turns its head and wags its tail in warm sunlight.",
"duration": 8,
"aspect_ratio": "16:9"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
imagestringrequeridoURL of the input image to animate.
promptstringrequeridoThe text prompt describing how the image should be animated.
durationintegerThe duration of the generated video, in seconds.
Valor predeterminado: 8
Mínimo: 3
Máximo: 10
aspect_ratiostringThe aspect ratio of the generated video.
Valor predeterminado: "16:9"
Valores posibles: "16:9", "9:16"
{
"model": "google/gemini-omni-flash/image-to-video",
"image": "https://static.sandbase.ai/examples/google/gemini-omni-flash/image-to-video/input_image_0.png",
"prompt": "The dog turns its head and wags its tail in warm sunlight.",
"duration": 8,
"aspect_ratio": "16:9"
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"poster": "https://static.sandbase.ai/examples/posters/b21981b2d2a69c8ad625.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/cfbc9108-0728-4751-a18f-2e8eb3e6a9ea/output/c6b06f65-b9c4-41a9-9e20-f17ddd128c65.mp4"
}
]