trellis/trellis
Trellis is trellis's image-to-3D AI model. Transform photographs into production-ready 3D meshes with accurate geometry and texture mapping.
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runtrellis/trellisInput Schema
8 parameters · 1 required · 7 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | URL of the input image to convert to 3D |
seed | integer | Optional | Random seed for reproducibility |
texture_size | integer | Optional | Texture resolution · Options: 512, 1024, 2048 · Default: 1024 51210242048 |
mesh_simplify | number | Optional | Mesh simplification factor · Min: 0.9 · Max: 0.98 · Default: 0.95 |
ss_sampling_steps | integer | Optional | Sampling steps for sparse structure generation · Min: 1 · Max: 50 · Default: 12 |
slat_sampling_steps | integer | Optional | Sampling steps for structured latent generation · Min: 1 · Max: 50 · Default: 12 |
ss_guidance_strength | number | Optional | Guidance strength for sparse structure generation · Min: 0 · Max: 10 · Default: 7.5 |
slat_guidance_strength | number | Optional | Guidance strength for structured latent generation · Min: 0 · Max: 10 · Default: 3 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
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",
"image": "https://static.sandbase.ai/examples/trellis/trellis/input_image_0.png",
"texture_size": 1024,
"mesh_simplify": 0.95,
"ss_sampling_steps": 12,
"slat_sampling_steps": 12,
"ss_guidance_strength": 7.5,
"slat_guidance_strength": 3,
"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"API README
Trellis
Trellis addresses the trellis/trellis workflow for trellis work in image production. The endpoint is especially useful when a project has a defined transformation goal and needs a repeatable request contract instead of an ad-hoc desktop step. Teams can place this named operation inside review, asset preparation, and publishing pipelines while keeping the original request attached to every result. Trellis is trellis's image-to-3D AI model. Transform photographs into production-ready 3D meshes with accurate geometry and texture mapping. Because trellis/trellis is a separate catalog entry, evaluations should use this route’s own inputs, output expectations, and billing behavior. That scope belongs to this named route, not to a neighboring version.
For example, the route documentation includes “https://static.sandbase.ai/examples/trellis/trellis/input_image_0.png”. The mandatory portion is image. seed controls random seed for reproducibility; image controls uRL of the input image to convert to 3D; texture size controls texture resolution; texture size accepts 512, 1024, 2048; mesh simplify controls mesh simplification factor; ss sampling steps controls sampling steps for sparse structure generation; slat sampling steps controls sampling steps for structured latent generation; ss guidance strength controls guidance strength for sparse structure generation. Trellis exposes seed, image, texture_size, mesh_simplify, ss_sampling_steps, slat_sampling_steps, ss_guidance_strength as its documented request surface. Applications can submit that exact shape asynchronously, retain the chosen arguments in job metadata, and collect the resulting media URL for review or publishing.
Highlights
- Single-image 3D reconstruction. Trellis turns one visual reference into a three-dimensional asset with inferred geometry beyond the visible view.
- Shape-and-appearance generation. The workflow produces both spatial structure and an associated visual treatment for immediate inspection.
- Reference-led identity. The source image anchors silhouette, proportions, color, and recognizable object details throughout reconstruction.
- Rapid concept asset. The result gives visualization and interactive teams a practical base for preview, cleanup, and downstream refinement.
Pricing
| Billing option | Price |
|---|---|
| Per request | $0.020000 |
When to Use
| Scenario | Why it fits |
|---|---|
| Choose Trellis | Use it when the job specifically calls for trellis and the route’s documented input contract matches assets already available in your workflow. |
| Keep the request reproducible | Use the required image explicitly, then record optional choices alongside the prompt for repeatable reruns. |
| Build controlled creative variations | Change one declared control at a time when comparing framing, format, duration, resolution, style, or other route-supported output decisions. |
| Integrate asynchronous delivery | Use this endpoint when an application can submit work, track completion, and collect the returned media URL instead of requiring an immediate inline artifact. |
| Validate before a large batch | Run representative prompts and source assets first, confirm the visual or audio behavior, then lock the successful request shape for scaled production. |
Prompt Guide
Lead with the subject or transformation, then add the composition, environment, style, lighting, motion, voice, or fidelity details relevant to this route. Keep every parameter inside the documented schema; the example below uses only fields declared for trellis/trellis.
{
"image": "https://static.sandbase.ai/examples/trellis/trellis/input_image_0.png",
"texture_size": 512
}
Technical Specs
| Specification | Details |
|---|---|
| Model ID | trellis/trellis |
| Execution mode | async |
| Task type | image |
seed | integer · optional |
image | string · required |
texture_size | integer · optional · choices: 512, 1024, 2048 |
mesh_simplify | number · optional · min 0.9 · max 0.98 |
ss_sampling_steps | integer · optional · min 1 · max 50 |
slat_sampling_steps | integer · optional · min 1 · max 50 |
ss_guidance_strength | number · optional · min 0 · max 10 |
slat_guidance_strength | number · optional · min 0 · max 10 |

