Rigging Check API
Find out before you rig whether Meshy can rig and animate a model, and which animation_type it fits. To rig the model, see Rigging.
Moving from v1? The request is the same. The main changes for Rigging Check:
- The create response is the task object instead of an object with the task ID in
result. - Read the task through Tasks instead of
GET /openapi/v1/rigging/check/:id. - The answer is in
outputinstead ofresult.
Create a Rigging Check task
Creates a Rigging Check task and returns the task object. The task checks whether Meshy can rig and animate the model of one of your tasks, and which animation_type it fits. It runs in the background. To read its result, see Get the result.
The check is optional. You can create a Rigging task without it, and its answer doesn't change what Rigging does. It helps you skip models that Rigging doesn't support, such as a car or a bird.
The check looks at the task's preview image. riggable is true when the model meets all of these rules:
- It has one character.
- The character is a humanoid (biped) or a four-legged animal (quadruped).
- It stands, and a four-legged animal stands on all four legs.
- Its arms and legs are clear of the body and of each other.
- It doesn't stand on a base or pedestal.
- It faces the front.
- It's within the face limit of Rigging.
Request
# Check whether a model can be rigged
curl https://api.meshy.ai/openapi/v2/rigging/check \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
}'
Response
{
"id": "0193c1a2-5b7e-7d4f-9a3c-8e2f1b6d4c70",
"type": "rig-check",
"status": "PENDING",
"progress": 0,
"created_at": 1790640079880,
"started_at": null,
"finished_at": null,
"expires_at": null,
"preceding_tasks": 1,
"consumed_credits": 1,
"task_error": null,
"input": {
"input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
},
"output": null
}
Parameters
- Name
- input_task_id
- Type
- string
- Required
- Description
The
idof the task whose model you want to check. It must be one of your API tasks that hasSUCCEEDEDand has a preview image, for example a Text to 3D, Image to 3D, Remesh, or Retexture task.
Returns
202 Accepted with the task object, with your request in input.
Two response headers help you read the task:
Location: the task's URL on TasksRetry-After: how many seconds to wait before you first read it, when the task hasn't finished
Failure modes
- Name
400 - Bad Request- Description
The request can't run. For example:
input_task_idwasn't sent. The code isparameter_missing.input_task_iddoesn't match any of your tasks. The code isinput_task_not_found.- The task in
input_task_idwasn't created through the API. The code isinput_task_unsupported. - The task in
input_task_idhasn't succeeded. The code isinput_task_not_ready. Wait until its status isSUCCEEDED, then retry. - The request has a parameter the check doesn't take, such as
model_url. The code isparameter_unknown.
The error message says which problem it found. Fix the request, then send it again. See Errors.
- Name
401 - Unauthorized- Description
The API key is missing or invalid. Check the
Authorizationheader.
- 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_idis a bas-relief model, which Meshy can't check. The code isinput_task_unsupported. Send a different model.
- Name
404 - Not Found- Description
Meshy can't check the task in
input_task_id. The error code says why:input_task_unsupported: the task has no preview image, for example a Convert, Resize, or Text to Image task. Check the task it came from.input_task_expired: the task's files were deleted. Create the task again, then send that task'sid.
- 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.
- You sent too many requests. Wait the number of seconds in
A task that Meshy created can still fail. Its status becomes FAILED, Meshy refunds the credit, and task_error says why:
task_error.codeismoderation_blocked, andtypeisinvalid_input: the model's preview image might not comply with Meshy's platform rules. Send a different model.task_error.typeisservice_unavailable, andcodeisnull: Meshy couldn't check the model. Create the task again.
See Errors.
Get the result
Read Rigging Check tasks the same way as every other v2 task, through the Tasks routes. To list only Rigging Check tasks, filter by type=rig-check.
| To | Call |
|---|---|
| Get one task | GET /openapi/v2/tasks/{id} |
| Wait for updates | GET /openapi/v2/tasks/{id}/stream or a webhook |
| List your tasks | GET /openapi/v2/tasks?type=rig-check |
| Delete a task | DELETE /openapi/v2/tasks/{id} |
Rigging Check output
When the task succeeds, output holds these fields. The rest of the task object is the same for every task type. output has no file URLs.
Succeeded Rigging Check task
{
"id": "0193c1a2-5b7e-7d4f-9a3c-8e2f1b6d4c70",
"type": "rig-check",
"status": "SUCCEEDED",
"progress": 100,
"created_at": 1790640079880,
"started_at": 1790640080112,
"finished_at": 1790640086935,
"expires_at": 1790899286935,
"preceding_tasks": 0,
"consumed_credits": 1,
"task_error": null,
"input": {
"input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578"
},
"output": {
"riggable": false,
"animation_type": "biped",
"animatable": false,
"reasons": [
{
"code": "limbs_not_separated",
"message": "The arms or legs touch the body or each other. Generate it in a T-pose or A-pose with the limbs clear of the body."
}
]
}
}
- Name
- riggable
- Type
- boolean
- Description
Whether the model meets all of the rules on this page. When it's
false,reasonssays why.
- Name
- animation_type
- Type
- string
- Description
The kind of character the model is, even when
riggableisfalse.Available values:
biped: a humanoid character. Send it asanimation_typewhen you create a Rigging task.quadruped: a four-legged animal. Send it asanimation_typewhen you create a Rigging task.other: anything else, such as a bird, an octopus, or a prop. Rigging doesn't support it.
- Name
- animatable
- Type
- boolean
- Description
Whether Animation can animate the model after you rig it. It's never
truewhenriggableisfalse.
- Name
- reasons
- Type
- array
- Description
Why
riggableoranimatableisfalse, in a fixed order. It's an empty array when both aretrue.- Name
code- Type
- string
- Description
What's wrong with the model, for your code to act on. Meshy may add codes, so treat a code you don't recognize as a reason the model doesn't fit.
Available values:
not_a_character: the model isn't a person or a creature, for example a vehicle or a prop.unsupported_body_type: the creature is neither a humanoid nor a four-legged animal, for example a bird, a snake, or an octopus.multiple_subjects: the model has more than one character.has_base: the character stands on a base or pedestal.not_standing: the character sits, lies, kneels, or crouches, or a four-legged animal isn't on all four legs.limbs_not_separated: the arms or legs touch the body or each other.facing_away: the character faces away from the front.too_many_faces: the model is over the face limit of Rigging. Run Remesh on it first.
- Name
message- Type
- string
- Description
The same reason as a sentence for a person, with how to fix the model. For
too_many_faces, it gives the model's triangle count and the Remesh settings to use. The wording can change, so branch oncode, not onmessage.