Video Generation (Sync)
Endpoint: POST /video/{family}/{model}/{task}
Generate video with immediate response.
Image-to-Video (i2v)
Animate a still image with motion.
curl -X POST "https://sync.render.weyl.ai/video/wan/default/i2v?format=720p" \ -H "Authorization: Bearer $WEYL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "she slowly turns to face the camera", "image": "https://example.com/portrait.jpg", "duration": 3, "cfg": 7.0 }' \ -o output.mp4Parameters
Required:
prompt- Motion descriptionimage- Source image URL or data URI
Optional:
duration- Video length in seconds (0.5-10, default: 2)cfg- Guidance scale (6-8 for WAN)steps- Inference stepsseed- Random seed
Response
HTTP/1.1 200 OKContent-Type: video/mp4Content-Location: https://cdn.render.weyl.ai/v/xyz123.mp4
<video bytes>