PopNowAPI 文件
主要內容

Veo 3.1 Lite API 呼叫參考

低成本試做帶原生聲音的 720p 影片。

只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 Veo 3.1 Lite。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少美元(USD),以及一段可以直接貼進終端機執行的請求。

參數說明直接取自型號的輸入 schema,目前只有英文。

總覽

開發商
Google
產出
影片
起價
$0.17 USD 每次請求

價格以 USD 顯示,從你的 PopNow 餘額扣款。任務受理時預留可能的最高費用,完成後依實際用量結算並釋放餘款;失敗任務不收費。執行前可呼叫 POST /api/v1/jobs/quote 取得準確報價。

生成影片

google/veo-3.1-lite/text-to-video

價格

選項USD
4$0.17 每次請求
6$0.255 每次請求
8$0.34 每次請求
duration_seconds = 8, resolution = 1080p$0.576 每次請求

參數

欄位型別預設值可用值用途
prompt必填string—最多 4000 個字元Describe the subject, the action, the camera and the sound.
aspect_ratio選填string16:916:9, 9:16Output aspect ratio: 16:9 (1280x720) or 9:16 (720x1280).
resolution選填string720p720p, 1080pOutput resolution: 720p (default) or 1080p. 1080p works on 8-second clips only and is upscaled from the 720p render, so it takes a little longer.
duration_seconds選填integer84, 6, 8Clip length: 4, 6 or 8 seconds. Billed per clip by length.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 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-lite/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 等候通知。

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"

照片轉影片

google/veo-3.1-lite/image-to-video

價格

選項USD
4$0.17 每次請求
6$0.255 每次請求
8$0.34 每次請求
duration_seconds = 8, resolution = 1080p$0.576 每次請求

參數

欄位型別預設值可用值用途
prompt必填string—最多 4000 個字元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 first frame to this one.
aspect_ratio選填stringautoauto, 16:9, 9:16auto follows the first frame; 16:9 or 9:16 crops to that shape.
resolution選填string720p720p, 1080pOutput resolution: 720p (default) or 1080p. 1080p works on 8-second clips only and is upscaled from the 720p render, so it takes a little longer.
duration_seconds選填integer84, 6, 8Clip length: 4, 6 or 8 seconds. Billed per clip by length.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 image_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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-lite/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 等候通知。

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"

參考素材生成影片

google/veo-3.1-lite/reference-to-video

價格

選項USD
8$0.34 每次請求
duration_seconds = 8, resolution = 1080p$0.576 每次請求

參數

欄位型別預設值可用值用途
prompt必填string—最多 4000 個字元Say what from Image 1, Image 2 and Image 3 appears and what happens.
reference_image_urls必填array<string (uri)>—最多 3 項One to three images of the people, products or places to keep.
aspect_ratio選填string16:916:9, 9:16Output aspect ratio: 16:9 or 9:16.
resolution選填string720p720p, 1080pOutput resolution: 720p (default) or 1080p. 1080p works on 8-second clips only and is upscaled from the 720p render, so it takes a little longer.
duration_seconds選填integer88Clip length: fixed at 8 seconds in this mode.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 reference_image_urls 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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-lite/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",
    "reference_image_urls": [
      "https://media.popnow.ai/influencer/examples/ava.webp"
    ],
    "duration_seconds": 8,
    "resolution": "720p"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

影片延伸

google/veo-3.1-lite/video-extend

價格

選項USD
4$0.17 每次請求
6$0.255 每次請求
8$0.34 每次請求
duration_seconds = 8, resolution = 1080p$0.576 每次請求

參數

欄位型別預設值可用值用途
prompt必填string—最多 4000 個字元Describe what happens next: the action, the camera and the sound.
video_url必填string (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_url選填string (uri)——Optional closing frame for the new segment.
resolution選填string720p720p, 1080pResolution of the new segment and the joined file: 720p (default) or 1080p, which needs an 8-second segment. Match your source clip.
duration_seconds選填integer84, 6, 8Length of the new segment: 4, 6 or 8 seconds. Billed per segment by length; the source clip is not billed.

請求範例

這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。

範例中的 video_url 使用 PopNow 的範例素材,請換成你自己的公開 HTTPS 連結、上傳檔案或已儲存的素材。

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-lite/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"
  }
}'

回應會立刻帶回 taskId。之後用 GET /api/v1/jobs/recordInfo 取得結果,或在請求裡加上 callBackUrl 等候通知。

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"

接下來

本頁內容