Trellis 2
/v1/runTrellis 2 Retexture is trellis's image-to-3D AI model. Transform photographs into production-ready 3D meshes with accurate geometry and texture mapping.
Request body
Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.
Model identifier. Set to trellis/trellis-2/retexture.
Default: trellis/trellis-2/retexture
URL of the reference image for texturing
Internal resolution for texture generation. Higher produces finer texture details but is slower.
Allowed values: 512, 1024
Default: 1024
How closely the texture follows the input image colors. Higher values produce more vivid but potentially oversaturated textures.
Range: 0 to 10
Default: 1
Number of denoising steps for texture generation. More steps = slower but potentially cleaner textures.
Range: 1 to 50
Default: 12
Fraction of the denoising process at which classifier-free guidance ends for the texture stage. Must be >= tex_slat_guidance_interval_start.
Range: 0 to 1
Default: 0.9
Dampens artifacts from high guidance in the texture stage. Increase if textures look noisy or have color banding.
Range: 0 to 1
Default: 0
Fraction of the denoising process at which classifier-free guidance starts for the texture stage. Guidance is only applied between interval_start and interval_end.
Range: 0 to 1
Default: 0.6
Controls noise schedule sharpness for texture generation. Higher values produce sharper texture details.
Range: 1 to 6
Default: 3
URL of the untextured 3D mesh to retexture. Supports GLB, OBJ, PLY, and STL formats.
Resolution of the texture image baked onto the mesh. Higher values capture finer surface details but produce larger files.
Allowed values: 1024, 2048, 4096
Default: 2048
Random seed for reproducibility
Response Schema
The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.
Error message if the task failed. Empty on success.
Unique identifier for the generation task.
Model ID used for the prediction.
Array of generated content. Empty when status is not completed.
Status of the task: pending, running, completed, failed, or timeout.
Allowed values: pending, running, completed, failed, timeout
Model capabilities
Capabilities declared by the model registry.
Default: image-to-3d
Execution mode declared by the model registry.
Default: async

