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

Animation API

Make a rigged character move. Apply one animation from the Meshy library, join several library animations into one file, or play a clip from Text to Motion.


POST/openapi/v2/animations

Create an Animation task

Creates an Animation task and returns the task object. The task runs in the background. To read its result, see Get the result. For how long a task usually takes, see Processing times.

Meshy charges for each animation in a task, so a task with action_ids costs more than one with action_id or motion_task_id. See Pricing.

PreviewChange a value under “Try and preview” to update
ActionIdle
Faces31,016
Cost3 credits
Request
curl https://api.meshy.ai/openapi/v2/animations \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "rig_task_id": "01a15cd5-ddac-75d0-a953-3044624a8ae9",
    "action_id": 0
  }'
Response
Loading…

Parameters

  • Name
    rig_task_id
    Type
    string
    Required
    Description

    The ID of the Rigging task whose character to animate. The task must be one of yours and have the status SUCCEEDED.

    A Rigging task that hasn't succeeded returns 400 with the code input_task_not_ready, and the message gives its status. A task of another type returns 400 with the code input_task_unsupported.

Send exactly one of action_id, action_ids, and motion_task_id. Sending more than one returns 400. Sending none returns 400 with the message action_id is required.

  • Name
    action_id
    Type
    integer
    Required
    Description

    Required unless you send action_ids or motion_task_id. The action_id of one library animation to apply. To find IDs, use List animations or the Animation Library page.

    Try and preview

    Send this or action_ids or motion_task_id. Picking a value here clears the others.

    The animation's rig_type must match the rig, or the request returns 400. Any quadruped animation works on any quadruped rig, whatever animal its category names.

    Meshy names the clip in the file by the animation's key, for example Big_Wave_Hello, as in a download from the Meshy web app. In a clip name, each character other than a letter, a digit, or _ becomes _. A key that starts with a digit gets a _ in front, for example _360_Power_Spin_Jump.

    A few library animations don't work with some two-legged rigs. They return 400 with the message This animation is no longer available.

  • Name
    action_ids
    Type
    integer[]
    Required
    Description

    Required unless you send action_id or motion_task_id. The action_id values of up to 10 library animations to join into one file, with no repeats. More than 10 IDs, or a repeated ID, returns 400. A list with one ID works like action_id.

    Meshy joins the animations in the order you send them. It names each clip in the file by the animation's key, the same way as for action_id.

    An animation whose rig_type doesn't match the rig returns 400.

  • Name
    motion_task_id
    Type
    string
    Required
    Description

    Required unless you send action_id or action_ids. The ID of the Text to Motion task whose clip to play on the character. The task must be one of yours and have the status SUCCEEDED, and the rig must be a biped.

    Try and preview

    Send this or action_id or action_ids. Picking a value here clears the others.

    Use the Text to Motion task within 3 days after it finishes. After that, Meshy deletes its clip, like other task files, and this parameter returns 404. Enterprise accounts keep their files.

    Meshy names the clip in the file by the Text to Motion task's id, as in a download from the Meshy web app. Each - becomes _, and an ID that starts with a digit gets a _ in front. For example, the clip of task 018a210d-1c22-7e0f-9d3a-4a5b6c7d8e9f is named _018a210d_1c22_7e0f_9d3a_4a5b6c7d8e9f.

  • Name
    post_process
    Type
    object
    Description

    One extra file to make from the animation's FBX file, returned in the matching output field. Leave it out for no extra file.

    It has these fields:

    • operation_type: the file to make. Without it, Meshy makes no extra file.
      • change_fps: an FBX file at another frame rate
      • fbx2usdz: a USDZ file
      • extract_armature: an FBX file with the skeleton only
    • fps: the frame rate for change_fps, one of 24, 25, 30, or 60. The default is 30.

    Any other operation_type or fps value returns 400.

    With motion_task_id, the clip can come back as a GLB file only. In that case, a post_process operation fails the task, and Meshy refunds its credits.

Returns

202 Accepted with the task object. The task starts as PENDING, with your request in input and output set to null.

Two response headers help you read the task:

  • Location: the task's URL on Tasks
  • Retry-After: how many seconds to wait before you first read it

Failure modes

  • Name
    400 - Bad Request
    Description

    The request can't run. For example:

    • More than one of action_id, action_ids, and motion_task_id was sent
    • An action_id isn't in the library
    • action_ids has a repeat or more than 10 IDs
    • The Rigging task hasn't succeeded
    • The Text to Motion task hasn't succeeded (Motion task has not succeeded)
    • motion_task_id was sent with a rig that isn't a biped
    • An animation's rig_type doesn't match the rig

    The error message says which problem it found. See Errors.

  • Name
    401 - Unauthorized
    Description

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

  • Name
    402 - Payment Required
    Description

    One of these applies:

    • The account doesn't have enough credits.
    • The account reached a credit limit.
    • The account is on the free plan.

    Check your credits and plan, then retry.

  • Name
    403 - Forbidden
    Description

    The rig_task_id task is a bas-relief model, which this endpoint can't animate. The message is This model type does not support this operation. Rig a different model.

  • Name
    404 - Not Found
    Description

    Meshy can't find a task or file the request needs. One of these applies:

    • rig_task_id doesn't match any of your tasks (rig_task_id does not match any of your tasks). Check the ID.
    • motion_task_id doesn't match any of your Text to Motion tasks (Motion task not found). Check the ID.
    • Meshy deleted the Text to Motion clip (the message starts with Motion clip has expired). Create another Text to Motion task.
    • The Rigging task's files were deleted after its expires_at (code input_task_expired). Rig the character again.
  • Name
    429 - Too Many Requests
    Description

    One of these limits was reached:

    • You sent too many requests. Wait the number of seconds in Retry-After, then retry.
    • Too many of your tasks are queued or running. Wait for some to finish, then retry.
    • On an unlimited plan with no credits left, you reached the number of tasks that can run without credits. Wait for a task to finish, or add credits.

GET/openapi/v2/animations/library

List animations

Returns the animations in the library, with the action_id to send when you create a task. This request costs no credits.

The following filters combine. Leave them all out to get the whole library.

Request

GET
/openapi/v2/animations/library
# Find waving animations
curl "https://api.meshy.ai/openapi/v2/animations/library?search=wave" \
  -H "Authorization: Bearer ${MESHY_API_KEY}"

Response (shortened)

[
  {
    "action_id": 28,
    "name": "Big Wave Hello",
    "key": "Big_Wave_Hello",
    "category": "DailyActions",
    "sub_category": "Interacting",
    "preview_url": "https://cdn.meshy.ai/webapp-assets/feature-demo/animation/preview/biped/Big_Wave_Hello.gif",
    "rig_type": "biped"
  },
  {
    "action_id": 290,
    "name": "Wave One Hand",
    "key": "Wave_One_Hand",
    "category": "DailyActions",
    "sub_category": "Interacting",
    "preview_url": "https://cdn.meshy.ai/webapp-assets/feature-demo/animation/preview/biped/Wave_One_Hand.gif",
    "rig_type": "biped"
  }
]

Parameters

  • Name
    search
    Type
    string
    Description

    Text to search for. Meshy returns the animations whose name or key contains this text, ignoring case.

  • Name
    category
    Type
    string
    Description

    The category to list. For example:

    • DailyActions
    • WalkAndRun
    • Fighting
    • BodyMovements
    • Dancing

    A quadruped animation's category is an animal, for example dog or horse. An unknown category returns an empty list.

  • Name
    sub_category
    Type
    string
    Description

    The subcategory to list, for example Walking or Interacting. You can send it without category.

  • Name
    action_ids
    Type
    string
    Description

    The animations to list, as up to 200 comma-separated IDs, for example 28,92. More than 200 IDs returns 400.

Returns

An array of animations, ordered by action_id. The response has the whole list, with no pages.

  • Name
    action_id
    Type
    integer
    Description

    The ID to send as action_id or in action_ids.

  • Name
    name
    Type
    string
    Description

    The animation's display name.

  • Name
    key
    Type
    string
    Description

    The animation's key.

  • Name
    category
    Type
    string
    Description

    The animation's category. For a quadruped animation, it's an animal, for example dog or horse.

  • Name
    sub_category
    Type
    string
    Description

    The animation's subcategory.

  • Name
    preview_url
    Type
    string
    Description

    URL to an animated GIF preview of the animation.

  • Name
    rig_type
    Type
    string
    Description

    The kind of rig the animation plays on, biped or quadruped. It matches the animation_type of the Rigging task. A rig takes only animations of its own type.

Failure modes

  • Name
    400 - Bad Request
    Description

    action_ids has more than 200 IDs, or an item that isn't an integer. The error message says which problem it found. Fix the list, then send the request again. See Errors.

  • Name
    401 - Unauthorized
    Description

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

  • Name
    429 - Too Many Requests
    Description

    You sent too many requests. Wait the number of seconds in Retry-After, then retry.


Get the result

Read Animation tasks the same way as every other v2 task, through the Tasks routes. To list only Animation tasks, filter by type=animate.


Animation output

When the task succeeds, output holds these fields. The rest of the task object is the same for every task type. The URLs in output stop working at expires_at.

Request
curl https://api.meshy.ai/openapi/v2/tasks/01a15cd6-8f9d-711b-89ff-b3f6b4e7c6c6 \
  -H "Authorization: Bearer ${MESHY_API_KEY}"
Response
Loading…
  • Name
    animation_glb_url
    Type
    string | null
    Description

    Signed URL to the animated character as a GLB file. With action_ids, the file has every clip.

  • Name
    animation_fbx_url
    Type
    string | null
    Description

    Signed URL to the animated character as an FBX file. It can be null for a motion_task_id clip that came back as a GLB file only.

  • Name
    processed_animation_fps_fbx_url
    Type
    string | null
    Description

    Signed URL to the FBX file at the frame rate you asked for. null unless you sent "operation_type": "change_fps".

  • Name
    processed_usdz_url
    Type
    string | null
    Description

    Signed URL to the animation as a USDZ file. null unless you sent "operation_type": "fbx2usdz".

  • Name
    processed_armature_fbx_url
    Type
    string | null
    Description

    Signed URL to the skeleton and its animation without the mesh, as an FBX file. null unless you sent "operation_type": "extract_armature".