# Meta SAM 3 3D Align API

> SAM 3D Align by Meta places a SAM 3D Body mesh into the scene of its source image, optionally combining it with a SAM 3D Objects mesh into one GLB scene.

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

## Facts

- Provider: Meta
- Type: Image model
- Model ID: `meta/sam-3/3d-align`
- Price: $0.02 per run
- Capabilities: 3d 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-align",
  "image": "https://static.sandbase.ai/examples/meta/sam-3/3d-body/input_image_0.jpeg",
  "model_url": "https://v3b.fal.media/files/b/0a8439f9/5LVt3C2YesqnQzg-CxPpu_combined_bodies.glb"
}'
```

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 Align through SandBase?

Create a SandBase API key, then send requests with the model ID "meta/sam-3/3d-align" 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 Align and the other models in the catalog; you do not need to sign up with Meta separately.

## README

### SAM 3 3D Align
SAM 3D Align by Meta places a SAM 3D Body mesh into the scene of its source image, optionally combining it with a SAM 3D Objects mesh into one GLB scene.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `image` | image URL, required | — | Original image the body mesh was reconstructed from. |
| `model_url` | string, required | — | URL of the SAM 3D Body mesh (.ply or .glb) to align. |
| `mask` | image URL | — | Optional human mask image. The full image is used when omitted. |
| `object_model_url` | string | — | Optional URL of a SAM 3D Objects mesh (.glb). When set, the output is a combined body + object scene. |
| `focal_length` | number | — | Focal length from SAM 3D Body metadata. Estimated from the image when omitted. |
#### 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-body`, `meta/sam-3/3d-objects`.
