videostringobbligatorio
URL of the video to edit. Must be at most 15 seconds long.
google/gemini-omni-flash/1.2/editGemini Omni Flash 1.2 Edit by Google applies natural-language edits to an existing video of up to 15 seconds, such as swapping objects, backgrounds, lighting, or style, at 360p to 4K output.
Prova il modello
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Gemini Omni Flash 1.2 edit: change an existing clip of up to 15 seconds with an instruction, such as swapping a product or background, or changing lighting, weather, or style, while the rest of the scene stays consistent.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 20,000 characters. |
video | video URL, required | — | Source clip, up to 15 seconds. |
resolution | 360p / 720p / 1080p / 4k | 720p | Sets the per-second rate. |
Billing counts the source and the output: $0.02 per source second plus the output rate ($0.028 at 360p, $0.084 at 720p, $0.126 at 1080p, and $0.252 at 4K) for the same length, with a 3-second minimum on the output. Source length is rounded up to the next whole second. The quote before submission assumes an 8-second source.
| Source clip | 360p | 720p | 1080p | 4k |
|---|---|---|---|---|
| 3s source | $0.14 | $0.31 | $0.44 | $0.82 |
| 8s source | $0.38 | $0.83 | $1.17 | $2.18 |
| 10s source | $0.48 | $1.04 | $1.46 | $2.72 |
| 15s source | $0.72 | $1.56 | $2.19 | $4.08 |
Failed runs are not charged.
Other Gemini Omni Flash 1.2 endpoints: google/gemini-omni-flash/1.2/text-to-video, google/gemini-omni-flash/1.2/image-to-video, google/gemini-omni-flash/1.2/reference-to-video, google/gemini-omni-flash/1.1/edit (previous version).
Inizia a costruire
Invia questo modello tramite la SandBase Unified Run API.
# 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/1.2/edit",
"video": "https://static.sandbase.ai/examples/google/gemini-omni-flash/edit/input_video_0.mp4",
"prompt": "Make this video anime. Keep everything else the same.",
"resolution": "720p"
}
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"Crea una SandBase API key e impostala nell'ambiente del server. Tutte le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la key sul server. Non esporla nel codice del browser né committarla in un repository.
Esegui POST su /v1/run con questo ID modello e i relativi input. L'esempio di richiesta sopra include invio e polling.
Usa il run ID restituito per fare polling finché lo stato non è completed, failed o timeout. Leggi l'output solo dopo completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Passa un URL di file accessibile pubblicamente nel campo image, video o audio del modello. I formati supportati e i limiti sono mostrati accanto a ciascun input del Playground.
Usa il controllo upload o replace sui campi immagine supportati nel Playground. I campi URL video accettano un video di driving ospitato; non implicano il supporto al caricamento video.
videostringobbligatorioURL of the video to edit. Must be at most 15 seconds long.
promptstringobbligatorioA simple instruction describing the edit.
resolutionstringThe resolution of the edited video.
Predefinito: "720p"
Valori possibili: "360p", "720p", "1080p", "4k"
{
"model": "google/gemini-omni-flash/1.2/edit",
"video": "https://static.sandbase.ai/examples/google/gemini-omni-flash/edit/input_video_0.mp4",
"prompt": "Make this video anime. Keep everything else the same.",
"resolution": "720p"
}Un run completato espone il risultato in output. Quanto segue è l'esempio salvato del modello, non una nuova generazione.
Non è ancora stato pubblicato alcun output di esempio. Usa Playground → Result → JSON dopo un run completato per ispezionare la risposta.