Generate a 3D mesh
generate_meshConvert an image into a raw 3D mesh: trellis yields a textured GLB, hunyuan an untextured shape; each run writes the GLB plus JSON sidecar metadata.
Instructions
Turn an image into a raw 3D mesh. trellis gives a textured GLB at ~30k faces; hunyuan gives an untextured shape at ~450k faces. Writes the GLB and a .json sidecar with the parameters, the inputs and the raw Space response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed; change it for another take. | |
| image | Yes | The source image, as a path. | |
| model | No | Which Space to use. | trellis |
| out_dir | No | Where to write the GLB. | out/mesh |
| extra_views | No | More views of the same object, fused as multi-image conditioning. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | What the engine printed while it worked. | |
| files | Yes | Everything that was written. |