1. Quick start
Install SGLang with diffusion support by following the SGLang Diffusion installation guide, then start the server and request a mesh. Mesh generation is asynchronous:POST /v1/meshes returns a job ID, GET /v1/meshes/<id> reports its status, and GET /v1/meshes/<id>/content
downloads the GLB file once the status is completed.
2. Model capabilities
Hunyuan3D-2 from Tencent turns one reference image into a 3D asset in two stages. A flow-matching DiT generates the shape, which is decoded into a mesh; the paint stage then removes lighting from the reference image and synthesizes a texture map for that mesh. Choose the textured output for finished assets and shape-only when you texture the mesh elsewhere or only need geometry, which is much faster. The input should show one object on a clean background. The license is the Tencent Hunyuan Community License, which excludes some territories; read it before deploying.3. Deployment details
Hunyuan3D-2 runs on one GPU and does not use tensor or sequence parallelism. The shape DiT runs 50 steps with guidance 5.0 and the paint model 30 steps by default.
Measured with
sglang serve on SGLang main at 385262cabbae1: warmed /v1/meshes
requests with a fixed input image and seed; the time runs from the POST until
the mesh download finishes. Most of the shape-only time is mesh extraction and
export; the shape DiT itself takes about 2 s.
See the CLI reference for the remaining server flags.
4. Request examples
4.1 Offline generation
Command
shape_only.json with {"paint_enable": false}
and pass --pipeline-config-path shape_only.json to sglang serve.
