Skip to main content
POST
/
v1
/
jobs
/
lucy-motion
Lucy Motion
const form = new FormData();
form.append('data', '<string>');
form.append('trajectory', '<string>');

const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};

options.body = form;

fetch('https://api.decart.ai/v1/jobs/lucy-motion', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

API key for authentication

User-Agent
string | null

Body

multipart/form-data
data
file
required

Image file to process

trajectory
string
required

Trajectory JSON string (array of {frame, x, y} objects). Coordinates (x, y) are normalized values in the 0-1 range.

seed
integer

Seed for the video generation

Required range: 0 <= x <= 4294967295
resolution
string
default:720p

Resolution of the video

Allowed value: "720p"

Response

Successful Response