Skip to content

TRELLIS.2 Trainer

Integrate

Model id trellis-2-lora-trainer
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/trellis-2-lora-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "data_url": "https://example.com/your-file.zip"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $15.973 15,973 API credits your files are measured before the run Run it on this page

Get API key
Microsoft Training

Trains LoRA adapters for Trellis 2 on a zip of 3D assets, for up to three denoisers

Microsoft · File

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

resolution default 512

Training resolution must equal the dataset's preprocessing resolution. Geometry and texture training each have separate configurations for 512 and 1024, whereas sparse-structure training shares a configuration across these resolutions.

rank default 32

Rank of the LoRA adapter; larger values provide greater adapter capacity.

•required

Dataset archive URL: supply raw 3D assets packaged as a .zip, or use the preprocessed TRELLIS.2 dataset zip returned by data_preprocessing.

default 1000

Total count of training steps.

Selection of 1–3 distinct TRELLIS.2 denoisers from sparse_structure, geometry, and texture for fine-tuning. Parallel training uses a shared preprocessed dataset to produce a separate LoRA adapter for each selected entry.

Advanced learning_rate
default 0.0001

Learning rate used to optimize LoRA.

POST /run/trellis-2-lora-trainer?wait=20 quote → $15.973
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/trellis-2-lora-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "data_url": "https://example.com/your-file.zip"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About TRELLIS.2 Trainer

Fine-tunes adapters from a zip at `data_url`, containing raw 3D assets or a preprocessed dataset. `denoisers` selects 1 to 3 targets, each trained as its own adapter. Settings: `resolution` 512 or 1024, `rank` 16, 32 or 64, `learning_rate`, and `training_steps` from 100 to 10000. It returns adapters, any failures and the reusable preprocessed data.

Parameters

NameType DefaultAllowed Description
data_urlrequired
Typestring
Dataset archive URL: supply raw 3D assets packaged as a .zip, or use the preprocessed TRELLIS.2 dataset zip returned by data_preprocessing.
denoisersoptional
Typeenum[]
≤ 3 items
Selection of 1–3 distinct TRELLIS.2 denoisers from sparse_structure, geometry, and texture for fine-tuning. Parallel training uses a shared preprocessed dataset to produce a separate LoRA adapter for each selected entry.
resolutionoptional
Typeenum
Default512
5121024
Training resolution must equal the dataset's preprocessing resolution. Geometry and texture training each have separate configurations for 512 and 1024, whereas sparse-structure training shares a configuration across these resolutions.
rankoptional
Typeenum
Default32
163264
Rank of the LoRA adapter; larger values provide greater adapter capacity.
learning_rateoptional
Typenumber
Default0.0001
0.000001 – 0.01
Learning rate used to optimize LoRA.
training_stepsoptional
Typeinteger
Default1000
100 – 10,000
Total count of training steps.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "trellis-2-lora-trainer",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 15973,
    "usd": "15.973",
    "charged": 15973,
    "refunded": 0
  },
  "input": {
    "data_url": "https://example.com/your-file.zip"
  },
  "output": {
    "adapters": [
      {
        "denoiser": "sparse_structure",
        "resolution": 1,
        "lora_file": {
          "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
          "content_type": "image/jpeg",
          "file_name": "0-output.jpeg",
          "file_size": 1843200
        },
        "rank": 1,
        "training_steps": 1,
        "learning_rate": 1.0
      }
    ],
    "failed": [
      {
        "denoiser": "sparse_structure",
        "error": "string"
      }
    ],
    "preprocessed_data_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
adapters
array of object {denoiser, resolution, lora_file, rank, training_steps, learning_rate}LoRA adapter files mapped to their corresponding trellis-2-lora inference fields. The response includes one adapter for each denoiser whose training succeeded; use its file in that matching field.
failed
array of object {denoiser, error}Unsuccessful denoiser training results; only denoisers that failed to finish training appear here, so success across all requested denoisers leaves this empty.
preprocessed_data_file
object {url, content_type, file_name, file_size}Preprocessed TRELLIS.2 dataset zip used during training and available for reuse.

For AI agents: this page as Markdown is at https://doitong.com/developers/models/trellis-2-lora-trainer.md. All models and guides: https://doitong.com/developers/llms.txt