# Tripo3D Tripo Smart Segment API

> Tripo Smart Segment splits an image or a 3D model into named semantic parts, returning a segmented 3D model and a part mask.

Source: https://www.sandbase.ai/models/tripo3d/tripo/smart-segment
API reference: https://www.sandbase.ai/models/tripo3d/tripo/smart-segment#api

## Facts

- Provider: Tripo3D
- Type: Image model
- Model ID: `tripo3d/tripo/smart-segment`
- Price: From $0.85 per run
- Capabilities: image to 3d, 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": "tripo3d/tripo/smart-segment",
  "image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
  "seg_type": "image",
  "model_url": "https://static.sandbase.ai/examples/tripo3d/tripo/shared/object.glb",
  "granularity": "medium"
}'
```

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 Tripo3D Tripo Smart Segment through SandBase?

Create a SandBase API key, then send requests with the model ID "tripo3d/tripo/smart-segment" 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 Tripo3D account?

No. One SandBase API key and balance gives you access to Tripo3D Tripo Smart Segment and the other models in the catalog; you do not need to sign up with Tripo3D separately.

## README

### Tripo Smart Segment
Tripo Smart Segment splits an image or a 3D model into named semantic parts, returning a segmented 3D model and a part mask.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `seg_type` | `image` / `model`, required | `image` | image segments an image and builds a segmented 3D model; model segments an existing GLB. |
| `image` | string | — | Input image when seg_type is image. |
| `model_url` | string | — | Input GLB when seg_type is model. |
| `granularity` | `coarse` / `medium` / `fine` | `medium` | How finely to split. |
| `hint` | string | — | Optional text naming the parts you want. |
| `transform` | array | — | Model transform as a column-major 4x4 matrix (16 numbers). Used when seg_type is model; identity when unset. |
#### Output
- `url`: Segmented GLB, one node per part.
- `mask`: Part mask image.
- `parts`: Comma-separated part names.
#### Billing
| seg_type | Price |
|---|---|
| image | $0.85 |
| model | $0.55 |
Failed runs are not charged.
