p-video-editdefaultP-Video Edit API — how to connect and pay
P-Video Edit (Pruna AI) — edit an existing video from a text instruction: replace an object, the background, the style or the lighting, with or without reference images (up to 4). Source video up to 15 seconds; the result is as long as the source. Draft mode is cheaper. Priced per second of source video.
Channel comparison
last 7 days
| Channel | Price |
|---|---|
Canvas p-video-editdefault | from $0.033333 / s |
Build the result you need
p-video-editWhat is P-Video Edit
P-Video Edit (Pruna AI) — edit an existing video from a text instruction: replace an object, the background, the style or the lighting, with or without reference images (up to 4). Source video up to 15 seconds; the result is as long as the source. Draft mode is cheaper. Priced per second of source video.
Contract at a glance
- Input
- video, image, text
- Output
- video
- Mode
- async (job + polling)
- Status polling
- every 3 s · up to 600 s
Strengths
- Pricing: per second
- Inputs: video, image, text
- One API key for media generation
Where it is used
- Social media clips
- Promos and title sequences
- Still-image animation
- Storyboards and animatics
API contract
Generation runs asynchronously: create a job, then poll its status until completion.
- Create job
- POST /api/media/generate
- Check status
- GET /api/media/jobs/{jobId}
- Input
- video, image, text
- Output
- video
- Polling
- every 3 s · up to 600 s
- Authentication
- Authorization: Bearer sk-pv-…
Example request
Pass your key in the Bearer header. The API returns jobId for polling the status.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"p-video-edit","prompt":"a beautiful landscape","opts":{"video_url":"https://example.com/video_url.mp4","draft":false}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "p-video-edit",
"prompt": "a beautiful landscape",
"opts": {
"video_url": "https://example.com/video_url.mp4",
"draft": false
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API request parameters
Parameters for requests to P-Video Edit via the GetVibe API.
promptreq.image_urlvideo_urldraftseedinput_urlsvideo_file_idvideo_base64input_file_idsinput_base64| Parameter | Type | Values | Default | Price |
|---|---|---|---|---|
promptreq. | text | text description | required | — |
image_url | URL | Public image URL | — | — |
video_url | URL | Public video URL | — | — |
draft | yes/no | Yes · No (default) | No | Yes: $0.033333, No: $0.06 |
seed | text / number | any value | — | Included in the base price |
input_urls | Array<URLs>, 0–4 items | Public HTTP(S) URLs | — | Included in the base price |
video_file_id | text | Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
video_base64 | text | Alternative to video_url: the file inline, as base64 or a data: URI | — | Included in the base price |
input_file_ids | Array<strings> | List of values | — | Included in the base price |
input_base64 | Array<strings> | List of values | — | Included in the base price |
Request: POST https://getvibeapi.com/api/media/generate. Prices in USD.
Price of P-Video Edit
The cost of P-Video Edit: from $0.033333 per second. The price is calculated dynamically at the current exchange rate, and the final charge is shown in the API response (priceRub). Payment in USD, no subscriptions.
What a default request costs
With no parameters sent, the request uses these values: Draft mode (cheaper, lower quality) — No. That request costs $0.06.
“from $0.033333” is the cheapest parameter set, not the price of a default request.
Channels and prices for every parameter combination
For every channel, the price of every parameter combination. It is exactly the amount a successful generation is charged, and the same figure as in the machine-readable table linked below.
Canvasp-video-editfrom $0.033333 / sexact prices
| Draft mode (cheaper, lower quality) | No | Yes |
|---|---|---|
| Canvas | $0.06 / s | $0.033333 / s |
Price per second of the generated video. The charge is this price × the actual length of the result.
Every combination as JSON: /api/media/price-table?model=p-video-edit
README
The machine-readable contract for P-Video Edit contains the request schema, operations, limits, polling and response examples.
# P-Video Edit
Public model: p-video-edit
Create job: POST /api/media/generate
Check status: GET /api/media/jobs/{jobId}
## Input parameters
- `prompt` (text): text description; default: required
- `image_url` (URL): Public image URL; default: —
- `video_url` (URL): Public video URL; default: —
- `draft` (yes/no): Yes · No (default); default: No
- `seed` (text / number): any value; default: —
- `input_urls` (Array<URLs>, 0–4 items): Public HTTP(S) URLs; default: —
- `video_file_id` (text): Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `video_base64` (text): Alternative to video_url: the file inline, as base64 or a data: URI; default: —
- `input_file_ids` (Array<strings>): List of values; default: —
- `input_base64` (Array<strings>): List of values; default: —
## Public variants
- `p-video-edit`: CanvasFAQ about the P-Video Edit API
How much does P-Video Edit cost?
The price of P-Video Edit: from $0.033333 per second. The price is calculated dynamically at the current exchange rate.
Is it compatible with the OpenAI SDK?
Yes, the API is fully OpenAI-compatible. Just change base_url to https://getvibeapi.com/v1 and set your key — the rest of the code stays the same.