Skip to content

Trellis 2

POST/v1/run

Trellis 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.

stringmodelrequired

Model identifier. Set to trellis/trellis-2/retexture.

Default: trellis/trellis-2/retexture

stringimagerequired

URL of the reference image for texturing

Optional<integer>resolution

Internal resolution for texture generation. Higher produces finer texture details but is slower.

Allowed values: 512, 1024

Default: 1024

Optional<number>tex_slat_guidance_strength

How closely the texture follows the input image colors. Higher values produce more vivid but potentially oversaturated textures.

Range: 0 to 10

Default: 1

Optional<integer>tex_slat_sampling_steps

Number of denoising steps for texture generation. More steps = slower but potentially cleaner textures.

Range: 1 to 50

Default: 12

Optional<number>tex_slat_guidance_interval_end

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

Optional<number>tex_slat_guidance_rescale

Dampens artifacts from high guidance in the texture stage. Increase if textures look noisy or have color banding.

Range: 0 to 1

Default: 0

Optional<number>tex_slat_guidance_interval_start

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

Optional<number>tex_slat_rescale_t

Controls noise schedule sharpness for texture generation. Higher values produce sharper texture details.

Range: 1 to 6

Default: 3

Optional<string>mesh_url

URL of the untextured 3D mesh to retexture. Supports GLB, OBJ, PLY, and STL formats.

Optional<integer>texture_size

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

Optional<integer>seed

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.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: image-to-3d

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async