PopNowDocs API
Contenu principal

Référence API de Gemini Omni 1.2 Flash

Vidéo avec son jusqu'en 4K à partir d'un texte, d'images.

Une seule clé API PopNow suffit pour appeler Gemini Omni 1.2 Flash depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en USD et une requête à coller telle quelle dans un terminal.

Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.

En bref

Éditeur
Google
Résultat
Vidéo
À partir de
$0.027 USD par seconde produite

Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.

Créer une vidéo

google/gemini-omni-1.2-flash/text-to-video

Prix

OptionUSD
360p$0.027 par seconde produite
720p$0.079 par seconde produite
1080p$0.118 par seconde produite
4k$0.236 par seconde produite

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 20 000 caractèresDescribe the subject, the action, the camera and the sound. Say "in a single continuous shot" if you want no cuts.
aspect_ratioFacultatifstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionFacultatifstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.
duration_secondsFacultatifinteger83, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution.
seedFacultatifinteger—de 10000 à 99999Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Image vers vidéo

google/gemini-omni-1.2-flash/image-to-video

Prix

OptionUSD
360p$0.027 par seconde produite
720p$0.079 par seconde produite
1080p$0.118 par seconde produite
4k$0.236 par seconde produite

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 20 000 caractèresDescribe the motion, the camera and the sound.
image_urlObligatoirestring (uri)——Opening frame of the clip.
last_image_urlFacultatifstring (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_ratioFacultatifstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionFacultatifstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.
duration_secondsFacultatifinteger83, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution.
seedFacultatifinteger—de 10000 à 99999Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans image_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Références vers vidéo

google/gemini-omni-1.2-flash/reference-to-video

Prix

OptionUSD
360p$0.027 par seconde produite
720p$0.079 par seconde produite
1080p$0.118 par seconde produite
4k$0.236 par seconde produite

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 20 000 caractèresSay 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_urlsFacultatifarray<string (uri)>—jusqu’à 6 élémentsUp to six images of the people, products or places to keep, with up to three per character for two characters.
reference_video_urlsFacultatifarray<string (uri)>—jusqu’à 3 élémentsUp 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_ratioFacultatifstring16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolutionFacultatifstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.
duration_secondsFacultatifinteger83, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Clip length in whole seconds, from 3 to 15. Billed per second at the rate of the chosen resolution.
seedFacultatifinteger—de 10000 à 99999Optional whole number from 10000 to 99999 for side-by-side comparisons; it does not guarantee identical frames.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Modifier une vidéo

google/gemini-omni-1.2-flash/video-edit

Prix

OptionUSD
360p$0.054 par seconde produite
720p$0.117 par seconde produite
1080p$0.164 par seconde produite
4k$0.305 par seconde produite

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 20 000 caractèresSay what to change in plain words and end with "Keep everything else the same."
video_urlObligatoirestring (uri)——The clip to edit (MP4). Billed per second of the source clip, rounded up, with a 3 second minimum.
resolutionFacultatifstring720p360p, 720p, 1080p, 4kOutput resolution. 360p and 720p are native; 1080p and 4K are upscaled by Google. Sets the per-second rate.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans video_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Pour aller plus loin

Sur cette page