lowpoly retires Oct 30, 2026. meshy-7 for 3D generation retires Dec 31, 2026; as a texture model it stays available. Please switch models before these dates to avoid request errors. See all deprecations

API v1 stops working on March 15, 2027. View this page for v2 · Migrate to v2

Video to Motion API

Turn a video of a person moving into a motion clip. Send the video, and get a GLB clip of the same movement, as long as the video.

The output is a standalone motion clip. It doesn't need a character model, and it isn't attached to one. To rig a character first, see the Rigging API. To apply a clip to your rigged character, send the task id as motion_task_id to the Animation API.


POST/openapi/v1/video-to-motion

Create a Video to Motion task

Creates a Video to Motion task, which reads the motion of the person in a video into a motion clip.

Meshy downloads and checks the video while it handles your request, so a video it can't use returns 400 before Meshy creates a task. The task then runs in the background, as described in Task lifecycle.

The video must meet all of these requirements:

  • File: an MP4, MOV, or AVI file of at most 200 MB (200,000,000 bytes)
  • Video codec: H.264, HEVC, MPEG-4, or Motion JPEG
  • Length: 2 to 60 seconds
  • Frame rate: 24 to 120 frames per second
  • Resolution: each side 300 to 4,096 pixels

For the best clip, film one person whose whole body stays in the frame.

A task costs 5 credits for each second of video, rounded to the nearest credit. For example, a 2.5-second video costs 13 credits. Meshy charges the credits when it creates the task, and refunds them if the task fails. See Pricing.

When the task succeeds or fails, Meshy deletes your video. The motion clip stays with the task, like other task files. See Asset retention.

Request

POST
/openapi/v1/video-to-motion
# Read the motion from a video at a public URL
curl https://api.meshy.ai/openapi/v1/video-to-motion \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "video_url": "https://example.com/videos/dance.mp4"
  }'

# Send a local MP4 file as a data URI
{ printf '{"video_url": "data:video/mp4;base64,'; base64 < dance.mp4 | tr -d '\n'; printf '"}'; } |
  curl https://api.meshy.ai/openapi/v1/video-to-motion \
    -X POST \
    -H "Authorization: Bearer ${YOUR_API_KEY}" \
    -H 'Content-Type: application/json' \
    --data-binary @-

Response

{
  "result": "019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24"
}

Parameters

  • Name
    video_url
    Type
    string
    Required
    Description

    The video, as a public http or https URL or a base64 data URI, such as data:video/mp4;base64,.... A data URI's media type must be video/* or application/octet-stream. Either way, the file can be at most 200 MB. A video that Meshy can't download, or that's outside the preceding requirements, returns 400.

Returns

202 Accepted. The result field of the response holds the ID of the new Video to Motion task.

Failure modes

  • Name
    400 - Bad Request
    Description

    The request can't run. The error message says which problem it found. For example:

    • Missing video: video_url is missing or empty. The message is video_url is required.
    • Download failed: Meshy couldn't download video_url. The message is Could not download video_url. Make the URL publicly readable, or send the file as a data URI.
    • Invalid data URI: video_url isn't a valid base64 data URI, or its media type isn't video/* or application/octet-stream.
    • Unsupported file: The file isn't an MP4, MOV, or AVI file, or Meshy can't read its video. For example, the message is Unsupported video; send an MP4, MOV or AVI file.
    • File too large: The file is larger than 200 MB. The message is The video is too large; a video is at most 200 MB.
    • Video outside the limits: The video's codec, length, frame rate, or resolution is outside the requirements. The message names the limit, for example The video runs 1.5 s; it must run 2 to 60 s.

    Fix the request, then send it again. See Errors.

  • Name
    401 - Unauthorized
    Description

    The API key is missing or invalid. Check the Authorization header.

  • Name
    402 - Payment Required
    Description

    For example:

    • Insufficient credits: The account doesn't have enough credits for this video, or the account reached a credit limit. Check your credit balance, then retry.
    • Free plan: Creating a task requires a paid plan. Upgrade your plan in your subscription settings, then retry.
  • Name
    403 - Forbidden
    Description

    Content moderation blocked the video. The message is explicit content. Send a different video.

  • Name
    429 - Too Many Requests
    Description

    For example:

    • Video processing is busy: Meshy is checking too many videos. The message is Video processing is busy; try again shortly. Wait a few seconds, then retry.
    • Rate limit: You exceeded your rate limit, or you have too many pending tasks. Wait, then retry. See Rate limits.

Meshy charges nothing for a request that returns an error. A task that Meshy created can still fail. For the reasons, see task_error in the Video to Motion task object.


GET/openapi/v1/video-to-motion/:id

Get a Video to Motion task

Returns a Video to Motion task by its ID.

Request

GET
/openapi/v1/video-to-motion/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24
curl https://api.meshy.ai/openapi/v1/video-to-motion/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"

Response

{
  "id": "019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24",
  "type": "video-to-motion",
  "name": "",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1796083214512,
  "started_at": 1796083216813,
  "finished_at": 1796083288293,
  "expires_at": 1796342488293,
  "task_error": null,
  "result": {
    "motion_url": "https://assets.meshy.ai/0630d47c-84b8-4d37-bc02-69e45d9272c1/tasks/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24/output/clip.glb?Expires=...",
    "motion_format": "glb",
    "duration_ms": 4200
  },
  "consumed_credits": 21
}

Parameters

  • Name
    id
    Type
    path
    Description

    The task ID from the create response.

Returns

The Video to Motion task object.


GET/openapi/v1/video-to-motion

List Video to Motion tasks

Returns a list of your Video to Motion tasks, newest first unless you set sort_by.

Tasks you create with the API stay in the API and don't appear in My Assets in the web app. To find a task whose ID you no longer have, use this endpoint.

Request

GET
/openapi/v1/video-to-motion
curl https://api.meshy.ai/openapi/v1/video-to-motion?page_size=10 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"

Response

[
  {
    "id": "019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24",
    "type": "video-to-motion",
    "name": "",
    "status": "SUCCEEDED",
    "progress": 100,
    "created_at": 1796083214512,
    "started_at": 1796083216813,
    "finished_at": 1796083288293,
    "expires_at": 1796342488293,
    "task_error": null,
    "result": {
      "motion_url": "https://assets.meshy.ai/.../output/clip.glb?Expires=...",
      "motion_format": "glb",
      "duration_ms": 4200
    },
    "consumed_credits": 21
  }
]

Parameters

  • Name
    page_num
    Type
    integer
    default 1
    Description

    The page number to return, starting at 1.

  • Name
    page_size
    Type
    integer
    default 10
    Description

    The number of tasks per page, up to 100.

  • Name
    sort_by
    Type
    string
    Description

    The sort order.

    Available values:

    • +created_at: oldest first
    • -created_at: newest first

Returns

A list of Video to Motion task objects. An empty page is an empty array.


GET/openapi/v1/video-to-motion/:id/stream

Stream a Video to Motion task

Streams a Video to Motion task's updates as Server-Sent Events (SSE).

Request

GET
/openapi/v1/video-to-motion/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24/stream
curl -N https://api.meshy.ai/openapi/v1/video-to-motion/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24/stream \
-H "Authorization: Bearer ${YOUR_API_KEY}"

Response Stream

// Error event example
event: error
data: {
  "status_code": 404,
  "message": "Task not found"
}

// Message events carry the full task object at every stage; the result
// fields stay empty until the task succeeds.
event: message
data: {
  "id": "019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24",
  "type": "video-to-motion",
  "name": "",
  "status": "IN_PROGRESS",
  "progress": 50,
  "created_at": 1796083214512,
  "started_at": 1796083216813,
  "finished_at": 0,
  "expires_at": 0,
  "task_error": null,
  "result": {
    "motion_url": "",
    "motion_format": "",
    "duration_ms": 0
  },
  "consumed_credits": 21
}

event: message
data: { // Example of a SUCCEEDED task event, with the same fields as the Video to Motion task object
  "id": "019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24",
  "type": "video-to-motion",
  "name": "",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1796083214512,
  "started_at": 1796083216813,
  "finished_at": 1796083288293,
  "expires_at": 1796342488293,
  "task_error": null,
  "result": {
    "motion_url": "https://assets.meshy.ai/.../output/clip.glb?Expires=...",
    "motion_format": "glb",
    "duration_ms": 4200
  },
  "consumed_credits": 21
}

Parameters

  • Name
    id
    Type
    path
    Description

    The task ID from the create response.

Returns

A stream of Video to Motion task objects as Server-Sent Events.

Every message event carries the full task object. While the task is PENDING or IN_PROGRESS, the result fields are empty ("" or 0), and finished_at and expires_at are 0. To follow the task, watch status and progress.


DELETE/openapi/v1/video-to-motion/:id

Delete a Video to Motion task

Permanently deletes a Video to Motion task, including its motion clip. You can't undo a delete.

Request

DELETE
/openapi/v1/video-to-motion/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24
curl --request DELETE \
  --url https://api.meshy.ai/openapi/v1/video-to-motion/019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"

Response

// 200 OK on success, with an empty body.
//
// 409 Conflict when the task is IN_PROGRESS. The task keeps running:
{
  "message": "Task is IN_PROGRESS and cannot be deleted. Credits for a task the worker has already started are not refundable; wait for it to reach SUCCEEDED, FAILED or CANCELED, then delete it."
}

Path parameters

  • Name
    id
    Type
    path
    Description

    The ID of the task to delete.

Task status

Deleting a PENDING task refunds the credits it used when you created it.

An IN_PROGRESS task can't be deleted. The request returns 409 Conflict, and the task keeps running. Meshy doesn't refund a task that has started, so deleting it would cost you both the credits and the result. Wait for it to reach SUCCEEDED, FAILED, or CANCELED, then delete it.

Deleting a task in a final status (SUCCEEDED, FAILED, or CANCELED) doesn't refund its credits.

Returns

200 OK when the task is deleted, or 409 Conflict when the task is IN_PROGRESS.


The Video to Motion task object

A Video to Motion task object describes the reading of one video into a motion clip. It holds the status, the progress, and the clip when the task succeeds.

Properties

Example Video to Motion Task Object

{
  "id": "019ad6a1-4c2e-7f38-b5d0-8e3f1a6c9b24",
  "type": "video-to-motion",
  "name": "",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1796083214512,
  "started_at": 1796083216813,
  "finished_at": 1796083288293,
  "expires_at": 1796342488293,
  "task_error": null,
  "result": {
    "motion_url": "https://assets.meshy.ai/.../output/clip.glb?Expires=...",
    "motion_format": "glb",
    "duration_ms": 4200
  },
  "consumed_credits": 21
}
  • Name
    id
    Type
    string
    Description

    The task ID. Treat it as an opaque string, and don't rely on its format.

  • Name
    type
    Type
    string
    Description

    The task type, always video-to-motion.

  • Name
    name
    Type
    string
    Description

    Always an empty string. A Video to Motion task has no name.

  • Name
    status
    Type
    string
    Description

    The task status, one of PENDING, IN_PROGRESS, SUCCEEDED, FAILED, or CANCELED.

  • Name
    progress
    Type
    integer
    Description

    How much of the task is done, as a percentage from 0 to 100.

  • Name
    created_at
    Type
    timestamp
    Description

    Time the task was created, in Unix milliseconds.

  • Name
    started_at
    Type
    timestamp
    Description

    Time the task started, in Unix milliseconds. It's 0 until the task starts.

  • Name
    finished_at
    Type
    timestamp
    Description

    Time the task finished, in Unix milliseconds. It's 0 until the task finishes.

  • Name
    expires_at
    Type
    timestamp
    Description

    Time the task's result files expire, in Unix milliseconds. It's 0 until the task finishes. Meshy keeps the clip for 3 days after the task finishes, so download it before then.

  • Name
    preceding_tasks
    Type
    integer
    Description

    The number of tasks ahead of this one in the queue. The value is meaningful only while the task is PENDING. The field is left out when the value is 0.

  • Name
    consumed_credits
    Type
    integer
    Description

    The number of credits the task used, 5 for each second of video, rounded. It's 0 for a FAILED task, because Meshy refunds the credits when a task fails.

  • Name
    task_error
    Type
    object
    Description

    The error details when the task fails, and null otherwise. See Errors.

  • Name
    result
    Type
    object
    Description

    The motion clip when the task succeeds. Until then, the fields are present but empty ("" or 0).

    • Name
      motion_url
      Type
      string
      Description
      Download URL for the motion clip, a GLB file at 30 frames per second. Meshy signs the URL again on every read, and it expires with the task's retention window.
    • Name
      motion_format
      Type
      string
      Description
      The clip's file format, always glb.
    • Name
      duration_ms
      Type
      integer
      Description
      The clip length, in milliseconds. It's the length of the video, as Meshy measured it when you created the task.