關於 Veo 3.1 Lite
低成本試做帶原生聲音的 720p 影片。
在 POST /jobs/createTask 把模型名稱填成 google/veo-3.1-lite/text-to-video 就能呼叫,US$0.17 起。
簡介
以更輕量的方案生成、參考創作和延伸影片
google/veo-3.1-lite/text-to-video
請求參數
| 參數 | 必填 | 說明 |
|---|---|---|
prompt | 是 | 描述你想做出來的內容。 |
resolution | 否 | 選擇可用的輸出尺寸。 720p · 1080p · 預設值: 720p |
aspect_ratio | 否 | 畫面形狀:橫式、方形或直式。 16:9 · 9:16 · 預設值: 16:9 |
duration_seconds | 否 | 產生影片的長度。 4 · 6 · 8 · 預設值: 8 |
價格
價格以美元計,從 PopNow 餘額扣款。任務受理時,從 PopNow 餘額中保留報價的最高金額;完成後按實際用量結算,實際扣款不超過保留金額,並釋放剩餘金額。任務失敗則釋放保留金額。
| 選項 | USD /次 |
|---|---|
| duration_seconds 4 | US$0.17 |
| duration_seconds 6 | US$0.255 |
| duration_seconds 8 | US$0.34 |
| duration_seconds 8 · resolution 1080p | US$0.576 |
執行前,將相同請求內容傳送至 POST /jobs/quote,即可查看預估費用與最高費用,單位為美元。報價不會執行任務或扣款。
API 快速上手
三步驟呼叫 Veo 3.1 Lite API
- 建立 API 金鑰. 登入 PopNow,在 API 主控台建立金鑰。金鑰以 sk-popnow- 開頭,API 呼叫以美元從 PopNow 餘額扣款。
- 送出請求. 對 POST /jobs/createTask 送出請求,model 填 google/veo-3.1-lite/text-to-video,input 依照參數表填寫。回應會立即傳回任務 ID。
- 取得結果. 用任務 ID 輪詢 GET /jobs/recordInfo,或帶上 callBackUrl,結果會推送到該網址。任務成功後下載輸出連結。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
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: $IDEMPOTENCY_KEY" \
-d '{
"model": "google/veo-3.1-lite/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration_seconds": 8
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"請替換為自己的提示詞與素材連結。回應格式、輪詢與回呼說明請參閱 API 頁籤。
Veo 3.1 Lite API 常見問題
Veo 3.1 Lite API 怎麼收費?
Veo 3.1 Lite:價格最低的任務是生成影片,US$0.17/次起。各選項價格:4 US$0.17/次、6 US$0.255/次、8 US$0.34/次、8 · 1080p US$0.576/次。API 用量以美元從 PopNow 餘額扣款。任務受理時,從 PopNow 餘額中保留報價的最高金額;完成後按實際用量結算,實際扣款不超過保留金額,並釋放剩餘金額。任務失敗則釋放保留金額。
Veo 3.1 Lite 在 API 裡的模型名稱是什麼?
在 POST /jobs/createTask 的 model 欄位填 生成影片用 google/veo-3.1-lite/text-to-video;照片轉影片用 google/veo-3.1-lite/image-to-video;參考素材生成影片用 google/veo-3.1-lite/reference-to-video;影片延伸用 google/veo-3.1-lite/video-extend。
Veo 3.1 Lite API 有哪些限制?
影片長度:4–8 s;解析度:720p · 1080p;畫面比例:16:9 · 9:16;提示詞長度(字元):4,000。超出這些限制的請求會在扣款之前被拒絕。
不寫程式能試 Veo 3.1 Lite 嗎?
不需要 API 金鑰,即可在 Playground 用與網站同一個 PopNow 餘額(以美元顯示)執行 Veo 3.1 Lite。每次執行都記入開發者紀錄,並附對應程式碼。