
Six video transformations in one model: prompt editing, restyling, subject swap, motion transfer, upscaling, and generated sound effects.
Six video transformations in one model: prompt editing, restyling, subject swap, motion transfer, upscaling, and generated sound effects.
pixverse-edit/v1/videos/generationspixverse/editEmpirioLabs कैटलॉग से लाइव pay-as-you-go दरें। आप सिर्फ उतना ही भुगतान करते हैं जितना उपयोग करते हैं, कोई मासिक न्यूनतम नहीं।
Pixverse Edit POST /v1/videos/generations से चलता है। request तुरंत job_id देती है; job पूरा होने तक GET /v1/jobs/{job_id} को poll करें और परिणाम से आउटपुट URLs पढ़ें। EmpirioLabs डैशबोर्ड से API key प्राप्त करें।
curl https://api.empiriolabs.ai/v1/videos/generations \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "pixverse-edit",
"prompt": "Describe what you want Pixverse Edit to generate."
}'curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY"import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/videos/generations",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "pixverse-edit",
"prompt": "Describe what you want Pixverse Edit to generate.",
},
)
job = response.json()
# Generation runs as an async job. Poll until it completes.
import time
while True:
status = requests.get(
f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
).json()
if status.get("status") in ("completed", "failed"):
print(status)
break
time.sleep(5)EmpirioLabs पर Pixverse Edit API द्वारा समर्थित request पैरामीटर। फ़ील्ड छोड़ने पर डिफ़ॉल्ट मान लागू होते हैं।
| पैरामीटर | प्रकार | डिफॉल्ट | रेंज / मान | विवरण |
|---|---|---|---|---|
| mode | enum | modify | modify, restyle, swap, mimic, upscale, sound_effect | Which transformation to run. modify edits content from a prompt. restyle changes the visual style. swap replaces a subject with an uploaded image. mimic transfers... |
| prompt | string | - | - | Used by modify as the edit to make, by restyle as the target style, and by sound_effect as the sound to generate. Leave it empty on sound_effect to derive the sound... |
| resolution | enum | 540p | 360p, 540p, 720p | Output resolution for modify, mimic and swap. Restyle, upscale and sound_effect follow the source clip. |
| restyle_id | number | - | - | Optional preset id for restyle, as an alternative to a style prompt. |
| swap_target | string | - | - | Name of the detected subject to replace in swap mode, for example person or dog. Defaults to the first subject found in the keyframe. |
| keyframe_id | number | 1 | न्यूनतम 1 | Which frame of the source video swap mode reads its subjects from. Defaults to the first frame. |
| original_sound_switch | boolean | false | - | Keep the source clip audio underneath a generated sound effect. |
| seed | number | - | 0 से 2147483647 | Reproducibility seed for restyle. |
| video | string | - | - | Source video URL. Required for every mode. |
| image | string | - | - | Replacement image for swap, subject image for mimic, or up to 3 guidance images for modify. |
Six transformations that take an existing video and return a new one, selected with mode.
EmpirioLabs पर Pixverse Edit का बिल उपयोग के अनुसार बनता है: Modify 360p $0.16 per second; Modify 540p $0.20 per second; Modify 720p $0.24 per second। इस पेज की लाइव दर तालिका हमेशा API की वास्तविक बिलिंग से मेल खाती है।
Pixverse Edit api.empiriolabs.ai पर POST /v1/videos/generations के ज़रिए मिलता है, मानक Bearer टोकन प्रमाणीकरण के साथ।
हां। EmpirioLabs playground ब्राउज़र में Pixverse Edit को उन्हीं पैरामीटरों के साथ चलाता है जो API देता है, ताकि आप कोड लिखने से पहले prompt आज़मा सकें।
EmpirioLabs खाता बनाएं, फिर डैशबोर्ड में API Keys में key जनरेट करें। बिलिंग pay-as-you-go क्रेडिट से होती है, इसलिए आप सिर्फ अपनी requests का भुगतान करते हैं।
हमारे मूल्य निर्धारण की जाँच करें या यदि आप चाहते हैं कि आपका अपना मॉडल हमारे स्टैक पर तैनात किया जाए, तो पहुंचें।