body: '{"mode":"i2v","workflow":"wan2.2_i2v_14b_fp8","prompt":"a woman turning to face the camera, soft natural light, cinematic","character":"example","characters":[{"id":"example","role":"example","reference_image":"example","lora_strength":1}],"image":"projects/prj-xxx/scene-01-sht-xxx-image-v01_0001.png","audio":"voice/line-01.wav","video":"videos/motion-01.mp4","negative":"blurry, low quality","description":"The ridge shot, take 3 — the one where the light held","width":1,"height":1,"length":1,"fps":1,"seed":1,"filename_prefix":"videos/my_clip","steps_high":1,"steps_low":1,"cfg_high":1,"cfg_low":1,"shift":1,"sampler":"example","scheduler":"example","workflow_params":{},"provider":"local-gpu-1","submit":true}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
curl--requestPOST\
--urlhttps://example.com/api/video/generate\
--header'Authorization: Bearer <token>'\
--header'Content-Type: application/json'\
--data'{ "mode": "i2v", "workflow": "wan2.2_i2v_14b_fp8", "prompt": "a woman turning to face the camera, soft natural light, cinematic", "character": "example", "characters": [ { "id": "example", "role": "example", "reference_image": "example", "lora_strength": 1 } ], "image": "projects/prj-xxx/scene-01-sht-xxx-image-v01_0001.png", "audio": "voice/line-01.wav", "video": "videos/motion-01.mp4", "negative": "blurry, low quality", "description": "The ridge shot, take 3 — the one where the light held", "width": 1, "height": 1, "length": 1, "fps": 1, "seed": 1, "filename_prefix": "videos/my_clip", "steps_high": 1, "steps_low": 1, "cfg_high": 1, "cfg_low": 1, "shift": 1, "sampler": "example", "scheduler": "example", "workflow_params": {}, "provider": "local-gpu-1", "submit": true }'
Submit a single video generation job (t2v, i2v, or v2v).