Trellis 2
/v1/runTrellis 2 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.
Default: trellis/trellis-2
URL of the input image to convert to 3D
Output resolution; higher is slower but more detailed
Allowed values: 512, 1024, 1536
Default: 1024
Dampens artifacts from high guidance in the shape stage. Increase if you see noisy geometry.
Range: 0 to 1
Default: 0.5
Maximum angle (in degrees) between adjacent face normals allowed within a single UV chart. Lower values produce more charts with less distortion; higher values produce fewer, larger charts with potentially more stretching.
Range: 0 to 180
Default: 90
Number of local refinement passes during UV chart computation. Higher values produce cleaner chart boundaries at the cost of additional UV-unwrap time.
Range: 0 to 10
Default: 0
How closely the detailed geometry follows the input image. Higher values add more detail but may introduce noise.
Range: 0 to 10
Default: 7.5
Controls noise schedule sharpness for texture generation. Higher values produce sharper texture details.
Range: 1 to 6
Default: 3
Fraction of the denoising process at which classifier-free guidance starts for stage 3 (texture). Guidance is only applied between interval_start and interval_end.
Range: 0 to 1
Default: 0.6
Number of denoising steps for shape refinement. More steps = slower but potentially smoother geometry.
Range: 1 to 50
Default: 12
Target number of vertices in the final mesh. Lower values produce smaller files but less detail. 500k is good for most uses, reduce to 20k-50k for web/mobile.
Range: 5000 to 2000000
Default: 500000
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
Dampens artifacts from high guidance in stage 1. Lower values allow stronger guidance effects, higher values stabilize the output.
Range: 0 to 1
Default: 0.7
Number of denoising steps for the initial structure. More steps = slower but potentially higher quality.
Range: 1 to 50
Default: 12
Fraction of the denoising process at which classifier-free guidance ends for stage 3 (texture). Must be >= tex_slat_guidance_interval_start.
Range: 0 to 1
Default: 0.9
Number of global clustering passes during UV chart computation. More passes produce more balanced charts.
Range: 1 to 10
Default: 1
Controls how far remeshing can move vertices from the original surface. Higher values allow more smoothing but may lose fine details.
Range: 0 to 4
Default: 1
Controls noise schedule sharpness for shape refinement. Higher values produce sharper geometric details.
Range: 1 to 6
Default: 3
Smoothing strength applied to UV chart boundaries. Higher values reduce visible seams but may introduce UV distortion.
Range: 0 to 10
Default: 1
How much to project remeshed vertices back onto the original surface. 0 = no projection (smoother), 1 = full projection (preserves detail).
Range: 0 to 1
Default: 0
How closely the initial 3D structure follows the input image. Higher values produce more faithful but potentially noisier results.
Range: 0 to 10
Default: 7.5
Fraction of the denoising process at which classifier-free guidance ends for stage 1 (sparse structure). Must be >= ss_guidance_interval_start.
Range: 0 to 1
Default: 1
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 stage 2 (shape refinement). Must be >= shape_slat_guidance_interval_start.
Range: 0 to 1
Default: 1
Fraction of the denoising process at which classifier-free guidance starts for stage 1 (sparse structure). Guidance is only applied between interval_start and interval_end; outside this window the model runs unguided. Lower values apply guidance earlier.
Range: 0 to 1
Default: 0.6
Fraction of the denoising process at which classifier-free guidance starts for stage 2 (shape refinement). Guidance is only applied between interval_start and interval_end.
Range: 0 to 1
Default: 0.6
Controls noise schedule sharpness for structure generation. Higher values produce sharper transitions.
Range: 1 to 6
Default: 5
Dampens artifacts from high guidance in the texture stage. Increase if textures look noisy or have color banding.
Range: 0 to 1
Default: 0
Rebuild the mesh topology for cleaner triangles. Slower but usually produces better results for downstream use (animation, 3D printing, etc).
Default: true
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