Skip to main content
MicrosoftMediumHigh

TRELLIS

Microsoft's TRELLIS image-to-3D (836K+ runs โ€” the most-used 3D model on Replicate). Turns one or more images into a textured GLB 3D asset, with turntable render videos and optional Gaussian PLY.

77 credits
per generation
The most-used 3D model on Replicate
Single or multi-image input
Textured GLB export (generate_model)
Color/normal turntable render videos
Gaussian point cloud PLY export

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "firtoz/trellis",
  "input": {
    "images": [
      "https://example.com/product.png"
    ],
    "generate_model": true,
    "texture_size": 1024
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagesarrayYes-One or more images of the object (multiple angles improve quality)
seedintegerNo0Random seed (randomize_seed overrides)
randomize_seedbooleanNotrueRandomize seed
generate_colorbooleanNotrueGenerate a color turntable render video
generate_normalbooleanNofalseGenerate normal video render
generate_modelbooleanNofalseGenerate the textured GLB 3D model file
save_gaussian_plybooleanNofalseSave Gaussian point cloud as PLY file
return_no_backgroundbooleanNofalseReturn the preprocessed images without background
ss_guidance_strengthnumberNo7.5Stage 1: Sparse Structure Generation - Guidance Strength
ss_sampling_stepsintegerNo12Stage 1: Sparse Structure Generation - Sampling Steps
slat_guidance_strengthnumberNo3Stage 2: Structured Latent Generation - Guidance Strength
slat_sampling_stepsintegerNo12Stage 2: Structured Latent Generation - Sampling Steps
mesh_simplifynumberNo0.95Mesh simplification ratio for the GLB
texture_sizeintegerNo1024GLB texture resolution (when generate_model is true)

How to Provide File Input

There are 3 ways to provide files for the images parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=firtoz/trellis" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:images=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "firtoz/trellis",
  "input": {
    "prompt": "your prompt here",
    "images": ["https://example.com/image.jpg"]
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Product Photo to GLB

Create a textured 3D model from a single product photo

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "firtoz/trellis",
  "input": {
    "images": [
      "https://example.com/product.png"
    ],
    "generate_model": true,
    "texture_size": 1024
  }
}'

Tips & Best Practices

1Set generate_model: true to get the GLB file โ€” the default only renders preview videos
2Clean background photos work best; remove backgrounds first for tricky shots
3Provide 2-4 angles of the same object for noticeably better geometry
4Result is a JSON with model_file (GLB), render videos, and optional PLY

Use Cases

Product photos to 3D assets
Game asset prototyping
AR/VR content creation
3D printing previews
E-commerce 3D viewers