Skip to content

Motion

POST /motion/projects {"title": "Office dance"}
POST /motion/projects/{id}/assets?kind=photo multipart "file" 1 to 3 photos, whole body in view
POST /motion/projects/{id}/assets?kind=video multipart "file" the driving video, 1.5 s to 10 min
PATCH /motion/projects/{id} {"setup": {...}}

The setup:

{"setup": {
"cast": ["<photo id, left to right>"],
"motion": {"source": "upload", "asset_id": "<video id>"},
"mode": "animate",
"start": 0, "seconds": 8, "aspect": "9:16",
"resolution": 512,
"prompt": "optional scene note"
}}
  • mode: animate (the photo’s scene) or replace (the video’s scene). aspect: empty for the video’s, or 9:16, 16:9, 1:1. resolution: 512 or 704.
  • Templates: GET /motion/templates, then "motion": {"source": "template", "template_id": "<id>"}.
  • Moves in words (one person): "motion": {"source": "text", "timeline": [{"prompt": "walks in and waves", "seconds": 4}]}, then POST /motion/projects/{id}/motions and render once that job is done.
POST /motion/projects/{id}/quote {"kind": "check" | "full" | "motion"} {"kind", "seconds", "credits"}
POST /motion/projects/{id}/takes {"kind": "check"}
POST /motion/projects/{id}/takes {"kind": "full", "seed": <the check's seed>}

A check renders the first 5 seconds to see the look cheaply.

GET /motion/projects/{id} {"project", "assets", "jobs": [{"id", "kind", "status", "error"}]}
GET /motion/media/jobs/{job_id} 302 to the mp4, valid for an hour
POST /motion/jobs/{job_id}/cancel

Read it every 60 seconds or more. An idle machine can take up to an hour to wake; once warm, a 5 second check takes a few minutes. A take holds its exact price when it starts and a failed or cancelled take gives it back. One take at a time per project.

Use photos of people who agreed to it, or of people you made up. No sexual content, and nothing that passes off a real person as saying or doing something they did not.