# Meta SAM 3 3D Body API

> SAM 3D Body by Meta reconstructs the 3D shape and pose of the people in a single image and returns them as a GLB mesh.

Source: https://www.sandbase.ai/models/meta/sam-3/3d-body
API reference: https://www.sandbase.ai/models/meta/sam-3/3d-body#api

## Facts

- Provider: Meta
- Type: Image model
- Model ID: `meta/sam-3/3d-body`
- Price: $0.02 per run
- Capabilities: image to 3d
- 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": "meta/sam-3/3d-body",
  "image": "https://static.sandbase.ai/examples/meta/sam-3/3d-body/input_image_0.jpeg",
  "include_3d_keypoints": true
}'
```

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 Meta SAM 3 3D Body through SandBase?

Create a SandBase API key, then send requests with the model ID "meta/sam-3/3d-body" 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 Meta account?

No. One SandBase API key and balance gives you access to Meta SAM 3 3D Body and the other models in the catalog; you do not need to sign up with Meta separately.

## README

### SAM 3 3D Body
SAM 3D Body by Meta reconstructs the 3D shape and pose of the people in a single image and returns them as a GLB mesh.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `image` | image URL, required | — | Image containing one or more people. |
| `mask` | image URL | — | Optional binary mask (white = person, black = background). When set, automatic person detection is skipped. |
| `include_3d_keypoints` | boolean | `true` | Add 3D keypoint markers (spheres) to the GLB mesh. |
#### Output
- `url`: Main 3D file (GLB unless another export format is selected).
- `thumbnail`: Preview image rendered by the provider.
#### Billing
$0.024 per request.
Failed runs are not charged.
#### Also on SandBase
Other Meta 3D endpoints: `meta/sam-3/3d-align`, `meta/sam-3/3d-objects`.
