API reference · trellis

trellis/trellis-2

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

IMAGEAsyncOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDtrellis/trellis-2
01

Input Schema

30 parameters · 1 required · 29 optional

ParameterTypeRequiredDescription
imagestringRequiredURL of the input image to convert to 3D
seedintegerOptionalRandom seed for reproducibility
remeshbooleanOptionalRebuild the mesh topology for cleaner triangles. Slower but usually produces better results for downstream use (animation, 3D printing, etc). · Default: true
resolutionintegerOptionalOutput resolution; higher is slower but more detailed · Options: 512, 1024, 1536 · Default: 1024
51210241536
remesh_bandnumberOptionalControls how far remeshing can move vertices from the original surface. Higher values allow more smoothing but may lose fine details. · Min: 0 · Max: 4 · Default: 1
ss_rescale_tnumberOptionalControls noise schedule sharpness for structure generation. Higher values produce sharper transitions. · Min: 1 · Max: 6 · Default: 5
texture_sizeintegerOptionalResolution of the texture image baked onto the mesh. Higher values capture finer surface details but produce larger files. · Options: 1024, 2048, 4096 · Default: 2048
102420484096
remesh_projectnumberOptionalHow much to project remeshed vertices back onto the original surface. 0 = no projection (smoother), 1 = full projection (preserves detail). · Min: 0 · Max: 1 · Default: 0
decimation_targetintegerOptionalTarget 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. · Min: 5000 · Max: 2000000 · Default: 500000
ss_sampling_stepsintegerOptionalNumber of denoising steps for the initial structure. More steps = slower but potentially higher quality. · Min: 1 · Max: 50 · Default: 12
tex_slat_rescale_tnumberOptionalControls noise schedule sharpness for texture generation. Higher values produce sharper texture details. · Min: 1 · Max: 6 · Default: 3
ss_guidance_rescalenumberOptionalDampens artifacts from high guidance in stage 1. Lower values allow stronger guidance effects, higher values stabilize the output. · Min: 0 · Max: 1 · Default: 0.7
shape_slat_rescale_tnumberOptionalControls noise schedule sharpness for shape refinement. Higher values produce sharper geometric details. · Min: 1 · Max: 6 · Default: 3
ss_guidance_strengthnumberOptionalHow closely the initial 3D structure follows the input image. Higher values produce more faithful but potentially noisier results. · Min: 0 · Max: 10 · Default: 7.5
tex_slat_sampling_stepsintegerOptionalNumber of denoising steps for texture generation. More steps = slower but potentially cleaner textures. · Min: 1 · Max: 50 · Default: 12
ss_guidance_interval_endnumberOptionalFraction of the denoising process at which classifier-free guidance ends for stage 1 (sparse structure). Must be >= ss_guidance_interval_start. · Min: 0 · Max: 1 · Default: 1
shape_slat_sampling_stepsintegerOptionalNumber of denoising steps for shape refinement. More steps = slower but potentially smoother geometry. · Min: 1 · Max: 50 · Default: 12
tex_slat_guidance_rescalenumberOptionalDampens artifacts from high guidance in the texture stage. Increase if textures look noisy or have color banding. · Min: 0 · Max: 1 · Default: 0
uv_unwrap_smooth_strengthnumberOptionalSmoothing strength applied to UV chart boundaries. Higher values reduce visible seams but may introduce UV distortion. · Min: 0 · Max: 10 · Default: 1
ss_guidance_interval_startnumberOptionalFraction 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. · Min: 0 · Max: 1 · Default: 0.6
tex_slat_guidance_strengthnumberOptionalHow closely the texture follows the input image colors. Higher values produce more vivid but potentially oversaturated textures. · Min: 0 · Max: 10 · Default: 1
shape_slat_guidance_rescalenumberOptionalDampens artifacts from high guidance in the shape stage. Increase if you see noisy geometry. · Min: 0 · Max: 1 · Default: 0.5
uv_unwrap_global_iterationsintegerOptionalNumber of global clustering passes during UV chart computation. More passes produce more balanced charts. · Min: 1 · Max: 10 · Default: 1
uv_unwrap_refine_iterationsintegerOptionalNumber of local refinement passes during UV chart computation. Higher values produce cleaner chart boundaries at the cost of additional UV-unwrap time. · Min: 0 · Max: 10 · Default: 0
shape_slat_guidance_strengthnumberOptionalHow closely the detailed geometry follows the input image. Higher values add more detail but may introduce noise. · Min: 0 · Max: 10 · Default: 7.5
uv_unwrap_angle_threshold_degnumberOptionalMaximum 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. · Min: 0 · Max: 180 · Default: 90
tex_slat_guidance_interval_endnumberOptionalFraction of the denoising process at which classifier-free guidance ends for stage 3 (texture). Must be >= tex_slat_guidance_interval_start. · Min: 0 · Max: 1 · Default: 0.9
shape_slat_guidance_interval_endnumberOptionalFraction of the denoising process at which classifier-free guidance ends for stage 2 (shape refinement). Must be >= shape_slat_guidance_interval_start. · Min: 0 · Max: 1 · Default: 1
tex_slat_guidance_interval_startnumberOptionalFraction of the denoising process at which classifier-free guidance starts for stage 3 (texture). Guidance is only applied between interval_start and interval_end. · Min: 0 · Max: 1 · Default: 0.6
shape_slat_guidance_interval_startnumberOptionalFraction 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. · Min: 0 · Max: 1 · Default: 0.6
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model uses asynchronous execution. Submit a request and poll for the result.

  1. Submit — POST to /v1/run, receive an id
  2. Poll — GET /v1/run/{id} until status is completed, failed, or timeout
  3. Retrieve — Read outputs from the completed response
03

Code Examples

Ready-to-run snippets

# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "trellis/trellis-2",
  "image": "https://static.sandbase.ai/examples/trellis/trellis-2/input_image_0.png",
  "remesh": true,
  "resolution": 1024,
  "remesh_band": 1,
  "ss_rescale_t": 5,
  "texture_size": 2048,
  "remesh_project": 0,
  "decimation_target": 500000,
  "ss_sampling_steps": 12,
  "tex_slat_rescale_t": 3,
  "ss_guidance_rescale": 0.7,
  "shape_slat_rescale_t": 3,
  "ss_guidance_strength": 7.5,
  "tex_slat_sampling_steps": 12,
  "ss_guidance_interval_end": 1,
  "shape_slat_sampling_steps": 12,
  "tex_slat_guidance_rescale": 0,
  "uv_unwrap_smooth_strength": 1,
  "ss_guidance_interval_start": 0.6,
  "tex_slat_guidance_strength": 1,
  "shape_slat_guidance_rescale": 0.5,
  "uv_unwrap_global_iterations": 1,
  "uv_unwrap_refine_iterations": 0,
  "shape_slat_guidance_strength": 7.5,
  "uv_unwrap_angle_threshold_deg": 90,
  "tex_slat_guidance_interval_end": 0.9,
  "shape_slat_guidance_interval_end": 1,
  "tex_slat_guidance_interval_start": 0.6,
  "shape_slat_guidance_interval_start": 0.6,
  "prompt": "a beautiful sunset over mountains"
}'

# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
  -H "Authorization: Bearer YOUR_API_KEY"