PopNowDocs API
Contenu principal

Référence API de Veo 3.1

Vidéo cinématographique avec son natif.

Une seule clé API PopNow suffit pour appeler Veo 3.1 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
$1.36 USD par requête

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/veo-3.1/text-to-video

Prix

OptionUSD
4$1.36 par requête
6$2.04 par requête
8$2.72 par requête
duration_seconds = 8, resolution = 1080p$2.88 par requête
duration_seconds = 8, resolution = 4k$4.32 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 4 000 caractèresDescribe the subject, the action, the camera and the sound.
aspect_ratioFacultatifstring16:916:9, 9:16Output aspect ratio: 16:9 (1280x720) or 9:16 (720x1280).
resolutionFacultatifstring720p720p, 1080p, 4kOutput resolution. 720p is the default; 1080p and 4k are 8-second clips only and take longer, because the 720p render is upscaled.
duration_secondsFacultatifinteger84, 6, 8Clip length: 4, 6 or 8 seconds. Billed per clip by length.

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/veo-3.1/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/veo-3.1/image-to-video

Prix

OptionUSD
4$1.36 par requête
6$2.04 par requête
8$2.72 par requête
duration_seconds = 8, resolution = 1080p$2.88 par requête
duration_seconds = 8, resolution = 4k$4.32 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 4 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 first frame to this one.
aspect_ratioFacultatifstringautoauto, 16:9, 9:16auto follows the first frame; 16:9 or 9:16 crops to that shape.
resolutionFacultatifstring720p720p, 1080p, 4kOutput resolution. 720p is the default; 1080p and 4k are 8-second clips only and take longer, because the 720p render is upscaled.
duration_secondsFacultatifinteger84, 6, 8Clip length: 4, 6 or 8 seconds. Billed per clip by length.

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/veo-3.1/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"

Prolonger une vidéo

google/veo-3.1/video-extend

Prix

OptionUSD
4$1.36 par requête
6$2.04 par requête
8$2.72 par requête
duration_seconds = 8, resolution = 1080p$2.88 par requête
duration_seconds = 8, resolution = 4k$4.32 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 4 000 caractèresDescribe what happens next: the action, the camera and the sound.
video_urlObligatoirestring (uri)——The clip to continue, up to 60 seconds. Its last frame opens the new segment; you get back one file with both joined.
last_image_urlFacultatifstring (uri)——Optional closing frame for the new segment.
resolutionFacultatifstring720p720p, 1080p, 4kResolution of the new segment and of the joined file: 720p (default), or 1080p and 4k for 8-second segments only. Match your source clip.
duration_secondsFacultatifinteger84, 6, 8Length of the new segment: 4, 6 or 8 seconds. Billed per segment by length; the source clip is not billed.

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/veo-3.1/video-extend",
  "input": {
    "prompt": "The flowers keep opening while the camera slowly pulls back to reveal a sunlit meadow",
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "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"

Pour aller plus loin

Sur cette page