p-video-2डिफ़ॉल्टP-Video-2 API — कनेक्ट और भुगतान कैसे करें
P-Video-2 (Pruna AI) — पाठ या पहले फ़्रेम से ध्वनि सहित तेज़, कम लागत वाला वीडियो (अंतिम फ़्रेम भी सेट किया जा सकता है)। 720p या 1080p, 2 से 20 सेकंड, 7 पक्षानुपात। जल्दी आज़माने के लिए प्रारूप मोड की कीमत आधी है। आप तैयार ऑडियो ट्रैक (audio_url) भेज सकते हैं: वीडियो उसके अनुसार बनाया जाता है, क्लिप की अवधि ट्रैक जितनी होती है और कीमत उसके प्रत्येक सेकंड के हिसाब से तय होती है। प्रत्येक क्लिप की कीमत रिज़ॉल्यूशन, मोड और अवधि के आधार पर तय होती है।
चैनल तुलना
पिछले 7 दिन
| चैनल | कीमत |
|---|---|
Canvas p-video-2डिफ़ॉल्ट | $0.04 से शुरू per clip |
अपनी ज़रूरत का परिणाम बनाएँ
p-video-2P-Video-2 क्या है
P-Video-2 (Pruna AI) — पाठ या पहले फ़्रेम से ध्वनि सहित तेज़, कम लागत वाला वीडियो (अंतिम फ़्रेम भी सेट किया जा सकता है)। 720p या 1080p, 2 से 20 सेकंड, 7 पक्षानुपात। जल्दी आज़माने के लिए प्रारूप मोड की कीमत आधी है। आप तैयार ऑडियो ट्रैक (audio_url) भेज सकते हैं: वीडियो उसके अनुसार बनाया जाता है, क्लिप की अवधि ट्रैक जितनी होती है और कीमत उसके प्रत्येक सेकंड के हिसाब से तय होती है। प्रत्येक क्लिप की कीमत रिज़ॉल्यूशन, मोड और अवधि के आधार पर तय होती है।
अनुबंध एक नज़र में
- इनपुट
- text, image, audio
- आउटपुट
- video
- मोड
- असिंक्रोनस (जॉब + पोलिंग)
- स्टेटस पोलिंग
- हर 3 सेकंड · अधिकतम 600 सेकंड तक
खूबियाँ
- Pricing: प्रति clip
- इनपुट: टेक्स्ट, इमेज, ऑडियो
- 7 विन्यास योग्य विकल्प
- media generation के लिए एक API key
इसका उपयोग कहाँ किया जाता है
- सोशल मीडिया क्लिप
- प्रचार सामग्री और शीर्षक अनुक्रम
- स्थिर-चित्र एनीमेशन
- स्टोरीबोर्ड और एनिमैटिक
API अनुबंध
जनरेशन असिंक्रोनस रूप से चलता है: जॉब बनाएँ, फिर पूरा होने तक उसका स्टेटस पोल करें।
- जॉब बनाएँ
- POST /api/media/generate
- स्टेटस जाँचें
- GET /api/media/jobs/{jobId}
- इनपुट
- text, image, audio
- आउटपुट
- video
- पोलिंग
- हर 3 सेकंड · अधिकतम 600 सेकंड तक
- प्रमाणीकरण
- Authorization: Bearer sk-pv-…
अनुरोध का उदाहरण
अपनी कुंजी Bearer हेडर में भेजें। API स्टेटस पोल करने के लिए jobId लौटाता है।
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","prompt":"a beautiful landscape","opts":{"duration":"5","resolution":"720p","draft":false,"aspect_ratio":"16:9","save_audio":true}}'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",
"prompt": "a beautiful landscape",
"opts": {
"duration": "5",
"resolution": "720p",
"draft": false,
"aspect_ratio": "16:9",
"save_audio": true
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API अनुरोध पैरामीटर
GetVibe API के माध्यम से P-Video-2 के अनुरोधों के लिए पैरामीटर।
promptआवश्यकimage_urlaudio_urldurationresolutiondraftaspect_ratiolast_frame_urlsave_audioseedimage_file_idimage_base64last_frame_file_idaudio_file_idaudio_base64| पैरामीटर | प्रकार | मान | डिफ़ॉल्ट | कीमत |
|---|---|---|---|---|
promptआवश्यक | text | text description | required | — |
image_url | URL | Public image URL | — | — |
audio_url | URL | Public audio URL | — | — |
duration | option selection | 2 · 3 · 5 (default) · 8 · 10 · 15 · 20 | 5 | 2: $0.08, 3: $0.12, 5: $0.20, 8: $0.32, 10: $0.40, 15: $0.60, 20: $0.80 |
resolution | option selection | 720p (default) · 1080p | 720p | 720p: $0.20, 1080p: $0.40 |
draft | yes/no | Yes · No (default) | नहीं | Yes: $0.10, No: $0.20 |
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 |
save_audio | yes/no | Yes (default) · No | हाँ | 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 |
audio_file_id | text | Alternative to audio_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
audio_base64 | text | Alternative to audio_url: the file inline, as base64 or a data: URI | — | Included in the base price |
अनुरोध: POST https://getvibeapi.com/api/media/generate। कीमतें USD में।
P-Video-2 की कीमत
P-Video-2 की लागत: से $0.04 per clip. कीमत की गणना वर्तमान विनिमय दर पर गतिशील रूप से की जाती है और अंतिम शुल्क API प्रतिक्रिया में दिखाया जाता है (priceRub)। भुगतान USD में, कोई सदस्यता नहीं।
डिफ़ॉल्ट अनुरोध की कीमत
कोई पैरामीटर न भेजने पर, अनुरोध इन मानों का उपयोग करता है: Duration — 5, Resolution — 720p, Draft mode (cheaper, lower quality) — No, Frame format — 16:9। उस अनुरोध की कीमत $0.20 है।
“$0.04 से” सबसे सस्ता पैरामीटर सेट है, डिफ़ॉल्ट अनुरोध की कीमत नहीं।
हर पैरामीटर संयोजन के लिए चैनल और कीमतें
हर चैनल के लिए, हर पैरामीटर संयोजन की कीमत। सफल जनरेशन पर लिया जाने वाला शुल्क ठीक इतना ही है और नीचे दिए गए मशीन-पठनीय टेबल में भी यही राशि है।
Canvasp-video-2$0.04 से शुरूसटीक कीमतें
| रिज़ॉल्यूशन · ड्राफ्ट मोड (सस्ता, कम गुणवत्ता) \ अवधि, सेकंड | 2 सेकंड | 3 सेकंड | 5 सेकंड | 8 सेकंड | 10 सेकंड | 15 सेकंड | 20 सेकंड |
|---|---|---|---|---|---|---|---|
| 720p · No | $0.08 | $0.12 | $0.20 | $0.32 | $0.40 | $0.60 | $0.80 |
| 720p · Yes | $0.04 | $0.06 | $0.10 | $0.16 | $0.20 | $0.30 | $0.40 |
| 1080p · No | $0.16 | $0.24 | $0.40 | $0.64 | $0.80 | $1.20 | $1.60 |
| 1080p · Yes | $0.08 | $0.12 | $0.20 | $0.32 | $0.40 | $0.60 | $0.80 |
हर संयोजन JSON के रूप में: /api/media/price-table?model=p-video-2
README
P-Video-2 के मशीन-पठनीय अनुबंध में अनुरोध स्कीमा, ऑपरेशन, सीमाएँ, पोलिंग और प्रतिक्रिया के उदाहरण शामिल हैं।
# P-Video-2
सार्वजनिक मॉडल: p-video-2
जॉब बनाएँ: POST /api/media/generate
स्टेटस जाँचें: GET /api/media/jobs/{jobId}
## इनपुट पैरामीटर
- `prompt` (text): text description; डिफ़ॉल्ट: required
- `image_url` (URL): Public image URL; डिफ़ॉल्ट: —
- `audio_url` (URL): Public audio URL; डिफ़ॉल्ट: —
- `duration` (option selection): 2 · 3 · 5 (default) · 8 · 10 · 15 · 20; डिफ़ॉल्ट: 5
- `resolution` (option selection): 720p (default) · 1080p; डिफ़ॉल्ट: 720p
- `draft` (yes/no): Yes · No (default); डिफ़ॉल्ट: No
- `aspect_ratio` (option selection): 16:9 (default) · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 1:1; डिफ़ॉल्ट: 16:9
- `last_frame_url` (text / number): any value; डिफ़ॉल्ट: —
- `save_audio` (yes/no): Yes (default) · No; डिफ़ॉल्ट: Yes
- `seed` (text / number): any value; डिफ़ॉल्ट: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); डिफ़ॉल्ट: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; डिफ़ॉल्ट: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); डिफ़ॉल्ट: —
- `audio_file_id` (text): Alternative to audio_url: the id of your own file from POST /v1/files (file-pv-…); डिफ़ॉल्ट: —
- `audio_base64` (text): Alternative to audio_url: the file inline, as base64 or a data: URI; डिफ़ॉल्ट: —
## सार्वजनिक वेरिएंट
- `p-video-2`: CanvasP-Video-2 API के बारे में सामान्य प्रश्न
P-Video-2 की कीमत कितनी है?
P-Video-2 की कीमत: से $0.04 per clip। कीमत की गणना वर्तमान विनिमय दर पर गतिशील रूप से की जाती है।
क्या यह OpenAI SDK के साथ संगत है?
हाँ, API पूरी तरह OpenAI-संगत है। बस base_url को https://getvibeapi.com/v1 में बदलें और अपनी कुंजी सेट करें — बाकी कोड वैसा ही रहता है।
अभी P-Video-2 कनेक्ट करें
एक मिनट में साइन अप करें, उपयोग के अनुसार भुगतान करें, ऊपर तैयार कोड उपलब्ध है।
API कुंजी प्राप्त करें