PopNowAPI ドキュメント
本文

P-Video 2 Pro API リファレンス

テキスト、フレーム、参照クリップから作る、音付きの5〜15秒動画

PopNow の API キー 1 つで、P-Video 2 Pro を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
Pruna AI
出力
動画
最安
$0.01 USD 出力 1 秒あたり
目安の所要時間
約 36 秒

料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。

動画を作成

pruna-ai/p-video-2-pro/text-to-video

料金

オプションUSD
generation_mode = cost, resolution = 480p$0.01 出力 1 秒あたり
generation_mode = speed, resolution = 480p$0.02 出力 1 秒あたり
generation_mode = cost, resolution = 768p$0.025 出力 1 秒あたり
generation_mode = speed, resolution = 768p$0.035 出力 1 秒あたり
generation_mode = quality, resolution = 480p$0.04 出力 1 秒あたり
generation_mode = quality, resolution = 768p$0.075 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string——Describe the scene, the action, the camera and the sound. Put spoken lines in quotes.
aspect_ratio任意string16:916:9, 9:16, 4:3, 3:4, 3:2, 2:3, 1:1Output aspect ratio.
resolution任意string768p480p, 768pOutput resolution. 768p costs more per second than 480p.
generation_mode任意stringspeedcost, speed, qualitycost is the cheapest and slower, speed (the default) is faster at the same quality, quality renders a higher-quality clip at a higher price.
duration_seconds任意integer55〜15Output length in whole seconds, from 5 to 15. Billed per second.
prompt_optimization_mode任意stringoffoff, turbo, maxLet the service rewrite and expand the prompt first: off follows it word for word, turbo is a quick rewrite, max a fuller one. Does not change the price.
seed任意integer—0〜2147483647Random seed for controlled comparisons, not a frame-identical guarantee.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "pruna-ai/p-video-2-pro/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": 5,
    "generation_mode": "speed",
    "resolution": "768p"
  }
}'

レスポンスにはすぐに 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"

画像から動画

pruna-ai/p-video-2-pro/image-to-video

料金

オプションUSD
generation_mode = cost, resolution = 480p$0.01 出力 1 秒あたり
generation_mode = speed, resolution = 480p$0.02 出力 1 秒あたり
generation_mode = cost, resolution = 768p$0.025 出力 1 秒あたり
generation_mode = speed, resolution = 768p$0.035 出力 1 秒あたり
generation_mode = quality, resolution = 480p$0.04 出力 1 秒あたり
generation_mode = quality, resolution = 768p$0.075 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string——Describe what happens after the opening frame: the action, the camera and the sound.
image_url必須string (uri)——Opening frame (JPEG, PNG or WebP). The clip starts from this image and keeps its shape.
last_image_url任意string (uri)——Optional closing frame the clip should end on.
resolution任意string768p480p, 768pOutput resolution. 768p costs more per second than 480p.
generation_mode任意stringspeedcost, speed, qualitycost is the cheapest and slower, speed (the default) is faster at the same quality, quality renders a higher-quality clip at a higher price.
duration_seconds任意integer55〜15Output length in whole seconds, from 5 to 15. Billed per second.
prompt_optimization_mode任意stringoffoff, turbo, maxLet the service rewrite and expand the prompt first: off follows it word for word, turbo is a quick rewrite, max a fuller one. Does not change the price.
seed任意integer—0〜2147483647Random seed for controlled comparisons, not a frame-identical guarantee.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "pruna-ai/p-video-2-pro/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": 5,
    "generation_mode": "speed",
    "resolution": "768p"
  }
}'

レスポンスにはすぐに 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"

参考素材から動画

pruna-ai/p-video-2-pro/reference-to-video

料金

オプションUSD
generation_mode = cost, resolution = 480p$0.015 出力 1 秒あたり
generation_mode = speed, resolution = 480p$0.02 出力 1 秒あたり
generation_mode = cost, resolution = 768p$0.025 出力 1 秒あたり
generation_mode = speed, resolution = 768p$0.035 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string——Say what the shot should take from each reference. Refer to reference images as image 1, image 2, to reference videos as video 1, video 2 and to audio clips as audio 1, audio 2, numbered in upload order.
image_url任意string (uri)——Optional opening frame. Adds a small per-image charge.
last_image_url任意string (uri)——Optional closing frame. Adds a small per-image charge.
reference_video_urls任意array<string (uri)>—3 件までReference videos for motion, camera and pacing: up to 3, 2 seconds or longer each and 15 seconds in total. Refer to them as video 1, video 2. Their seconds are billed too.
reference_image_urls任意array<string (uri)>—9 件までReference images for people, products or style: up to 9. Refer to them as image 1, image 2. Each one adds a small charge.
reference_audio_urls任意array<string (uri)>—3 件までReference audio for a voice, dialogue or music: up to 3 clips, 15 seconds in total. Needs an opening frame or a reference video as well. Refer to them as audio 1, audio 2.
aspect_ratio任意stringautoauto, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 1:1Output aspect ratio; auto adapts to the references.
resolution任意string768p480p, 768pOutput resolution. 768p costs more per second than 480p.
generation_mode任意stringspeedcost, speedcost is cheaper and slower, speed (the default) is faster at the same quality.
keep_reference_audio任意booleanfalse—Use the reference audio as the soundtrack instead of generating new sound. Needs exactly one audio clip.
duration_seconds任意integer55〜15Output length in whole seconds, from 5 to 15. Billed per second.
prompt_optimization_mode任意stringoffoff, turbo, maxLet the service rewrite and expand the prompt first: off follows it word for word, turbo is a quick rewrite, max a fuller one. Does not change the price.
seed任意integer—0〜2147483647Random seed for controlled comparisons, not a frame-identical guarantee.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "pruna-ai/p-video-2-pro/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",
    "duration_seconds": 5,
    "generation_mode": "speed",
    "resolution": "768p"
  }
}'

レスポンスにはすぐに 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"

AIアバター

pruna-ai/p-video-2-pro/talking-avatar

料金

オプションUSD
480p$0.02 出力 1 秒あたり
768p$0.04 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
image_url必須string (uri)——Portrait of the person who speaks (JPEG, PNG or WebP). The clip keeps this image's shape.
audio_url必須string (uri)——Speech or singing the portrait performs, 1 to 180 seconds. The clip is as long as this audio and keeps it as the soundtrack.
prompt任意string——Optional direction for movement, expression and framing.
resolution任意string768p480p, 768pOutput resolution. 768p costs more per second than 480p.
enable_prompt_expansion任意booleanfalse—Let the service expand your direction before generating. Off by default. Does not change the price.
seed任意integer—0〜2147483647Random seed for controlled comparisons, not a frame-identical guarantee.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

例の audio_url, 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": "pruna-ai/p-video-2-pro/talking-avatar",
  "input": {
    "prompt": "A bright, cheerful scene with soft natural light",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3",
    "resolution": "768p"
  }
}'

レスポンスにはすぐに 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"

次に読む

このページの内容