Loading...
Loading...
Wan 2.6 reference-to-video via PixelByte
Pay only for what you use. No minimums.
Sign in to run models
No output yet
Run the model to see generated results.
import requests
result = requests.post(
'https://api.muvi.video/v1/jobs/submit',
headers={
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json'
},
json={
'model': 'alibaba-plus/wan-2.6/reference-to-video',
'input': {
'video_urls': [],
'aspect_ratio': '16:9',
'resolution': '1080p',
'enable_prompt_expansion': True,
'multi_shots': True,
'enable_safety_checker': True,
'duration': '5'
}
}
)import time
job_id = result.json()['jobId']
while True:
response = requests.get(
f'https://api.muvi.video/v1/jobs/{'{job_id}'}',
headers={'Authorization': f'Bearer {'{API_KEY}'}'}
)
data = response.json()['data']
if data['status'] == 'completed':
print('Done!', data['outputs'][0]['url'])
break
elif data['status'] == 'failed':
raise Exception(f"Job failed: {'{'}data['error']['message']{'}'}")
time.sleep(2)Estimated cost per generation by duration and resolution. You only pay for what you run.