Veo 3.1 Fast API 呼叫參考
快速生成帶聲音的 720p 短片,支援最多三張參考圖。
只要一把 PopNow API 金鑰,就能在自己的程式裡呼叫 Veo 3.1 Fast。以下列出要填的呼叫名稱、這個型號接受的每個輸入欄位、每次請求花多少美元(USD),以及一段可以直接貼進終端機執行的請求。
參數說明直接取自型號的輸入 schema,目前只有英文。
總覽
- 開發商
- 產出
- 影片
- 起價
- $0.34 USD 每次請求
價格以 USD 顯示,從你的 PopNow 餘額扣款。任務受理時預留可能的最高費用,完成後依實際用量結算並釋放餘款;失敗任務不收費。執行前可呼叫 POST /api/v1/jobs/quote 取得準確報價。
生成影片
google/veo-3.1-fast/text-to-video
價格
| 選項 | USD |
|---|---|
4 | $0.34 每次請求 |
6 | $0.51 每次請求 |
8 | $0.68 每次請求 |
duration_seconds = 8, resolution = 1080p | $0.864 每次請求 |
duration_seconds = 8, resolution = 4k | $2.16 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
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 (default), or 1080p and 4k for 8-second clips only. The two larger sizes are upscaled from the 720p render and take a few minutes more. |
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-fast/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-fast/image-to-video
價格
| 選項 | USD |
|---|---|
4 | $0.34 每次請求 |
6 | $0.51 每次請求 |
8 | $0.68 每次請求 |
duration_seconds = 8, resolution = 1080p | $0.864 每次請求 |
duration_seconds = 8, resolution = 4k | $2.16 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
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 (default), or 1080p and 4k for 8-second clips only. The two larger sizes are upscaled from the 720p render and take a few minutes more. |
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-fast/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-fast/reference-to-video
價格
| 選項 | USD |
|---|---|
8 | $0.68 每次請求 |
duration_seconds = 8, resolution = 1080p | $0.864 每次請求 |
duration_seconds = 8, resolution = 4k | $2.16 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
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選填 | string | 16:9 | 16:9, 9:16 | Output aspect ratio: 16:9 or 9:16. |
resolution選填 | string | 720p | 720p, 1080p, 4k | Output resolution: 720p (default), or 1080p and 4k for 8-second clips only. The two larger sizes are upscaled from the 720p render and take a few minutes more. |
duration_seconds選填 | integer | 8 | 8 | Clip length: fixed at 8 seconds in this mode. |
請求範例
這段請求原樣就能執行,沒寫的欄位都用預設值。執行前請先把金鑰放進環境變數 POPNOW_API_KEY。
範例中的 reference_image_urls 使用 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-fast/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 等候通知。
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-fast/video-extend
價格
| 選項 | USD |
|---|---|
4 | $0.34 每次請求 |
6 | $0.51 每次請求 |
8 | $0.68 每次請求 |
duration_seconds = 8, resolution = 1080p | $0.864 每次請求 |
duration_seconds = 8, resolution = 4k | $2.16 每次請求 |
參數
| 欄位 | 型別 | 預設值 | 可用值 | 用途 |
|---|---|---|---|---|
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 | Size of the new segment, which also sets the size of the joined file: 720p by default, 1080p or 4k when the segment is 8 seconds. 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-fast/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"
