Gemini Omni 1.2 Flash: справочник по API
Видео со звуком до 4K по тексту, изображениям, референсам или вашему ролику
С одним ключом PopNow API вы вызываете Gemini Omni 1.2 Flash прямо из своего кода. Здесь собраны ID модели, которые нужно передать, все поля, которые она принимает, стоимость запроса в USD и готовый запрос — его можно вставить в терминал и запустить.
Описания параметров взяты из входной схемы модели и пока доступны только на английском.
Кратко
- Разработчик
- Результат
- Видео
- От
- $0.027 USD за секунду результата
Цены указаны в USD, оплата списывается с вашего баланса PopNow. При принятии задачи резервируется максимальная сумма, после завершения оплачивается фактическое использование, а остаток освобождается. Неудачные задачи не оплачиваются. Точную стоимость перед запуском можно узнать через POST /api/v1/jobs/quote.
Создать видео
google/gemini-omni-1.2-flash/text-to-video
Цена
| Вариант | USD |
|---|---|
360p | $0.027 за секунду результата |
720p | $0.079 за секунду результата |
1080p | $0.118 за секунду результата |
4k | $0.236 за секунду результата |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
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 за секунду результата |
720p | $0.079 за секунду результата |
1080p | $0.118 за секунду результата |
4k | $0.236 за секунду результата |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
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 за секунду результата |
720p | $0.079 за секунду результата |
1080p | $0.118 за секунду результата |
4k | $0.236 за секунду результата |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
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 за секунду результата |
720p | $0.117 за секунду результата |
1080p | $0.164 за секунду результата |
4k | $0.305 за секунду результата |
Параметры
| Поле | Тип | По умолчанию | Допустимые значения | Назначение |
|---|---|---|---|---|
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"
