generate_3d_from_image
Generate a 3D mesh from a single image using a local AI model, with options for background removal and mesh resolution.
Instructions
Generate a 3D mesh (.glb) from a single image using the local TripoSR model. You must call load_img_to_3d_model() first.
Parameters:
image_path: Absolute path to the input image
output_path: Where to save the .glb file (auto-generated if omitted)
foreground_ratio: Foreground crop ratio for background removal (default 0.85)
mc_resolution: Marching-cubes resolution; higher = more detail but slower (default 256)
no_remove_bg: Skip background removal if the image already has a clean background
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_path": "<image_path>"
},
"name": "generate_3d_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | ||
| output_path | No | ||
| no_remove_bg | No | ||
| mc_resolution | No | ||
| foreground_ratio | No |