videostringzorunlu
URL of the video to edit.
google/gemini-omni-flash/1.1/editGemini Omni Flash 1.1 Edit by Google applies natural-language edits to an existing video of up to ten seconds, such as changing style, lighting, or objects, at 360p to 4K output.
Modeli deneyin
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"prompt": "Make this video look like a watercolor painting. Keep everything else the same.",
"resolution": "1080p",
"video": "https://static.sandbase.ai/examples/dc14a58a-ac90-45a2-8041-931e6bafb192/input/dc716dd9-2ff4-443f-ac62-0d7c64e7381e.mp4"
}Gemini Omni Flash 1.1 edit: change an existing clip of up to 10 seconds with an instruction, such as style, lighting, or objects, 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 10 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.04 at 360p, $0.12 at 720p, $0.18 at 1080p, $0.36 at 4K) for the same length, with a 3-second minimum on the output. The quote before submission assumes an 8-second source.
| Source clip | 360p | 720p | 1080p | 4k |
|---|---|---|---|---|
| 3s source | $0.18 | $0.42 | $0.60 | $1.14 |
| 5s source | $0.30 | $0.70 | $1.00 | $1.90 |
| 8s source | $0.48 | $1.12 | $1.60 | $3.04 |
| 10s source | $0.60 | $1.40 | $2.00 | $3.80 |
Failed runs are not charged.
Other Gemini Omni Flash 1.1 endpoints: google/gemini-omni-flash/1.1/text-to-video, google/gemini-omni-flash/1.1/image-to-video, google/gemini-omni-flash/1.1/reference-to-video, google/gemini-omni-flash/edit (previous version).
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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.1/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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
videostringzorunluURL of the video to edit.
promptstringzorunluA simple instruction describing the edit.
resolutionstringThe resolution of the edited video.
Varsayılan: "720p"
Olası değerler: "360p", "720p", "1080p", "4k"
{
"model": "google/gemini-omni-flash/1.1/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"
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"poster": "https://static.sandbase.ai/examples/posters/32fa6172b88089aa9558.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/dc14a58a-ac90-45a2-8041-931e6bafb192/output/3969dbf9-5e53-4955-ab05-47c8c63007b9.mp4"
}
]