Skip to main content

Video to motion

Convert 2D video files into high-quality 3D character animations. Video-to-motion is perfect for extracting motion from existing video content and applying it to your 3D characters.

Learn more about Video to motion.

Videos can be up to 200 MiB. Organizations without an active payment method or agreement are limited to 50 MiB. The API enforces the limit before video processing, storage, or job submission. Read your current limit from org.upload_limits (category video); the job records the original upload size in bytes. Python and JavaScript clients enforce a 200 MiB maximum; the API applies your organization’s lower limit.

Overview​

Video-to-motion processes video files asynchronously. Unlike text-to-motion, video-to-motion returns a job that you'll need to poll to check when processing is complete.

Duplicate uploads: If you upload the same video file while a job for that file is already running, or if it was successfully processed in the last 24 hours or failed in the last hour, the API returns the existing job instead of throwing an error. Use the returned job ID to poll for status as usual.

Available models: Pass an optional model parameter to select the model. The default is video-to-motion-3.0. To keep an earlier model, pass it by name.

  • video-to-motion-3.0 – Uthana's flagship video-to-motion model. Reduces foot sliding and improves hand and finger quality.
  • video-to-motion-2.1 – Includes post-processing refinements. Returns refined motion IDs rather than the base motion.
  • video-to-motion-2.0 – Returns a single base motion.
  • video-to-motion-v2 – Alias for video-to-motion-2.0, accepted for backward compatibility.
Model removed

video-to-motion-v1 is no longer available. The deprecation deadline of 30 Apr 2026 has passed. Use video-to-motion-2.0 instead.

Step-by-step tutorial​

Step 1: Set up the client​

Install your client library and authenticate using your API key. See the quickstart for setup instructions for each language.

Step 2: Prepare your video file​

Choose a video of you or someone else performing the motion you want to create. The video should be a single, continuous shot, with movement clearly visible and centered in the frame.

Video requirements:

  • Supported formats: .mp4, .mov, .avi
  • Video parameters: Up to 1,902 processing frames and up to 120 source FPS. The default processing rate is capped at 30 FPS.
  • Camera: Use a stable, flat surface or tripod
  • Framing: Keep your whole body in view
  • Start position: Begin standing with both feet on the ground
  • Subject: Ensure only one person is in the video
  • Clothing: Wear well-fitting, distinct colors
  • Background: Plain, contrasting, and well-lit
  • Lighting: Avoid direct sunlight or harsh shadows

Trim a clip​

In the web app, choose a video, set its start and end, and review the estimated price before clicking Create. The uploaded source can be longer than the generated clip, within your organization's upload size limit.

In a GraphQL request, pass a VideoTrimInput as the optional trim argument to create_video_to_motion.

Clip selectionFields
Seconds from start to endstart_seconds and end_seconds
Seconds from start for a durationstart_seconds and duration_seconds
Source frames from start to endstart_frame and end_frame
Source frames from start for a countstart_frame and frame_count

For example, {start_seconds: 4, duration_seconds: 8} generates from the 4-second mark through the 12-second mark. The start is inclusive and the end is exclusive. Frame zero is the first displayed source frame. Omit trim to use the full source.

The selected clip must fit within 1,902 processing frames. At 30 FPS that is 63.4 seconds. With preserve_video_fps enabled, the limit uses the source FPS. The API returns VideoLengthExceeded with the submitted duration, source and processing FPS, and the maximum duration and frame count. It creates no generation job for an oversized clip. Billing uses the generated motion duration.

Step 3: Upload video and create motion​

curl -X POST https://uthana.com/graphql \
  -u $API_KEY: \
  -F 'operations={
    "query": "mutation ($file: Upload!, $motion_name: String!, $model: String) { create_video_to_motion(file: $file, motion_name: $motion_name, model: $model) { job { id status } } }",
    "variables": { "file": null, "motion_name": "My Video Motion", "model": "video-to-motion-3.0" }
  }' \
  -F 'map={ "0": ["variables.file"] }' \
  -F '0=@'"$VIDEO_FILE"

Step 4: Poll for job completion​

Video-to-motion processing happens asynchronously. Poll the job status until it's complete.

JOB_ID="your-job-id"

# Poll until job is complete
while true; do
  RESPONSE=$(curl -s https://uthana.com/graphql \
    -u $API_KEY: \
    -H "Content-Type: application/json" \
    -d "{\"query\": \"query { job(job_id: \\\"$JOB_ID\\\") { id status result } }\"}")

  STATUS=$(echo "$RESPONSE" | jq -r '.data.job.status')
  echo "Job status: $STATUS"

  if [ "$STATUS" = "FINISHED" ] || [ "$STATUS" = "FAILED" ]; then
    break
  fi

  sleep 5  # Wait 5 seconds before checking again
done

# Get the final result
echo "$RESPONSE" | jq '.data.job'

Step 5: Download your motion​

Once the job is finished, extract the motion ID from the result and download it.

CHARACTER_ID="cXi2eAP19XwQ"  # Default character, or use your own
MOTION_ID=$(echo "$RESPONSE" | jq -r '.data.job.result.result.id')

# Download as FBX (filename is customizable)
curl -L "https://uthana.com/motion/file/motion_viewer/$CHARACTER_ID/$MOTION_ID/fbx/motion.fbx" \
  -u $API_KEY: \
  -o motion.fbx

Job statuses​

  • RESERVED: Job has been created and is waiting to start
  • READY: Job is ready to be processed
  • FINISHED: Job completed successfully
  • FAILED: Job failed (check the result field for error details)

Error handling​

Video-to-motion processing has a 10-minute execution limit, excluding queue wait. A GPU out-of-memory error or execution timeout fails the job without an automatic retry. The exact input file is then blocked from further video-to-motion processing across accounts and model versions until an operator reviews it. Renaming the file does not bypass this protection. Try a shorter or simpler clip instead. The same protection applies to the video-processing stage of Text-to-Motion 3.

if [ "$STATUS" = "FAILED" ]; then
    echo "Job failed:"
    echo "$RESPONSE" | jq '.data.job.result'
fi

Next steps​

  • Learn about Text to motion for generating animations from text
  • Learn about Locomotion for predictable, looptable movement with explicit direction, speed, and style
  • Explore Retargeting to apply motions to custom characters
  • Check the API reference for complete schema documentation