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

stringidrequired

Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.

stringstatusrequired

Current public run status.

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

Optional<string>model

Public SandBase model name used for this run.

Optional<array<object>>outputs

Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.

Optional<object>error

Present only for failed or timeout runs. Contains a public error type and sanitized message.

Optional<string>error.type

Stable public error category.

Optional<string>error.message

Sanitized error message safe to show to clients.

Optional<object>usage

Usage details when available.

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