APIMaster.ai

Gemini Omni 1.1 Flash — 動画の生成と編集

Official と Ext は同じ公開モデル ID を使用し、上流モデルはサーバーが変換します。

Gemini Omni 1.1 Flash

Official と Ext は同じ公開モデル ID を使用し、上流モデルはサーバーが変換します。

gemini-omni-1.1-flash

Official は約3〜10秒を自動生成し、duration は指定しません。参照画像、最初・最後のフレーム、動画編集に対応。Ext は4・6・8・10秒、既定6秒。両方とも360p・720p・1080p・4k、横・縦に対応します。

Ext は開始画像1枚、または generation_type:reference で参照画像1枚・3枚に対応。2フレーム補間とタスクIDによる継続は非対応。duration を指定すると Ext を選択します。

POST https://apimaster.ai/v1/videos/generations · POST https://apimaster.ai/v1/videos

curl "https://apimaster.ai/v1/videos/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-omni-1.1-flash","prompt":"A paper boat on a sunlit lake, gentle camera movement","resolution":"720p","aspect_ratio":"16:9"}'

Ext:

{"model":"gemini-omni-1.1-flash","prompt":"A paper boat on a lake","duration":6,"resolution":"720p","aspect_ratio":"16:9"}

model · prompt · resolution · aspect_ratio · image_urls · video_urls

Official: first_frame_image · last_frame_image · image_with_roles · metadata.task · extend_from_task_id

Ext: duration · generation_type · nsfw_check

Official の extend_from_task_id は同一チャネルの本人の成功タスクを指定し、video_urls とは併用できません。参照動画は最大10秒。Ext の参照動画では duration を省略し、別料金が適用されます。

{"id":"task_...","task_id":"task_...","status":"queued"}

5〜10秒ごとに completed または failed まで照会し、同じ API キーでダウンロードします。成功動画のリンクは利用ログで確認できます。

curl "https://apimaster.ai/v1/videos/task_..." -H "Authorization: Bearer YOUR_API_KEY"
curl -L "https://apimaster.ai/v1/videos/task_.../content" -H "Authorization: Bearer YOUR_API_KEY" -o video.mp4

queued → in_progress → completed / failed

Google の確認済み720p出力基準は $0.10136/秒(5,792トークン × $17.50/百万)。入力は $1.50/百万、テキスト出力は $9/百万。秒数だけでは請求総額を再現できません。その他の解像度や Ext の時間区分は個別料金です。

送信時の概算を仮押さえし、最終請求と固定されたチャネル・アカウント規則で差額を精算します。Official の入力使用量で金額が増える場合があります。失敗時は生成分の仮押さえを返金します。モデルカードと利用ログをご確認ください。

Google Gemini API

400: invalid parameters · 401: authentication · 402: balance · 503: selected route lacks the requested capability