Motion
POST /motion/projects {"title": "Office dance"}POST /motion/projects/{id}/assets?kind=photo multipart "file" 1 to 3 photos, whole body in viewPOST /motion/projects/{id}/assets?kind=video multipart "file" the driving video, 1.5 s to 10 minPATCH /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) orreplace(the video’s scene).aspect: empty for the video’s, or9: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}]}, thenPOST /motion/projects/{id}/motionsand render once that job is done.
Price and render
Section titled “Price and render”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.
Wait and fetch
Section titled “Wait and fetch”GET /motion/projects/{id} {"project", "assets", "jobs": [{"id", "kind", "status", "error"}]}GET /motion/media/jobs/{job_id} 302 to the mp4, valid for an hourPOST /motion/jobs/{job_id}/cancelRead 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.
