TRELLIS.2-4B

TRELLIS.2-4B
Microsoft · 3D Generation
POST /v1/3d/generations

TRELLIS.2 image-to-3D model that turns a reference image into a textured GLB asset with resolution, seed, mesh, texture, and export controls.

At a glance

FieldValue
Model idtrellis-2-4b
Input modalitiesImage
Output modalities3D
Context window
Weight precisionMixed BF16/FP16
Featuresimage_to_3d, glb_output, pbr_materials, seed_control, commercial_ready
Native inferenceYes
NewYes
Supported endpointsPOST /v1/3d/generations

Pricing

ChargeSpecRate
512 assetper request$0.025 (was $0.25)
1024 assetper request$0.249 (was $0.30)
1536 assetper request$0.499

Example request

$curl https://api.empiriolabs.ai/v1/3d/generations \
> -H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
> -H 'Content-Type: application/json' \
> -d '{"model": "trellis-2-4b", "image_url": "https://example.com/product-photo.png", "resolution": "1024", "texture_size": "2048"}'

Parameters

ParameterTypeRequiredDefaultDescription
imageimageyesReference image URL, data URI, or uploaded image object.
resolutionenumno"1024"Voxel grid resolution. Higher values are slower and more detailed. · Allowed: 512, 1024, 1536
pipeline_typeenumno"1024_cascade"Explicit TRELLIS pipeline. Leave on 1024 cascade unless you need the 512 or 1536 path. · Allowed: 512, 1024_cascade, 1536_cascade
seedintegerno42Random seed for reproducible generations. · Range: 0 – 2147483647
preprocess_imagebooleannotrueRemove background and normalize the reference image before generation.
max_num_tokensintegerno49152Maximum sparse tokens used for cascade generation. · Range: 1024 – 131072
ss_sampling_stepsintegerno12Sampler steps for sparse structure generation. · Range: 1 – 64
ss_guidance_strengthnumberno7.5Guidance strength for sparse structure generation. · Range: 0 – 20
ss_guidance_rescalenumberno0.7Guidance rescale for sparse structure generation. · Range: 0 – 2
ss_guidance_interval_startnumberno0.6Start of the sparse-structure guidance interval. · Range: 0 – 1
ss_guidance_interval_endnumberno1End of the sparse-structure guidance interval. · Range: 0 – 1
ss_rescale_tnumberno5Rescale temperature for sparse structure generation. · Range: 0 – 20
shape_slat_sampling_stepsintegerno12Sampler steps for shape structured latent generation. · Range: 1 – 64
shape_slat_guidance_strengthnumberno7.5Guidance strength for shape structured latent generation. · Range: 0 – 20
shape_slat_guidance_rescalenumberno0.5Guidance rescale for shape structured latent generation. · Range: 0 – 2
shape_slat_guidance_interval_startnumberno0.6Start of the shape SLat guidance interval. · Range: 0 – 1
shape_slat_guidance_interval_endnumberno1End of the shape SLat guidance interval. · Range: 0 – 1
shape_slat_rescale_tnumberno3Rescale temperature for shape structured latent generation. · Range: 0 – 20
tex_slat_sampling_stepsintegerno12Sampler steps for texture structured latent generation. · Range: 1 – 64
tex_slat_guidance_strengthnumberno1Guidance strength for texture structured latent generation. · Range: 0 – 20
tex_slat_guidance_rescalenumberno0Guidance rescale for texture structured latent generation. · Range: 0 – 2
tex_slat_guidance_interval_startnumberno0.6Start of the texture SLat guidance interval. · Range: 0 – 1
tex_slat_guidance_interval_endnumberno0.9End of the texture SLat guidance interval. · Range: 0 – 1
tex_slat_rescale_tnumberno3Rescale temperature for texture structured latent generation. · Range: 0 – 20
texture_sizeenumno"2048"Texture resolution baked onto the GLB material. · Allowed: 1024, 2048, 4096
decimation_targetintegerno500000Approximate target vertex count for the exported mesh. · Range: 10000 – 1000000
remeshbooleannotrueRebuild mesh topology before UV unwrapping and texture baking.
remesh_bandnumberno1Remeshing band size. · Range: 0 – 5
remesh_projectnumberno0.9Projection factor used during remeshing. · Range: 0 – 1
uv_unwrap_angle_threshold_degnumberno90Cone half-angle threshold used for UV unwrap clustering. · Range: 1 – 180
uv_unwrap_refine_iterationsintegerno0UV clustering refinement iterations. · Range: 0 – 10
uv_unwrap_global_iterationsintegerno1Global UV clustering iterations. · Range: 0 – 10
uv_unwrap_smooth_strengthnumberno1UV cluster smoothing strength. · Range: 0 – 10
response_formatenumno"url"Return signed media URLs by default, or inline base64 JSON when requested. · Allowed: url, b64_json
verbosebooleannofalseEnable verbose mesh export logging.

Notes

Defaults

  • 1024 cascade pipeline
  • 12 sampler steps per stage
  • 2048 texture size
  • 500k decimation target
  • GLB output

Controls

Supports image URL or upload, 512/1024/1536 resolution, seed, pipeline type, sampler guidance/interval/rescale controls, texture size, mesh decimation, remeshing, UV unwrap tuning, and URL or base64 output. Billing is per generated 3D asset.


Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/trellis-2-4b.