videostring필수
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.
모델 사용해 보기
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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).
빌드를 시작하세요
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"SandBase API 키를 생성해 서버 환경에 설정하세요. 모든 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하거나 저장소에 커밋하지 마세요.
이 모델 ID와 입력값을 사용해 /v1/run로 POST하세요. 위의 요청 예시에는 제출과 폴링이 포함되어 있습니다.
반환된 실행 ID를 사용해 상태가 completed, failed 또는 timeout이 될 때까지 폴링하세요. completed 이후에만 출력을 읽으세요.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"모델의 이미지, 비디오 또는 오디오 필드에 공개적으로 접근 가능한 파일 URL을 전달하세요. 지원 형식과 제한은 각 Playground 입력 옆에 표시됩니다.
Playground의 지원되는 이미지 필드에서 업로드 또는 교체 컨트롤을 사용하세요. 비디오 URL 필드는 호스팅된 driving video를 받으며, 비디오 업로드 지원을 의미하지는 않습니다.
videostring필수URL of the video to edit. Must be at most 15 seconds long.
promptstring필수A simple instruction describing the edit.
resolutionstringThe resolution of the edited video.
기본값: "720p"
가능한 값: "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"
}완료된 실행의 결과는 출력에 표시됩니다. 아래 내용은 새 생성 결과가 아니라 모델에 저장된 예시입니다.
예시 출력이 아직 게시되지 않았습니다. 완료된 실행 후 Playground → Result → JSON에서 응답을 확인하세요.