generate_3d
Convert a subject photo into a textured 3D mesh (GLB) by providing an image path. Returns a GLB file ready for Blender, three.js, or Quick Look.
Instructions
Generate a textured 3D mesh (GLB) from a subject image on the remote server.
The image should be a clean cutout of the subject with real alpha transparency (an opaque photo also works — the server composites it on white). Returns a GLB file path you can open in Blender / three.js / Quick Look.
Args: image_path: Absolute or ~-relative path to a local PNG/JPEG of the subject. model: 3D mesh model id. Defaults to MLX_SERVE_MESH_MODEL. steps: Shape sampling steps (default 30). octree_resolution: Mesh grid resolution in [64, 512] (default 256). guidance_scale: Shape guidance in [0, 20] (default 5). texture: Request the texture-paint stage for a textured GLB. Requires the paint weights to be installed server-side, else a named error. texture_steps: Texture painting steps in [1, 100] when texture=true. seed: Optional seed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| model | No | ||
| steps | No | ||
| texture | No | ||
| image_path | Yes | ||
| texture_steps | No | ||
| guidance_scale | No | ||
| octree_resolution | No |