TRELLIS.2

TRELLIS.2 is a 4-billion-parameter 3D generative model that transforms 2D images into fully textured 3D assets with complex topology, sharp features, and physically based rendering materials. It uses a novel field-free sparse voxel representation and scalable structured latent space to enable efficient, high-resolution 3D generation from single image input.

API Reference
INTEGRATE
Complete technical specification for integration
RequestResponse
Examples8
CODE
Ready-to-use code snippets for common workflows
Underground Safety Mole Character Model
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
settings: {
resolution: 1024,
textureSize: 2048,
remesh: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/29d4381c-08b0-4359-851d-fd790502d615.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/29d4381c-08b0-4359-851d-fd790502d615.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "331e6717-e52d-4d5b-a2f3-e7706c692af2",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/29d4381c-08b0-4359-851d-fd790502d615.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
settings.resolution=1024 \
settings.textureSize=2048 \
settings.remesh=true \
inputs.image=https://assets.runware.ai/assets/inputs/29d4381c-08b0-4359-851d-fd790502d615.jpg{
"taskType": "3dInference",
"taskUUID": "331e6717-e52d-4d5b-a2f3-e7706c692af2",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/29d4381c-08b0-4359-851d-fd790502d615.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "331e6717-e52d-4d5b-a2f3-e7706c692af2",
"seed": 1772785070,
"cost": 0.0166,
"outputs": {
"files": [
{
"uuid": "c4f12b9a-0ef1-498d-8656-9a05e4fc772b",
"url": "https://im.runware.ai/image/os/a03d21/ws/5/ii/c4f12b9a-0ef1-498d-8656-9a05e4fc772b.glb"
}
]
}
}Tidal Monitoring Cabin Environment Module
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
settings: {
resolution: 1024,
textureSize: 2048,
remesh: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/5b472250-afda-43d5-be68-35ed6e3840a3.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5b472250-afda-43d5-be68-35ed6e3840a3.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "45207280-bb45-45f9-b239-d2815554cb3c",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5b472250-afda-43d5-be68-35ed6e3840a3.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
settings.resolution=1024 \
settings.textureSize=2048 \
settings.remesh=true \
inputs.image=https://assets.runware.ai/assets/inputs/5b472250-afda-43d5-be68-35ed6e3840a3.jpg{
"taskType": "3dInference",
"taskUUID": "45207280-bb45-45f9-b239-d2815554cb3c",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/5b472250-afda-43d5-be68-35ed6e3840a3.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "45207280-bb45-45f9-b239-d2815554cb3c",
"seed": 1415081447,
"cost": 0.0269,
"outputs": {
"files": [
{
"uuid": "216f663c-5e9e-4615-9b67-016f3d53257b",
"url": "https://im.runware.ai/image/os/a01d21/ws/5/ii/216f663c-5e9e-4615-9b67-016f3d53257b.glb"
}
]
}
}Neon Laundromat Cutaway Set Module
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
settings: {
resolution: 1024,
textureSize: 2048,
remesh: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/c3ec2b8a-876e-43fd-a1bf-8d81bfa22c00.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c3ec2b8a-876e-43fd-a1bf-8d81bfa22c00.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "d33c0123-ab89-4944-b8e4-206912b3ebdb",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c3ec2b8a-876e-43fd-a1bf-8d81bfa22c00.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
settings.resolution=1024 \
settings.textureSize=2048 \
settings.remesh=true \
inputs.image=https://assets.runware.ai/assets/inputs/c3ec2b8a-876e-43fd-a1bf-8d81bfa22c00.jpg{
"taskType": "3dInference",
"taskUUID": "d33c0123-ab89-4944-b8e4-206912b3ebdb",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c3ec2b8a-876e-43fd-a1bf-8d81bfa22c00.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "d33c0123-ab89-4944-b8e4-206912b3ebdb",
"seed": 124962657,
"cost": 0.0218,
"outputs": {
"files": [
{
"uuid": "2dbf311e-549a-42ba-81f1-1a9a1953c076",
"url": "https://im.runware.ai/image/os/a07dlim3/ws/5/ii/2dbf311e-549a-42ba-81f1-1a9a1953c076.glb"
}
]
}
}Portable Farrier Hoof Stand Model
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
settings: {
resolution: 1024,
textureSize: 2048,
remesh: true
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/e35681d0-7043-4862-9eed-6698b538a1c1.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": True
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e35681d0-7043-4862-9eed-6698b538a1c1.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "5613a9e3-0063-45f2-ae0a-858ba75bcfbb",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e35681d0-7043-4862-9eed-6698b538a1c1.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
settings.resolution=1024 \
settings.textureSize=2048 \
settings.remesh=true \
inputs.image=https://assets.runware.ai/assets/inputs/e35681d0-7043-4862-9eed-6698b538a1c1.jpg{
"taskType": "3dInference",
"taskUUID": "5613a9e3-0063-45f2-ae0a-858ba75bcfbb",
"model": "microsoft:trellis-2@4b",
"settings": {
"resolution": 1024,
"textureSize": 2048,
"remesh": true
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/e35681d0-7043-4862-9eed-6698b538a1c1.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "5613a9e3-0063-45f2-ae0a-858ba75bcfbb",
"seed": 862915391,
"cost": 0.009,
"outputs": {
"files": [
{
"uuid": "4b231a5a-be00-4e3d-9a29-71c00acd579e",
"url": "https://im.runware.ai/image/os/a03d21/ws/5/ii/4b231a5a-be00-4e3d-9a29-71c00acd579e.glb"
}
]
}
}Ornate Dragon Figurine
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
seed: 246813579,
settings: {
textureSize: 4096,
decimationTarget: 500000,
remesh: true,
resolution: 1536,
sparseStructure: {
guidanceStrength: 8,
guidanceRescale: 0.7,
steps: 30,
rescaleT: 3
},
shapeSlat: {
guidanceStrength: 7.5,
guidanceRescale: 0.7,
steps: 28,
rescaleT: 3
},
texSlat: {
guidanceStrength: 8.5,
guidanceRescale: 0.6,
steps: 32,
rescaleT: 3
}
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/59b5b9e2-7083-4adf-88be-2793dab06233.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"seed": 246813579,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": True,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/59b5b9e2-7083-4adf-88be-2793dab06233.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "5efab433-316e-4b0b-b8c4-6e0edbe3779c",
"model": "microsoft:trellis-2@4b",
"seed": 246813579,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/59b5b9e2-7083-4adf-88be-2793dab06233.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
seed=246813579 \
settings.textureSize=4096 \
settings.decimationTarget=500000 \
settings.remesh=true \
settings.resolution=1536 \
settings.sparseStructure.guidanceStrength=8 \
settings.sparseStructure.guidanceRescale=0.7 \
settings.sparseStructure.steps=30 \
settings.sparseStructure.rescaleT=3 \
settings.shapeSlat.guidanceStrength=7.5 \
settings.shapeSlat.guidanceRescale=0.7 \
settings.shapeSlat.steps=28 \
settings.shapeSlat.rescaleT=3 \
settings.texSlat.guidanceStrength=8.5 \
settings.texSlat.guidanceRescale=0.6 \
settings.texSlat.steps=32 \
settings.texSlat.rescaleT=3 \
inputs.image=https://assets.runware.ai/assets/inputs/59b5b9e2-7083-4adf-88be-2793dab06233.jpg{
"taskType": "3dInference",
"taskUUID": "5efab433-316e-4b0b-b8c4-6e0edbe3779c",
"model": "microsoft:trellis-2@4b",
"seed": 246813579,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/59b5b9e2-7083-4adf-88be-2793dab06233.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "5efab433-316e-4b0b-b8c4-6e0edbe3779c",
"seed": 246813579,
"cost": 0.0198,
"outputs": {
"files": [
{
"uuid": "2dba7e00-adc6-410e-bcf9-7011266bf24f",
"url": "https://im.runware.ai/image/os/a24d12/ws/4/ii/2dba7e00-adc6-410e-bcf9-7011266bf24f.glb"
}
]
}
}Hero Product Figurine
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
seed: 424242,
settings: {
textureSize: 4096,
decimationTarget: 500000,
remesh: true,
resolution: 1536,
sparseStructure: {
guidanceStrength: 8,
guidanceRescale: 0.7,
steps: 28,
rescaleT: 3
},
shapeSlat: {
guidanceStrength: 7.5,
guidanceRescale: 0.7,
steps: 30,
rescaleT: 3
},
texSlat: {
guidanceStrength: 8.5,
guidanceRescale: 0.6,
steps: 32,
rescaleT: 3
}
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/223fe72c-93a2-4a97-9c2a-81183a365353.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": True,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/223fe72c-93a2-4a97-9c2a-81183a365353.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "a8970b6f-a3d2-4fcd-abdb-6d44ac3477f0",
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/223fe72c-93a2-4a97-9c2a-81183a365353.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
seed=424242 \
settings.textureSize=4096 \
settings.decimationTarget=500000 \
settings.remesh=true \
settings.resolution=1536 \
settings.sparseStructure.guidanceStrength=8 \
settings.sparseStructure.guidanceRescale=0.7 \
settings.sparseStructure.steps=28 \
settings.sparseStructure.rescaleT=3 \
settings.shapeSlat.guidanceStrength=7.5 \
settings.shapeSlat.guidanceRescale=0.7 \
settings.shapeSlat.steps=30 \
settings.shapeSlat.rescaleT=3 \
settings.texSlat.guidanceStrength=8.5 \
settings.texSlat.guidanceRescale=0.6 \
settings.texSlat.steps=32 \
settings.texSlat.rescaleT=3 \
inputs.image=https://assets.runware.ai/assets/inputs/223fe72c-93a2-4a97-9c2a-81183a365353.jpg{
"taskType": "3dInference",
"taskUUID": "a8970b6f-a3d2-4fcd-abdb-6d44ac3477f0",
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/223fe72c-93a2-4a97-9c2a-81183a365353.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "a8970b6f-a3d2-4fcd-abdb-6d44ac3477f0",
"seed": 424242,
"cost": 0.0314,
"outputs": {
"files": [
{
"uuid": "6568996e-9567-4a40-84b4-1cc6202fe043",
"url": "https://im.runware.ai/image/os/a03d21/ws/4/ii/6568996e-9567-4a40-84b4-1cc6202fe043.glb"
}
]
}
}Ornate Fantasy Helmet
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
seed: 424242,
settings: {
textureSize: 4096,
decimationTarget: 500000,
remesh: true,
resolution: 1536,
sparseStructure: {
guidanceStrength: 8,
guidanceRescale: 0.7,
steps: 30,
rescaleT: 3
},
shapeSlat: {
guidanceStrength: 7.5,
guidanceRescale: 0.7,
steps: 28,
rescaleT: 3
},
texSlat: {
guidanceStrength: 8.5,
guidanceRescale: 0.6,
steps: 32,
rescaleT: 3
}
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/84e77cec-bda0-4930-94f8-cacad245251d.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": True,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/84e77cec-bda0-4930-94f8-cacad245251d.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "0ccf2b8e-db45-4439-bba8-6a1420848399",
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/84e77cec-bda0-4930-94f8-cacad245251d.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
seed=424242 \
settings.textureSize=4096 \
settings.decimationTarget=500000 \
settings.remesh=true \
settings.resolution=1536 \
settings.sparseStructure.guidanceStrength=8 \
settings.sparseStructure.guidanceRescale=0.7 \
settings.sparseStructure.steps=30 \
settings.sparseStructure.rescaleT=3 \
settings.shapeSlat.guidanceStrength=7.5 \
settings.shapeSlat.guidanceRescale=0.7 \
settings.shapeSlat.steps=28 \
settings.shapeSlat.rescaleT=3 \
settings.texSlat.guidanceStrength=8.5 \
settings.texSlat.guidanceRescale=0.6 \
settings.texSlat.steps=32 \
settings.texSlat.rescaleT=3 \
inputs.image=https://assets.runware.ai/assets/inputs/84e77cec-bda0-4930-94f8-cacad245251d.jpg{
"taskType": "3dInference",
"taskUUID": "0ccf2b8e-db45-4439-bba8-6a1420848399",
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 4096,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1536,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 32,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/84e77cec-bda0-4930-94f8-cacad245251d.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "0ccf2b8e-db45-4439-bba8-6a1420848399",
"seed": 424242,
"cost": 0.0454,
"outputs": {
"files": [
{
"uuid": "7e34d8eb-0823-4d73-bde7-8599a08bb505",
"url": "https://im.runware.ai/image/os/a05d22/ws/4/ii/7e34d8eb-0823-4d73-bde7-8599a08bb505.glb"
}
]
}
}Orc Character Bust
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'microsoft:trellis-2@4b',
seed: 424242,
settings: {
textureSize: 2048,
decimationTarget: 500000,
remesh: true,
resolution: 1024,
sparseStructure: {
guidanceStrength: 8,
guidanceRescale: 0.7,
steps: 30,
rescaleT: 3
},
shapeSlat: {
guidanceStrength: 7.5,
guidanceRescale: 0.7,
steps: 28,
rescaleT: 3
},
texSlat: {
guidanceStrength: 8.5,
guidanceRescale: 0.6,
steps: 30,
rescaleT: 3
}
},
inputs: {
image: 'https://assets.runware.ai/assets/inputs/41d320a9-1ed2-4dd8-9727-d83297535d02.jpg'
}
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 2048,
"decimationTarget": 500000,
"remesh": True,
"resolution": 1024,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 30,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/41d320a9-1ed2-4dd8-9727-d83297535d02.jpg"
}
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "3dInference",
"taskUUID": "bd373968-8512-4315-a95f-95a4401fea3e",
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 2048,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1024,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 30,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/41d320a9-1ed2-4dd8-9727-d83297535d02.jpg"
}
}
]'runware run microsoft:trellis-2@4b \
seed=424242 \
settings.textureSize=2048 \
settings.decimationTarget=500000 \
settings.remesh=true \
settings.resolution=1024 \
settings.sparseStructure.guidanceStrength=8 \
settings.sparseStructure.guidanceRescale=0.7 \
settings.sparseStructure.steps=30 \
settings.sparseStructure.rescaleT=3 \
settings.shapeSlat.guidanceStrength=7.5 \
settings.shapeSlat.guidanceRescale=0.7 \
settings.shapeSlat.steps=28 \
settings.shapeSlat.rescaleT=3 \
settings.texSlat.guidanceStrength=8.5 \
settings.texSlat.guidanceRescale=0.6 \
settings.texSlat.steps=30 \
settings.texSlat.rescaleT=3 \
inputs.image=https://assets.runware.ai/assets/inputs/41d320a9-1ed2-4dd8-9727-d83297535d02.jpg{
"taskType": "3dInference",
"taskUUID": "bd373968-8512-4315-a95f-95a4401fea3e",
"model": "microsoft:trellis-2@4b",
"seed": 424242,
"settings": {
"textureSize": 2048,
"decimationTarget": 500000,
"remesh": true,
"resolution": 1024,
"sparseStructure": {
"guidanceStrength": 8,
"guidanceRescale": 0.7,
"steps": 30,
"rescaleT": 3
},
"shapeSlat": {
"guidanceStrength": 7.5,
"guidanceRescale": 0.7,
"steps": 28,
"rescaleT": 3
},
"texSlat": {
"guidanceStrength": 8.5,
"guidanceRescale": 0.6,
"steps": 30,
"rescaleT": 3
}
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/41d320a9-1ed2-4dd8-9727-d83297535d02.jpg"
}
}{
"taskType": "3dInference",
"taskUUID": "bd373968-8512-4315-a95f-95a4401fea3e",
"seed": 424242,
"cost": 0.055,
"outputs": {
"files": [
{
"uuid": "112a24e5-7976-46b3-a22c-e658daaffdfe",
"url": "https://im.runware.ai/image/os/a01d21/ws/4/ii/112a24e5-7976-46b3-a22c-e658daaffdfe.glb"
}
]
}
}