Skip to content

Create Video Task ​

POST /v1/videos

bash
curl https://api.layso.ai/v1/videos \
  -H "Authorization: Bearer $LAYSO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "video-model-id",
    "prompt": "A slow camera move through a futuristic city at night"
  }'

model and prompt are the core inputs. Duration, aspect ratio, resolution, and reference-image fields depend on the selected model. Save the returned task ID and use it to retrieve status.

LAYSO AI API 文档