Tripo Segmentation

3D AI Studio

Tripo Segmentation

Tripo mesh segmentation API reference. Automatically segment 3D models into semantic parts using AI.

Mesh Segmentation

POST

/v1/3d-models/tripo/mesh-segmentation/

Segment a 3D model into semantic parts using AI. Upload a model file directly or provide a URL to a publicly accessible model. Two segmentation models are available: v1 (geometry-based, default) and v2 (semantic labeling, beta), selected with segmentation_model. Both cost 80 credits per request.

Request
curl -X POST https://api.3daistudio.com/v1/3d-models/tripo/mesh-segmentation/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "model_url=https://example.com/character.glb" \
  -F "segmentation_model=v2.0-20260430" \
  -F "segmentation_granularity=balanced"
Response
{
  "task_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "created_at": "2026-03-26T12:00:00Z"
}

Parameters

ParameterTypeRequiredDefaultDescription
modelfileConditional—3D model file upload. Required if model_url is not provided.
model_urlstringConditional—URL to a publicly accessible 3D model. Required if model is not provided.
segmentation_modelstringNo"v1.0-20250506""v1.0-20250506" (geometry-based) or "v2.0-20260430" (beta, semantic labeling + geometry). The options below require v2.
segmentation_granularitystringNo"balanced"v2 only. How finely to split the model: "simple", "balanced" or "detailed".
split_by_connectivitybooleanNotruev2 only. Also split parts that are not connected to each other.
ref_image_urlstringNo—v2 only. Public URL of a reference image (e.g. a segmentation mask) that drives the semantic analysis. When a reference image is given, segmentation_granularity and split_by_connectivity are ignored.
ref_imagefileNo—v2 only. The reference image as a base64 data URI (data:image/...;base64,...). Send either ref_image or ref_image_url, not both.

Use Cases

Mesh segmentation is useful for a variety of downstream workflows.

Use CaseDescription
Selective texturingApply different textures to individual parts (e.g. skin, clothing, accessories).
Rigging preparationIdentify body parts for skeletal rigging and animation setup.
Modular assetsBreak a single model into reusable components for asset libraries.
Part-based editingEdit or replace individual segments without modifying the entire model.

Checking Status

GET

/v1/generation-request/<task_id>/status/

Poll this endpoint with the task_id from the segmentation response. When status is "FINISHED", the results array contains the segmented model. Results expire after 24 hours.

Request
curl https://api.3daistudio.com/v1/generation-request/YOUR_TASK_ID/status/ \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "status": "FINISHED",
  "progress": 100,
  "failure_reason": null,
  "results": [
    {
      "asset": "https://storage.3daistudio.com/assets/segmented-model.glb",
      "asset_type": "3D_MODEL",
      "metadata": null
    }
  ]
}

Credit Costs

Mesh segmentation costs a flat 80 credits per request, with either segmentation model. Credits are deducted when you submit a request. If segmentation fails, credits are refunded automatically.

OperationCredits
Mesh Segmentation80

Errors

Common errors for the mesh segmentation endpoint.

StatusError CodeDescription
400VALIDATION_FAILEDMissing or invalid parameters — no model provided, a v2-only option without segmentation_model v2.0-20260430, or both ref_image and ref_image_url.
401INVALID_API_KEYInvalid or missing API key.
402INSUFFICIENT_CREDITSNot enough credits. Purchase more credits.
429RATE_LIMITEDRate limit exceeded. Wait and retry.