Video generation
Seedance, Wan, HappyHorse, MiniMax and Oxygen, charged per second.
Steps
01
Start a job
POST /v1/videos returns an id immediately.
02
Poll it
GET /v1/videos/{id} every 10, 15 seconds.
03
Download
GET /v1/videos/{id}/content returns the MP4.
bash
# 1. start
curl https://api.luxechain.si/v1/videos \
-H "Authorization: Bearer lxc_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"wan-3.0","prompt":"waves on a beach at sunset","seconds":5,"resolution":"720p"}'
# 2. poll until status is "completed"
curl https://api.luxechain.si/v1/videos/JOB_ID \
-H "Authorization: Bearer lxc_live_YOUR_KEY"
# 3. download
curl https://api.luxechain.si/v1/videos/JOB_ID/content \
-H "Authorization: Bearer lxc_live_YOUR_KEY" -o out.mp4
Video is the most expensive modality. A 5-second 720p Wan clip costs a few hundred credits, check the rate table before batch-generating.