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 a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.
Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.
Current public run status.
Allowed values: pending, running, completed, failed, timeout
Public SandBase model name used for this run.
Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.
Present only for failed or timeout runs. Contains a public error type and sanitized message.
Stable public error category.
Sanitized error message safe to show to clients.
Usage details when available.
Model capabilities
Capabilities declared by the model registry.
Default: image-to-3d
Execution mode declared by the model registry.
Default: async