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

Rigging API

Add a skeleton to a humanoid (biped) character or a four-legged (quadruped) animal so you can animate it. Every Rigging task also returns a walking and a running animation of the character.


POST/openapi/v2/rigging

Create a Rigging task

Creates a Rigging 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.

To animate the rigged character, send the Rigging task's id as rig_task_id to Animation.

To find out before you rig whether Meshy can rig the model, see Rigging Check.

PreviewChange a value under “Try and preview” to update
Faces31,016
Cost5 credits
Request
curl https://api.meshy.ai/openapi/v2/rigging \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "input_task_id": "01a15cd4-3268-75ae-832a-c33f1de2ed7f",
    "height_meters": 1.7
  }'
Response
Loading…

Parameters

  • Name
    input_task_id
    Type
    string
    Required
    Description

    Required unless you send model_url. The ID of the task whose model to rig. The task must be one you created with the API, have the status SUCCEEDED, and have produced a 3D model with a preview image. For example, send a Text to 3D, Image to 3D, Remesh, or Retexture task.

    A task that hasn't succeeded returns 400. A task without a preview image returns 404, for example a Convert task, or a Resize task without auto_size.

    The model can have at most 380,000 triangles (a quad counts as 2), and a model with more returns 400. Models generated without a remesh often have more. To stay under the limit, generate the model with should_remesh: true, or run Remesh on it first with a target_polycount of 300000 or less, or 150000 or less with topology: quad. See Generate and rig a character.

  • Name
    model_url
    Type
    string
    Required
    Description

    Required unless you send input_task_id. The character to rig, as a GLB file. Send a public URL whose path ends in .glb, or a data URI of a GLB file. Sending both input_task_id and model_url returns 400.

    Meshy rigs the character with the textures embedded in the file. To rig a textured character, embed its textures in the GLB.

    The character must face the +Z axis, the glTF forward direction. A character that faces another axis can get a wrong skeleton even when the task succeeds, or fail with 422.

    The file can be up to 400 MB from a URL, or up to 100 MB as a data URI. A larger file returns 400.

    The model can have at most 380,000 triangles (a quad counts as 2), and a model with more returns 400. To stay under the limit, run Remesh on it first with a target_polycount of 300000 or less, or 150000 or less with topology: quad.

    A file over 100 MB can have at most 10,000,000 faces, and a file with more returns 400. Meshy counts faces as triangles, and a mesh that the file draws more than once counts once for each copy.

    A file over 100 MB can't use Draco compression. A Draco-compressed file over 100 MB returns 400.

  • Name
    animation_type
    Type
    string
    default biped
    Description

    The kind of character to rig. Any other value returns 400.

    Available values:

  • Name
    height_meters
    Type
    number
    Description

    The model's height in meters. Meshy scales the rigged model to this height. Without it, or with 0, the model keeps its own size. A negative value returns 400.

    Try and preview
  • Name
    skeleton_template
    Type
    string
    default mixamo
    Description

    The skeleton for the rigged character, which sets its bone names and hierarchy. Pick the one your engine or tool expects.

    Available values:

    • meshyrig: Meshy's own skeleton
    • mixamo: Mixamo
    • ue5_mannequin: Unreal Engine 5 Mannequin
    • max_biped: 3ds Max Biped
    • unity_humanoid: Unity Humanoid
    • maya_human_ik: Maya HumanIK
    • blender_rigify_basic_human: Blender Rigify basic human
    • cc5_hd_neutral_base: Character Creator 5 HD neutral base
    • daz_genesis9: DAZ Genesis 9

    Any other value returns 400. Works only with a biped rig.

    The files are in meters. If Meshy can't rig a model on that skeleton, the task fails.

    The basic animations' clips are named Walking and Running, as in a download from the Meshy web app. The GLB and FBX files include tip bones at the head, hands, and toes, which carry no skin weight. A few bones, such as headfront, keep their original names.

    Animation tasks made from this rig use the same skeleton.

  • Name
    include_fingers
    Type
    boolean
    default false
    Description

    Whether to add finger bones to the character's hands. With meshyrig, the finger bones use Mixamo names, such as LeftHandThumb1.

    With true, these requests return an error, and Meshy doesn't charge for them:

    • A quadruped rig, or an input_task_id whose model has quad topology, returns 400.
    • If Meshy can't rig the character's hands with fingers, the task fails. Retry it, or set include_fingers to false.

    Meshy finds the fingers automatically and works best on hands with clearly separated fingers. On hands modeled as one shape, such as mittens, gloves, or stylized hands, the rig can have fewer finger bones and animate the hand as one piece. The rest of the skeleton is the same either way. The skeleton might also include extra bones, for example for hair or clothing. Finger bones don't change the credit cost.

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:

    • Neither input_task_id nor model_url was sent
    • Both input_task_id and model_url were sent
    • input_task_id doesn't match any of your tasks (input_task_id does not match any of your tasks)
    • The task in input_task_id hasn't succeeded. The code is input_task_not_ready. Wait until its status is SUCCEEDED, then retry.
    • The model has more than 380,000 triangles (a quad counts as 2)
    • model_url isn't a GLB file, can't be downloaded, or is too large
    • A model_url file over 100 MB has too many faces (failed to process model for rigging: model has too many faces: <N> faces, the limit for files over 100 MB is <limit>)
    • A model_url file over 100 MB has a header that can't be read, for example a Draco-compressed GLB (failed to process model for rigging: invalid model file content)
    • A model_url file over 100 MB has a header too complex to check (failed to process model for rigging: model header is too complex to check for files over 100 MB)
    • animation_type isn't biped or quadruped
    • skeleton_template isn't one of the available values
    • skeleton_template, or include_fingers set to true, was sent with animation_type quadruped. The code is parameters_conflict.
    • include_fingers is true and the input_task_id model has quad topology. The code is input_task_unsupported.

    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

    input_task_id is a bas-relief model, which this endpoint can't rig. The message is This model type does not support this operation. Send a different model.

  • Name
    404 - Not Found
    Description

    Meshy can't rig the task in input_task_id. The error code says why:

    • input_task_unsupported: the task has no preview image, for example a Convert task, or a Resize task without auto_size. Rig the task it came from, or send the model as model_url.
    • input_task_expired: the task's files were deleted. Create the task again, then send that task's id.
  • Name
    422 - Unprocessable Entity
    Description

    Meshy couldn't rig the model. One of these applies:

    • Meshy found no humanoid character in the model. The code is model_not_riggable. With animation_type: "biped" (the default), send one humanoid character in a T-pose or A-pose, facing the +Z axis. If the model is a four-legged animal, set animation_type to quadruped.
    • The input task's model file isn't a valid GLB. Rig a different task.
    • Meshy couldn't finish analyzing a model_url model. The code is service_unavailable, and the request is safe to retry.
    • Meshy can't rig this model automatically. Rigging works best on a single humanoid character in a T-pose or A-pose, facing the +Z axis. Meshy doesn't charge for the request.
  • 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.
  • Name
    503 - Service Unavailable
    Description

    Meshy couldn't finish analyzing the model's pose. The code is service_unavailable. Retry the request.


Rig a four-legged animal

To rig a four-legged animal, send animation_type set to quadruped.

A quadruped rig differs from a biped rig in these ways:

  • basic_animations has a walking and a running animation of the animal. If Meshy can't make one of them, its URLs are null, and the task still succeeds. walking_armature_glb_url and running_armature_glb_url are the rig's skeleton, with no animation.
  • Sending skeleton_template, or include_fingers set to true, returns 400.
  • If Meshy can't rig the model as a four-legged animal, the task fails.

A quadruped rig costs the same as a biped rig. See Pricing.

To animate the rigged animal, apply library animations whose rig_type is quadruped, as action_id or action_ids. See Animation.

Request

POST
/openapi/v2/rigging
# Rig a four-legged animal
curl https://api.meshy.ai/openapi/v2/rigging \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "animation_type": "quadruped"
  }'

Generate and rig a character

To rig a character you generate, create an Image to 3D task for a character in a T-pose, remeshed to stay under the face limit. When the task succeeds, send its id as input_task_id.

The main Image to 3D settings for rigging:

  • pose_mode: "t-pose" generates the character standing in a T-pose. A T-pose or A-pose gives the rig clear arms and legs to work with.
  • should_remesh: true with target_polycount: 30000 keeps the model well under 380,000 triangles.

Meshy charges for each task separately. See Pricing.

Image to 3D, then Rigging

# 1. Generate a character in a T-pose, remeshed to about 30,000 faces
curl https://api.meshy.ai/openapi/v2/image-to-3d \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
    "texture_model": "meshy-7",
    "pose_mode": "t-pose",
    "should_remesh": true,
    "target_polycount": 30000
  }'

# 2. When the Image to 3D task succeeds, rig it
curl https://api.meshy.ai/openapi/v2/rigging \
  -X POST \
  -H "Authorization: Bearer ${MESHY_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "input_task_id": "<Image to 3D task ID>",
    "height_meters": 1.8
  }'

Get the result

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


Rigging 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.

Animation uses the Rigging task's files, so create your Animation tasks before the Rigging task's expires_at. After that, Animation returns 404.

Request
curl https://api.meshy.ai/openapi/v2/tasks/01a1f583-babe-719b-bf51-d6f263346d2c \
  -H "Authorization: Bearer ${MESHY_API_KEY}"
Response
Loading…
  • Name
    rigged_character_glb_url
    Type
    string | null
    Description

    Signed URL to the rigged character as a GLB file. null if the file wasn't produced.

  • Name
    rigged_character_fbx_url
    Type
    string | null
    Description

    Signed URL to the rigged character as an FBX file. null if the file wasn't produced.

  • Name
    basic_animations
    Type
    object
    Description

    Signed URLs to a walking and a running animation of the character, which Meshy makes for every rig. A URL is null if that file wasn't produced.

    • walking_glb_url: the walking animation with the character's mesh, as a GLB file
    • walking_fbx_url: the walking animation with the character's mesh, as an FBX file
    • walking_armature_glb_url: the walking animation with the skeleton only, as a GLB file
    • running_glb_url: the running animation with the character's mesh, as a GLB file
    • running_fbx_url: the running animation with the character's mesh, as an FBX file
    • running_armature_glb_url: the running animation with the skeleton only, as a GLB file

Rigging tasks have no preview image or texture URLs in output.