# Meshy Text to Motion API

> Meshy Text to Motion generates a standalone character motion clip from a text prompt, as FBX (prime) or BVH (swift).

Source: https://www.sandbase.ai/models/meshy/text-to-motion
API reference: https://www.sandbase.ai/models/meshy/text-to-motion#api

## Facts

- Provider: Meshy
- Type: Image model
- Model ID: `meshy/text-to-motion`
- Price: From $0.40 per run
- Capabilities: text to motion
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "meshy/text-to-motion",
  "duration": 3,
  "motion_mode": "prime"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Meshy Text to Motion through SandBase?

Create a SandBase API key, then send requests with the model ID "meshy/text-to-motion" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Meshy account?

No. One SandBase API key and balance gives you access to Meshy Text to Motion and the other models in the catalog; you do not need to sign up with Meshy separately.

## README

### Meshy Text to Motion
Meshy Text to Motion generates a standalone character motion clip from a text prompt, as FBX (prime) or BVH (swift).
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Describe the motion, up to 400 characters. |
| `duration` | number 2–10 | `3` | Clip length in seconds, 2–10 in 0.5 s steps. |
| `motion_mode` | `prime` / `swift` | `"prime"` | prime: higher quality FBX clip; swift: faster BVH clip. |
#### Output
- `url`: Motion clip. prime returns an FBX file; swift returns BVH text content, stored with a `.bin` file name, so save it as `.bvh` before importing.
- `format`: `fbx` or `bvh`.
#### Billing
$0.40 per clip (prime), $0.12 (swift).
