Mesh Repair

3D AI Studio

Mesh Repair

Mesh repair API reference. Fix non-manifold geometry, hollow models, set wall thickness, scale to exact dimensions. Print-ready 3D model preparation via REST API.

Repair Mesh

POST

/v1/tools/repair/

Fix common mesh problems and prepare models for 3D printing or production use. The tool automatically repairs issues like duplicate vertices, inconsistent normals, and loose geometry, then performs a clean remesh to produce a watertight mesh. You can optionally hollow the model to reduce 3D printing material costs, scale it to a specific height, bake textures onto the new mesh, and choose between triangle or quad topology. Input supports GLB, OBJ, STL, PLY, FBX, and ZIP. Costs 60 credits (90 with hollowing enabled).

Request
curl -X POST https://api.3daistudio.com/v1/tools/repair/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_url": "https://example.com/model.glb",
    "output_format": "stl",
    "hollow": true,
    "wall_thickness": 2.0,
    "target_height": 15.0,
    "unit": "cm",
    "quality": "default"
  }'
Response
{
  "task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "created_at": "2026-02-25T12:00:00Z"
}

What Gets Repaired

The tool automatically detects and fixes common mesh problems including broken geometry, inconsistent surfaces, and disconnected elements. The output is a clean, watertight mesh ready for 3D printing or production use.

Remesh Quality

The quality parameter controls the density of the remeshed output. Higher quality preserves more detail but produces more polygons.

QualityDetail LevelBest For
lowLower polygon count, smoother surfaceQuick previews, low poly assets, small prints
defaultBalanced detail and polygon countMost use cases, standard 3D printing
maxHighest detail preservationLarge prints, detailed models, production assets

Hollowing

When hollow is enabled, the tool creates an inner shell inside the model at the specified wall thickness, producing a hollow interior. This significantly reduces material usage for 3D printing. The wall thickness must be less than half the smallest dimension of the model. The inner shell is smoothed to prevent artifacts.

Parameters

ParameterTypeRequiredDescription
model_urlstring (URL)YesURL of the 3D model. Supports GLB, OBJ, STL, PLY, FBX, and ZIP.
output_formatstringNo"glb", "obj", "obj_zip", "stl", "ply", or "fbx". Default: "glb". OBJ and STL outputs are automatically scaled to millimeters.
hollowbooleanNoHollow the model for 3D printing. Default: false. Adds 30 credits.
wall_thicknessnumberNoWall thickness when hollowing. Must be greater than 0 and less than half the model's smallest dimension. Default: 2.0.
target_heightnumberNoScale the model so its tallest dimension matches this value. Must be greater than 0.
unitstringNoUnit for wall_thickness and target_height: "cm", "mm", or "inches". Default: "cm".
topologystringNoOutput mesh topology: "tris" (triangles) or "quads" (quadrilaterals). Default: "tris".
qualitystringNoRemesh quality: "low", "default", or "max". Default: "default". See quality table above.
texture_resolutionintegerNoResolution for baked textures: 1024, 2048, 4096, or 8192. Default: 4096.
bake_texturesbooleanNoBake the original textures onto the remeshed model using UV projection. Default: true.

Checking Status

GET

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

Poll this endpoint with the task_id from the submit response. When status is "FINISHED", the results array contains the repaired model file. 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,
  "results": [
    {
      "asset_url": null,
      "asset": "https://storage.3daistudio.com/assets/repaired_model.stl",
      "asset_type": "3D_MODEL",
      "thumbnail": null
    }
  ]
}

Credit Costs

OptionCredits
Standard repair and remesh60
With hollowing enabled90

Processing Times

Processing typically takes 35–80 seconds. Simple repairs are faster, while enabling hollowing or high-quality remeshing takes longer. Very large or complex meshes may take up to 2 minutes.