Referencia de la API de Gemini Omni 1.2 Flash
Vídeo con sonido de hasta 4K a partir de texto, imágenes, referencias o tu propio clip
Con una sola clave de API de PopNow puedes llamar a Gemini Omni 1.2 Flash desde tu propio código. Aquí tienes los ID de modelo que debes enviar, cada campo de entrada que acepta, cuánto cuesta cada solicitud en USD y una petición que puedes pegar tal cual en la terminal.
Las descripciones de los parámetros vienen del esquema de entrada del modelo y solo están en inglés.
De un vistazo
- Creado por
- Resultado
- Video
- Desde
- $0.027 USD por segundo generado
Los precios se muestran en USD y se cobran de tu saldo de PopNow. Al aceptar la tarea se reserva el importe máximo; al terminar se cobra el uso real y se libera el resto. Las tareas fallidas no se cobran. Consulta POST /api/v1/jobs/quote para obtener un presupuesto exacto antes de ejecutar.
Crear video
google/gemini-omni-1.2-flash/text-to-video
Precio
| Opción | USD |
|---|---|
360p | $0.027 por segundo generado |
720p | $0.079 por segundo generado |
1080p | $0.118 por segundo generado |
4k | $0.236 por segundo generado |
Parámetros
| Campo | Tipo | Valor predeterminado | Valores admitidos | Para qué sirve |
|---|---|---|---|---|
promptObligatorio | string | — | hasta 20.000 caracteres | Describe the subject, the action, the camera and the sound. Say "in a single continuous shot" if you want no cuts. |
aspect_ratioOpcional | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolutionOpcional | 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_secondsOpcional | 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. |
seedOpcional | integer | — | de 10000 a 99999 | Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames. |
Solicitud de ejemplo
Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en 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"
}
}'La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Imagen a video
google/gemini-omni-1.2-flash/image-to-video
Precio
| Opción | USD |
|---|---|
360p | $0.027 por segundo generado |
720p | $0.079 por segundo generado |
1080p | $0.118 por segundo generado |
4k | $0.236 por segundo generado |
Parámetros
| Campo | Tipo | Valor predeterminado | Valores admitidos | Para qué sirve |
|---|---|---|---|---|
promptObligatorio | string | — | hasta 20.000 caracteres | Describe the motion, the camera and the sound. |
image_urlObligatorio | string (uri) | — | — | Opening frame of the clip. |
last_image_urlOpcional | 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_ratioOpcional | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolutionOpcional | 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_secondsOpcional | 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. |
seedOpcional | integer | — | de 10000 a 99999 | Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames. |
Solicitud de ejemplo
Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en POPNOW_API_KEY.
El ejemplo usa archivos de muestra de PopNow en image_url. Cámbialos por tus propios enlaces HTTPS públicos, archivos subidos o recursos guardados.
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"
}
}'La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Referencias a video
google/gemini-omni-1.2-flash/reference-to-video
Precio
| Opción | USD |
|---|---|
360p | $0.027 por segundo generado |
720p | $0.079 por segundo generado |
1080p | $0.118 por segundo generado |
4k | $0.236 por segundo generado |
Parámetros
| Campo | Tipo | Valor predeterminado | Valores admitidos | Para qué sirve |
|---|---|---|---|---|
promptObligatorio | string | — | hasta 20.000 caracteres | 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_urlsOpcional | array<string (uri)> | — | hasta 6 elementos | Up to six images of the people, products or places to keep, with up to three per character for two characters. |
reference_video_urlsOpcional | array<string (uri)> | — | hasta 3 elementos | 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_ratioOpcional | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolutionOpcional | 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_secondsOpcional | 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. |
seedOpcional | integer | — | de 10000 a 99999 | Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames. |
Solicitud de ejemplo
Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en 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"
}
}'La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Editar video
google/gemini-omni-1.2-flash/video-edit
Precio
| Opción | USD |
|---|---|
360p | $0.054 por segundo generado |
720p | $0.117 por segundo generado |
1080p | $0.164 por segundo generado |
4k | $0.305 por segundo generado |
Parámetros
| Campo | Tipo | Valor predeterminado | Valores admitidos | Para qué sirve |
|---|---|---|---|---|
promptObligatorio | string | — | hasta 20.000 caracteres | Say what to change in plain words and end with "Keep everything else the same." |
video_urlObligatorio | string (uri) | — | — | The clip to edit (MP4). Billed per second of the source clip, rounded up, with a 3 second minimum. |
resolutionOpcional | 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. |
Solicitud de ejemplo
Esta solicitud funciona tal cual; los campos que no envíes usan su valor predeterminado. Antes, guarda tu clave en POPNOW_API_KEY.
El ejemplo usa archivos de muestra de PopNow en video_url. Cámbialos por tus propios enlaces HTTPS públicos, archivos subidos o recursos guardados.
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"
}
}'La respuesta trae un taskId al instante. Consulta el resultado con GET /api/v1/jobs/recordInfo o añade callBackUrl para recibir un aviso.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
