Veo 3.1 API 呼叫參考
電影感影片,自帶原生聲音。
只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 Veo 3.1。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少美元(USD),以及一段可以直接貼進終端機執行的請求。
參數說明直接取自型號的輸入 schema,目前只有英文。
總覽
- 開發商
- 產出
- 影片
- 起價
- $1.36 USD 每次請求
價格以 USD 顯示,從你的 PopNow 餘額扣款。任務受理時預留可能的最高費用,完成後依實際用量結算並釋放餘款;失敗任務不收費。執行前可呼叫 POST /api/v1/jobs/quote 取得準確報價。
生成影片
google/veo-3.1/text-to-video
價格
| 選項 | USD |
|---|---|
4 | $1.36 每次請求 |
6 | $2.04 每次請求 |
8 | $2.72 每次請求 |
duration_seconds = 8, resolution = 1080p | $2.88 每次請求 |
duration_seconds = 8, resolution = 4k | $4.32 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
prompt必填 | string | — | 最多 4000 個字元 | Describe the subject, the action, the camera and the sound. |
aspect_ratio選填 | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 (1280x720) or 9:16 (720x1280). |
resolution選填 | string | 720p | 720p, 1080p, 4k | Output resolution. 720p is the default; 1080p and 4k are 8-second clips only and take longer, because the 720p render is upscaled. |
duration_seconds選填 | integer | 8 | 4, 6, 8 | Clip length: 4, 6 or 8 seconds. Billed per clip by length. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 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/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"
}
}'回應會立刻帶回 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/veo-3.1/image-to-video
價格
| 選項 | USD |
|---|---|
4 | $1.36 每次請求 |
6 | $2.04 每次請求 |
8 | $2.72 每次請求 |
duration_seconds = 8, resolution = 1080p | $2.88 每次請求 |
duration_seconds = 8, resolution = 4k | $4.32 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
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選填 | string | auto | auto, 16:9, 9:16 | auto follows the first frame; 16:9 or 9:16 crops to that shape. |
resolution選填 | string | 720p | 720p, 1080p, 4k | Output resolution. 720p is the default; 1080p and 4k are 8-second clips only and take longer, because the 720p render is upscaled. |
duration_seconds選填 | integer | 8 | 4, 6, 8 | Clip length: 4, 6 or 8 seconds. Billed per clip by length. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 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/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"
}
}'回應會立刻帶回 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/veo-3.1/video-extend
價格
| 選項 | USD |
|---|---|
4 | $1.36 每次請求 |
6 | $2.04 每次請求 |
8 | $2.72 每次請求 |
duration_seconds = 8, resolution = 1080p | $2.88 每次請求 |
duration_seconds = 8, resolution = 4k | $4.32 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
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選填 | string | 720p | 720p, 1080p, 4k | Resolution 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_seconds選填 | integer | 8 | 4, 6, 8 | Length 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 連結、上傳檔案或已儲存的素材。
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"
}
}'回應會立刻帶回 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"
