p-video-2-prodefaultP-Video-2 Pro API — cara menghubungkan dan membayar
P-Video-2 Pro (Pruna AI) — versi senior P-Video-2: video dengan suara dari teks atau dari frame pertama dan terakhir, 5 hingga 15 detik, 480p atau 768p. Tiga mode: Cost (paling murah), Speed (cepat), dan Quality (kualitas terbaik). Harga dihitung per klip berdasarkan mode, resolusi, dan durasi.
Perbandingan kanal
7 hari terakhir
| Kanal | Harga |
|---|---|
Kanvas p-video-2-prodefault | mulai dari $0.066667 per clip |
Buat hasil yang Anda butuhkan
p-video-2-proApa itu P-Video-2 Pro
P-Video-2 Pro (Pruna AI) — versi senior P-Video-2: video dengan suara dari teks atau dari frame pertama dan terakhir, 5 hingga 15 detik, 480p atau 768p. Tiga mode: Cost (paling murah), Speed (cepat), dan Quality (kualitas terbaik). Harga dihitung per klip berdasarkan mode, resolusi, dan durasi.
Ringkasan kontrak
- Input
- text, image
- Output
- video
- Mode
- asinkron (pekerjaan + polling)
- Polling status
- setiap 3 d · hingga 600 d
Keunggulan
- Harga: per klip
- Input: teks, gambar
- 3 opsi yang dapat dikonfigurasi
- Satu kunci API untuk generasi media
Penggunaannya
- Klip media sosial
- Promo dan urutan judul
- Animasi gambar diam
- Storyboard dan animatik
Kontrak API
Generasi berjalan secara asinkron: buat pekerjaan, lalu lakukan polling status hingga selesai.
- Buat pekerjaan
- POST /api/media/generate
- Periksa status
- GET /api/media/jobs/{jobId}
- Input
- text, image
- Output
- video
- Polling
- setiap 3 d · hingga 600 d
- Autentikasi
- Authorization: Bearer sk-pv-…
Contoh request
Kirim key Anda dalam header Bearer. API mengembalikan jobId untuk melakukan polling 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-2-pro","prompt":"a beautiful landscape","opts":{"mode":"cost","duration":"5","resolution":"768p","aspect_ratio":"16:9"}}'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-2-pro",
"prompt": "a beautiful landscape",
"opts": {
"mode": "cost",
"duration": "5",
"resolution": "768p",
"aspect_ratio": "16:9"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);Parameter request API
Parameter untuk request ke P-Video-2 Pro melalui GetVibe API.
promptwajibimage_urlmodedurationresolutionaspect_ratiolast_frame_urlseedimage_file_idimage_base64last_frame_file_id| Parameter | Jenis | Nilai | Default | Harga |
|---|---|---|---|---|
promptwajib | text | text description | required | — |
image_url | URL | Public image URL | — | — |
mode | option selection | Cost · Speed (default) · Quality | Kecepatan | Cost: $0.166667, Speed: $0.233333, Quality: $0.50 |
duration | option selection | 5 (default) · 8 · 10 · 12 · 15 | 5 | 5: $0.233333, 8: $0.373333, 10: $0.466667, 12: $0.56, 15: $0.70 |
resolution | option selection | 480p · 768p (default) | 768p | 480p: $0.133333, 768p: $0.233333 |
aspect_ratio | option selection | 16:9 (default) · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1 | 16:9 | Included in the base price |
last_frame_url | text / number | any value | — | Included in the base price |
seed | text / number | any value | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
last_frame_file_id | text | Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
Request: POST https://getvibeapi.com/api/media/generate. Harga dalam USD.
Harga P-Video-2 Pro
Biaya P-Video-2 Pro: dari $0.066667 per clip. Harga dihitung secara dinamis berdasarkan nilai tukar saat ini, dan biaya akhir ditampilkan dalam respons API (priceRub). Pembayaran dalam USD, tanpa langganan.
Biaya request default
Tanpa parameter yang dikirim, request menggunakan nilai berikut: Duration — 5, Resolution — 768p, Mode — Speed, Frame format — 16:9. Request tersebut berharga $0.233333.
“from $0.066667” adalah set parameter termurah, bukan harga request default.
Saluran dan harga untuk setiap kombinasi parameter
Untuk setiap saluran, harga setiap kombinasi parameter. Jumlahnya sama persis dengan biaya untuk satu generasi yang berhasil, dan sama dengan angka dalam tabel yang dapat dibaca mesin yang ditautkan di bawah.
Kanvasp-video-2-promulai dari $0.066667harga pasti
| Mode · Resolusi \ Durasi, detik | 5 dtk | 8 dtk | 10 dtk | 12 dtk | 15 dtk |
|---|---|---|---|---|---|
| Cost · 480p | $0.066667 | $0.106667 | $0.133333 | $0.16 | $0.20 |
| Cost · 768p | $0.166667 | $0.266667 | $0.333333 | $0.40 | $0.50 |
| Speed · 480p | $0.133333 | $0.213333 | $0.266667 | $0.32 | $0.40 |
| Speed · 768p | $0.233333 | $0.373333 | $0.466667 | $0.56 | $0.70 |
| Quality · 480p | $0.266667 | $0.426667 | $0.533333 | $0.64 | $0.80 |
| Quality · 768p | $0.50 | $0.80 | $1.00 | $1.20 | $1.50 |
Setiap kombinasi dalam JSON: /api/media/price-table?model=p-video-2-pro
README
Kontrak yang dapat dibaca mesin untuk P-Video-2 Pro berisi skema request, operasi, batasan, polling, dan contoh respons.
# P-Video-2 Pro
Model publik: p-video-2-pro
Buat pekerjaan: POST /api/media/generate
Periksa status: GET /api/media/jobs/{jobId}
## Parameter input
- `prompt` (text): text description; default: required
- `image_url` (URL): Public image URL; default: —
- `mode` (option selection): Cost · Speed (default) · Quality; default: Speed
- `duration` (option selection): 5 (default) · 8 · 10 · 12 · 15; default: 5
- `resolution` (option selection): 480p · 768p (default); default: 768p
- `aspect_ratio` (option selection): 16:9 (default) · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1; default: 16:9
- `last_frame_url` (text / number): any value; default: —
- `seed` (text / number): any value; default: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; default: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); default: —
## Varian publik
- `p-video-2-pro`: CanvasFAQ tentang API P-Video-2 Pro
Berapa biaya P-Video-2 Pro?
Harga P-Video-2 Pro: dari $0.066667 per clip. Harga dihitung secara dinamis berdasarkan nilai tukar saat ini.
Apakah kompatibel dengan OpenAI SDK?
Ya, API ini sepenuhnya kompatibel dengan OpenAI. Cukup ubah base_url menjadi https://getvibeapi.com/v1 dan atur key Anda — kode lainnya tetap sama.
Hubungkan P-Video-2 Pro sekarang
Daftar dalam satu menit, bayar sesuai penggunaan, dengan kode siap pakai di atas.
Dapatkan kunci API