# Meshy Rigging Multi Animation

> Meshy auto-rigs a humanoid 3D model fitting a skeleton and binding the mesh, then applies several motion presets from its animation library


## Overview

- **Endpoint**: `https://fal.run/fal-ai/meshy/rigging/multi-animation`
- **Model ID**: `fal-ai/meshy/rigging/multi-animation`
- **Category**: 3d-to-3d
- **Kind**: inference
**Tags**: stylized, transform, 3D



## Pricing

**$0.20** per request. +**$0.12** per animation clip in `animation_action_ids` (e.g. 3 clips = **$0.56** total).

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`model_url`** (`string`, _required_):
  URL of a 3D model in GLB format to rig and animate. Can be any publicly accessible URL — works with models generated by Hunyuan, Trellis, Meshy, or any other 3D generation tool. The model must be a humanoid character with clearly defined limbs.
  - Examples: "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb"

- **`height_meters`** (`float`, _optional_):
  Approximate height of the character in meters. Default value: `1.7`
  - Default: `1.7`

- **`animation_action_ids`** (`list<integer>`, _required_):
  Animation preset IDs from Meshy's library. One animation clip is generated per ID against the same rig and returned in the 'animations' output array, in request order. Must contain at least one ID. Each ID must be in [0, 696], at most 10 distinct clips may be requested, and duplicate IDs are de-duplicated. See https://docs.meshy.ai/en/api/animation-library for available IDs.
  - Array of integer
  - Examples: [36,92]

- **`enable_safety_checker`** (`boolean`, _optional_):
  If set to true, input data will be checked for safety before processing. Default value: `true`
  - Default: `true`



**Required Parameters Example**:

```json
{
  "model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
  "animation_action_ids": [
    36,
    92
  ]
}
```

**Full Example**:

```json
{
  "model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
  "height_meters": 1.7,
  "animation_action_ids": [
    36,
    92
  ],
  "enable_safety_checker": true
}
```


### Output Schema

The API returns the following output format:

- **`rigged_character_glb`** (`File`, _optional_):
  Rigged character in GLB format.

- **`rigged_character_fbx`** (`File`, _optional_):
  Rigged character in FBX format.

- **`basic_animations`** (`BasicAnimations`, _optional_):
  Basic walking and running animations included with rigging.

- **`animations`** (`list<AnimationClip>`, _optional_):
  Animation clips generated against the rig — one entry per requested animation action ID, in request order.
  - Array of AnimationClip

- **`rig_task_id`** (`string`, _optional_):
  Meshy rigging task ID.



**Example Response**:

```json
{
  "animations": [
    {}
  ]
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/meshy/rigging/multi-animation \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
     "animation_action_ids": [
       36,
       92
     ]
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/meshy/rigging/multi-animation",
    arguments={
        "model_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
        "animation_action_ids": [36, 92]
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/meshy/rigging/multi-animation", {
  input: {
    model_url: "https://storage.googleapis.com/falserverless/model_tests/video_models/base_basic_shaded.glb",
    animation_action_ids: [36, 92]
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/meshy/rigging/multi-animation)
- [API Documentation](https://fal.ai/models/fal-ai/meshy/rigging/multi-animation/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/meshy/rigging/multi-animation)

### fal.ai Platform

- [Platform Documentation](https://docs.fal.ai)
- [Python Client](https://docs.fal.ai/clients/python)
- [JavaScript Client](https://docs.fal.ai/clients/javascript)
