About P-Video 2 Pro
5 to 15 second clips with sound from text, frames or reference clips.
Call it with the model name pruna-ai/p-video-2-pro/text-to-video on POST /jobs/createTask, from $0.06.
Request parameters
| Parameter | Required | Description |
|---|---|---|
seed | No | Reuse the same number to get a repeatable result. ≥ 0 · ≤ 2147483647 |
prompt | Yes | Describe the scene, the action, the camera and the sound. Put spoken lines in quotes. |
resolution | No | Output size. Bigger sizes look sharper and cost more. 480p · 768p · Default: 768p |
aspect_ratio | No | The shape of the frame: wide, square or tall. 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1 · Default: 16:9 |
generation_mode | No | cost is the cheapest and slower, speed (the default) is faster at the same quality, quality renders a higher-quality clip at a higher price. cost · speed · quality · Default: speed |
duration_seconds | No | How long the clip runs. You pay per second. ≥ 5 · ≤ 15 · Default: 5 |
prompt_optimization_mode | No | Let 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. off · turbo · max · Default: off |
Pricing
Prices are in USD. The API uses a separate USD balance. Website credits cannot be used or transferred to it, and API funds cannot be transferred to website credits. When a task is accepted, we reserve the maximum quoted amount from your API balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| generation_mode cost · resolution 480p | $0.012 |
| generation_mode speed · resolution 480p | $0.024 |
| generation_mode cost · resolution 768p | $0.03 |
| generation_mode speed · resolution 768p | $0.042 |
| generation_mode quality · resolution 480p | $0.048 |
| generation_mode quality · resolution 768p | $0.09 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
API quick start
Call the P-Video 2 Pro API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls use your separate USD balance.
- Send the request. POST /jobs/createTask with model pruna-ai/p-video-2-pro/text-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 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": "pruna-ai/p-video-2-pro/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "16:9",
"resolution": "768p",
"generation_mode": "speed",
"duration_seconds": 5
}
}'
# 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"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
P-Video 2 Pro API questions
How much does the P-Video 2 Pro API cost?
P-Video 2 Pro starts at $0.06 for a 5-second clip with Create Video, its cheapest task. Prices by option: cost · 480p $0.012 per second, speed · 480p $0.024 per second, cost · 768p $0.03 per second, speed · 768p $0.042 per second. The API uses a separate USD balance. Website credits cannot be used or transferred to it, and API funds cannot be transferred to website credits. When a task is accepted, we reserve the maximum quoted amount from your API balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for P-Video 2 Pro in the API?
Put pruna-ai/p-video-2-pro/text-to-video for Create Video; pruna-ai/p-video-2-pro/image-to-video for Image to Video; pruna-ai/p-video-2-pro/reference-to-video for Reference to Video in the model field of POST /jobs/createTask.
What are the limits of the P-Video 2 Pro API?
Clip length: 5–15 s; Resolutions: 480p · 768p; Aspect ratios: 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1. Requests outside these limits are rejected before anything is charged.
