Gemini Omni 1.2 Flash API リファレンス
テキスト、画像、参照素材、手持ちのクリップから、音声付きで最大 4K の動画を作成
PopNow の API キー 1 つで、Gemini Omni 1.2 Flash を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- 出力
- 動画
- 最安
- $0.027 USD 出力 1 秒あたり
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
動画を作成
google/gemini-omni-1.2-flash/text-to-video
料金
| オプション | USD |
|---|---|
360p | $0.027 出力 1 秒あたり |
720p | $0.079 出力 1 秒あたり |
1080p | $0.118 出力 1 秒あたり |
4k | $0.236 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 20,000 文字まで | Describe the subject, the action, the camera and the sound. Say "in a single continuous shot" if you want no cuts. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolution任意 | string | 720p | 360p, 720p, 1080p, 4k | Output resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate. |
duration_seconds任意 | integer | 8 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution. |
seed任意 | integer | — | 10000〜99999 | Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemini-omni-1.2-flash/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 8,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"画像から動画
google/gemini-omni-1.2-flash/image-to-video
料金
| オプション | USD |
|---|---|
360p | $0.027 出力 1 秒あたり |
720p | $0.079 出力 1 秒あたり |
1080p | $0.118 出力 1 秒あたり |
4k | $0.236 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 20,000 文字まで | Describe the motion, the camera and the sound. |
image_url必須 | string (uri) | — | — | Opening frame of the clip. |
last_image_url任意 | string (uri) | — | — | Optional closing frame: the clip moves from the opening frame to this one. With a closing frame the clip can be 3 to 10 seconds long. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolution任意 | string | 720p | 360p, 720p, 1080p, 4k | Output resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate. |
duration_seconds任意 | integer | 8 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution. |
seed任意 | integer | — | 10000〜99999 | Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemini-omni-1.2-flash/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 8,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"参考素材から動画
google/gemini-omni-1.2-flash/reference-to-video
料金
| オプション | USD |
|---|---|
360p | $0.027 出力 1 秒あたり |
720p | $0.079 出力 1 秒あたり |
1080p | $0.118 出力 1 秒あたり |
4k | $0.236 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 20,000 文字まで | Say in plain words what each reference is and how to use it, for example "the man in Image 1" or "move like Video 1". |
reference_image_urls任意 | array<string (uri)> | — | 6 件まで | Up to six images of the people, products or places to keep, with up to three per character for two characters. |
reference_video_urls任意 | array<string (uri)> | — | 3 件まで | Up to three reference clips of no more than 3 seconds each for look and motion; any sound in them is ignored. Google lists one clip for outputs of 11 to 15 seconds. |
aspect_ratio任意 | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolution任意 | string | 720p | 360p, 720p, 1080p, 4k | Output resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate. |
duration_seconds任意 | integer | 8 | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 | Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution. |
seed任意 | integer | — | 10000〜99999 | Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemini-omni-1.2-flash/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"duration_seconds": 8,
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"動画を編集
google/gemini-omni-1.2-flash/video-edit
料金
| オプション | USD |
|---|---|
360p | $0.054 出力 1 秒あたり |
720p | $0.117 出力 1 秒あたり |
1080p | $0.164 出力 1 秒あたり |
4k | $0.305 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 20,000 文字まで | Say what to change in plain words and end with "Keep everything else the same." |
video_url必須 | string (uri) | — | — | The clip to edit (MP4). Billed per second of the source clip, rounded up, with a 3 second minimum. |
resolution任意 | string | 720p | 360p, 720p, 1080p, 4k | Output resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の video_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemini-omni-1.2-flash/video-edit",
"input": {
"prompt": "Recolor the flowers in soft pastel blue; keep the face and the motion unchanged",
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"resolution": "720p"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
