
Hi3DGen
Turns a picture of one object into a detailed untextured 3D model, a mesh as a GLB file, by working out the surface…
Fine-tunableTRELLIS_IMAGE_LARGETurns a picture of one object into a 3D model, a coloured mesh as a GLB file, and can learn your own kinds of objects from pictures paired with meshes.

TRELLIS by Jianfeng Xiang, Zelong Lv and colleagues at Microsoft Research, released under the MIT License, Copyright (c) Microsoft Corporation. The mesh extraction method is FlexiCubes by NVIDIA, Apache License 2.0. The image encoder is DINOv2 by Meta, Apache License 2.0; background removal uses U^2-Net, Apache License 2.0.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
image | file | Yes | — | A picture of one object: PNG, JPEG or WebP, at most 20 MB and 8192 pixels on a side, and no side more than 8 times the other. A transparent background is used as it is; otherwise the object is cut out automatically. 1–2048 characters · image/png, jpeg, webp |
sparse_structure_guidance | number | No | 7.5 | How closely the shape follows the picture. High values can look overdone. 0–15 |
sparse_structure_steps | integer | No | 12 | Steps of the first stage, which decides where the object is. More steps take longer. 1–50 |
mesh_faces | integer | No | 300000 | The mesh is simplified to at most this many triangles; lower gives smaller files. 1000–1000000 |
latent_guidance | number | No | 3.0 | How closely the detail and colour follow the picture. 0–15 |
seed | integer | No | — | The same seed and inputs give the same object. Leave empty for a random seed. 0–2147483647 |
latent_steps | integer | No | 12 | Steps of the second stage, which adds surface detail and colour. More steps take longer. 1–50 |
Output. Returns GLB 3D model: The 3D object as a GLB file, Y up and its front towards +Z. A shaded preview PNG is in preview_s3_key.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=TRELLIS_IMAGE_LARGE" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image": "https://example.com/input.png",
"latent_guidance": 3.0,
"latent_steps": 12,
"mesh_faces": 300000,
"sparse_structure_guidance": 7.5,
"sparse_structure_steps": 12
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"TRELLIS_IMAGE_LARGE",
{
"image": "https://example.com/input.png",
"latent_guidance": 3.0,
"latent_steps": 12,
"mesh_faces": 300000,
"sparse_structure_guidance": 7.5,
"sparse_structure_steps": 12
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune TRELLIS Image Large on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 200 pairs of a picture and a mesh and a manifest.jsonl with one {"image": ..., "mesh": ...} line per pair. More rules: Good to know, in the README.
The steps are in the docs.
Price per request: 1.5285 credits ($0.015285). The price is shown again before every run; all prices are on the pricing page.