Gemini Omni 1.1 Flash Ext
Gemini Omni 1.1 Flash Ext at a fixed price per clip. Text-to-video, one first frame, or one or three reference pictures, for 4/6/8/10 s at 360p/720p/1080p/4K with sound. One reference video can drive the motion while the pictures say who appears; the clip then sets the length.
料金
$0.30/ 回
エンドポイント
/videos
結果の受け取り方
非同期タスクのライフサイクル
提供状況
現在利用可能
API ドキュメント
リクエストを作成してコピー
このモデルが受け付けるオプションを選んでください。下のコードは選択に合わせて更新されます。
https://www.aisplice.store/v1/videosBearer API key非同期タスクオプションこのモデルで公開されているオプションのみ表示しています。
# Requires curl and jq
API_KEY="${API_KEY:-YOUR_API_KEY}"
# 1. Submit once
SUBMITTED=$(curl --fail-with-body -sS https://www.aisplice.store/v1/videos \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: model-docs-$(date +%s)-$$" \\
-d '{
"model": "Gemini Omni 1.1 Flash Ext",
"prompt": "A cinematic scene with careful composition",
"duration": 6,
"resolution": "720p",
"size": "16:9",
"nsfw_check": false
}')
TASK_ID=$(printf '%s' "$SUBMITTED" | jq -r '.task_id // .id // empty')
if [ -z "$TASK_ID" ]; then
printf '%s\n' "$SUBMITTED" >&2
exit 1
fi
echo "task_id=$TASK_ID"
# 2. Poll until terminal
while true; do
STATUS_JSON=$(curl --fail-with-body -sS \
"https://www.aisplice.store/v1/videos/$TASK_ID" \
-H "Authorization: Bearer $API_KEY")
STATUS=$(printf '%s' "$STATUS_JSON" | jq -r '.status // empty' | tr '[:upper:]' '[:lower:]')
echo "status=$STATUS"
case "$STATUS" in
completed|succeeded|success) break ;;
failed|failure|cancelled|canceled)
printf '%s\n' "$STATUS_JSON" | jq .
exit 1
;;
esac
sleep 5
done
# 3. Fetch the final result
curl --fail-with-body -sS \
"https://www.aisplice.store/v1/videos/$TASK_ID/content" \
-H "Authorization: Bearer $API_KEY" | jq .- 1タスクを送信
- 2ステータスをポーリング
- 3コンテンツを取得
このモデルには公開メディア URL が必要です。 ローカルファイルは先にアップロードし、public_url をモデルのリクエストに指定してください。大きな Base64 のボディは避けてください。
アップロードガイドを読むパラメーターリファレンス
modelこのリクエストで使う正確なモデル識別子。
gemini-omni-1.1-flash-extpromptScene, subject, action, camera, style and sound cues.
durationOutput seconds. Not sent with a reference video; the clip's length is used.
46810resolutionOutput resolution; price is per resolution and length.
360p720p1080p4ksizeForwarded as aspect_ratio.
16:99:16imagesNone, one first frame, or one or three reference pictures (two are refused). Beside a reference video they say who appears.
videosOne public reference video whose motion is followed; it replaces duration.
レスポンスの流れ
タスクのステータス、終了状態、結果レスポンスの例。
レスポンスの流れ
タスクのステータス、終了状態、結果レスポンスの例。
{
"id": "task_xxx",
"task_id": "task_xxx",
"object": "video",
"model": "Gemini Omni 1.1 Flash Ext",
"status": "queued"
}待機中
queued · submitted · in_progress · processing
成功
completed · succeeded · success
失敗
failed · failure · cancelled · canceled
エラーと本番運用
再試行のルール、冪等性、最低限の本番チェックリスト。
エラーと本番運用
再試行のルール、冪等性、最低限の本番チェックリスト。
400 / 422リクエストのフィールドや対応していないオプションを修正してください。そのまま再試行しないでください。
401API キーが指定されていて有効か、Bearer トークンとして送信されているかを確認してください。
402アカウント残高が不足しています。
409Idempotency-Key が処理中か、別のボディで再利用されました。
429再試行する前に、Retry-After に従ってバックオフしてください。
5xx指数バックオフで再試行し、元の Idempotency-Key をそのまま使ってください。
- 一般向けのモバイルアプリやブラウザアプリでは、API キーをサーバーに保管してください。
- 課金対象の非同期操作ごとに、一意の Idempotency-Key を設定してください。
- 再起動後にポーリングを再開できるよう、task_id を保存してください。
- すべての HTTP リクエストにタイムアウトを設定し、サポートへの報告にはリクエスト ID を含めてください。
- 料金や対応オプションをハードコードせず、リアルタイムのモデルメタデータを読み取ってください。
料金とティア
公式価格より 20% お得リクエスト単価
$0.30/ 回
$0.375
ティア別料金
基本料金 $0.30
ティア別料金 — 最終的な料金はリクエストで指定するオプションによって決まります。記載のないティアは基本料金で課金されます。
- 16:9×1$0.30
- 9:16×1$0.30
ここに表示される料金がそのまま請求額です — 失敗した呼び出しは自動で返金されます。
関連モデル