Dža ko lil

TRELLIS.2 LoRA Inference

Integriruj

Modelosko id trellis-2-lora
# 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?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

Kava mangipen: $0.25 250 API krediti Phir les kate

Lel API klidin
Microsoft Kip ko 3D

Trellis 2 image-to-3D savo šaj te aplicirin custom LoRA adapterura vaś structure, geometry thaj tekstura

Microsoft · 3D

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul image_url
Čhiv jekh fajl, vaj

URL e sursoske kipesko va konverzija ando 3D modelo.

resolution standardno 512

Keripaski rezolucija, le 1024 sava alosarel o cascade pipeline. Alosar i rezolucija savi trenirime si va o dine LoRA adapterur; jekhavipe si manglo.

Lučhe texture_lora_url · texture_size · sparse_structure_lora_url · geometry_lora_url · ss_guidance_strength · ss_guidance_rescale · ss_guidance_interval_start · ss_guidance_interval_end · ss_sampling_steps · ss_rescale_t · shape_slat_guidance_strength · shape_slat_guidance_rescale · shape_slat_guidance_interval_start · shape_slat_guidance_interval_end · shape_slat_sampling_steps · shape_slat_rescale_t · tex_slat_guidance_strength · tex_slat_guidance_rescale · tex_slat_guidance_interval_start · tex_slat_guidance_interval_end · tex_slat_sampling_steps · tex_slat_rescale_t · decimation_target · seed · enable_safety_checker

Opcionalno LoRA checkpoint ando safetensors formato, trenirime specifično va texture denoiser.

texture_size standardno 2048

Rezolucija e teksturake baked ando GLB export.

Opcionalno LoRA checkpoint ando safetensors formato, trenirime specifično va sparse structure denoiser.

Opcionalno LoRA checkpoint ando safetensors formato, trenirime specifično va geometry denoiser.

standardno 7.5

Zoripen e classifier-free guidance kana kerel pes sparse structure.

standardno 0.7

Guidance rescaling kana kerel pes sparse structure. Majbare qiymetur keren o rezultato majstabilno.

standardno 0.6

Fraction e denoising progress-eskiri kaj sparse-structure guidance startinel.

standardno 1

Utilizin denoising fraction pe vaj upral `ss_guidance_interval_start` va te specifikhin kana sparse-structure guidance ačhel.

standardno 12

Denoising pasosko ginenipen kana kerel pes sparse structure.

standardno 5

Zoripen e noise schedule kana kerel pes sparse structure.

standardno 7.5

Zoripen e classifier-free guidance kana kerel pes shape.

standardno 0.5

Rescaling aplikerdo pe guidance kana kerel pes shape; barar les kana e geometria dikhel noisena.

standardno 0.6

Fraction e denoising-eskiri kaj shape-stage guidance startinel.

standardno 1

Ačhavipasko pointo va shape-stage guidance, ekspresime sar denoising fraction na cikneder sar shape_slat_guidance_interval_start.

standardno 12

Denoising pasosko ginenipen kana kerel pes shape.

standardno 3

Zoripen e noise schedule kana kerel pes shape.

standardno 1

Zoripen e classifier-free guidance kana kerel pes texture.

standardno 0

Rescaling aplikerdo pe guidance kana kerel pes texture; barar les kana e tekstura dikhen noisena.

standardno 0.6

Fraction e denoising-eskiri kaj texture-stage guidance startinel.

standardno 0.9

Ačhavipasko pointo va texture-stage guidance, ekspresime sar denoising fraction na cikneder sar tex_slat_guidance_interval_start.

standardno 12

Denoising pasosko ginenipen kana kerel pes texture.

standardno 3

Zoripen e noise schedule kana kerel pes texture.

standardno 500000

Kamime ginenipen e verticesko ando GLB export.

Random semeno savo kerel e keripe te šaj pale kerel pes.

POST /run/trellis-2-lora?wait=20 hesab → $0.25
# 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?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal TRELLIS.2 LoRA Inference

Kerel jek GLB andar `image_url`, opcionalno aplicirin safetensors LoRAs katar `sparse_structure_lora_url`, `geometry_lora_url` thaj `texture_lora_url`. `resolution` si 512 vaj 1024 thaj trubul te sovel e adapterenge training rezolucijasa. Dikhena peske stage lidžaripe thaj paso kontrola, `decimation_target` thaj `texture_size`.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
image_urltrubul image
Tipurl · image
URL e sursoske kipesko va konverzija ando 3D modelo.
sparse_structure_lora_urlopcionalno
Tipstring | null
Opcionalno LoRA checkpoint ando safetensors formato, trenirime specifično va sparse structure denoiser.
geometry_lora_urlopcionalno
Tipstring | null
Opcionalno LoRA checkpoint ando safetensors formato, trenirime specifično va geometry denoiser.
texture_lora_urlopcionalno
Tipstring | null
Opcionalno LoRA checkpoint ando safetensors formato, trenirime specifično va texture denoiser.
seedopcionalno
Tipinteger | null
Random semeno savo kerel e keripe te šaj pale kerel pes.
resolutionopcionalno
Tipenum
standardno512
5121024
Keripaski rezolucija, le 1024 sava alosarel o cascade pipeline. Alosar i rezolucija savi trenirime si va o dine LoRA adapterur; jekhavipe si manglo.
ss_guidance_strengthopcionalno
Tipnumber
standardno7.5
0 – 10
Zoripen e classifier-free guidance kana kerel pes sparse structure.
ss_guidance_rescaleopcionalno
Tipnumber
standardno0.7
0 – 1
Guidance rescaling kana kerel pes sparse structure. Majbare qiymetur keren o rezultato majstabilno.
ss_guidance_interval_startopcionalno
Tipnumber
standardno0.6
0 – 1
Fraction e denoising progress-eskiri kaj sparse-structure guidance startinel.
ss_guidance_interval_endopcionalno
Tipnumber
standardno1
0 – 1
Utilizin denoising fraction pe vaj upral `ss_guidance_interval_start` va te specifikhin kana sparse-structure guidance ačhel.
ss_sampling_stepsopcionalno
Tipinteger
standardno12
1 – 50
Denoising pasosko ginenipen kana kerel pes sparse structure.
ss_rescale_topcionalno
Tipnumber
standardno5
1 – 6
Zoripen e noise schedule kana kerel pes sparse structure.
shape_slat_guidance_strengthopcionalno
Tipnumber
standardno7.5
0 – 10
Zoripen e classifier-free guidance kana kerel pes shape.
shape_slat_guidance_rescaleopcionalno
Tipnumber
standardno0.5
0 – 1
Rescaling aplikerdo pe guidance kana kerel pes shape; barar les kana e geometria dikhel noisena.
shape_slat_guidance_interval_startopcionalno
Tipnumber
standardno0.6
0 – 1
Fraction e denoising-eskiri kaj shape-stage guidance startinel.
shape_slat_guidance_interval_endopcionalno
Tipnumber
standardno1
0 – 1
Ačhavipasko pointo va shape-stage guidance, ekspresime sar denoising fraction na cikneder sar shape_slat_guidance_interval_start.
shape_slat_sampling_stepsopcionalno
Tipinteger
standardno12
1 – 50
Denoising pasosko ginenipen kana kerel pes shape.
shape_slat_rescale_topcionalno
Tipnumber
standardno3
1 – 6
Zoripen e noise schedule kana kerel pes shape.
tex_slat_guidance_strengthopcionalno
Tipnumber
standardno1
0 – 10
Zoripen e classifier-free guidance kana kerel pes texture.
tex_slat_guidance_rescaleopcionalno
Tipnumber
standardno0
0 – 1
Rescaling aplikerdo pe guidance kana kerel pes texture; barar les kana e tekstura dikhen noisena.
tex_slat_guidance_interval_startopcionalno
Tipnumber
standardno0.6
0 – 1
Fraction e denoising-eskiri kaj texture-stage guidance startinel.
tex_slat_guidance_interval_endopcionalno
Tipnumber
standardno0.9
0 – 1
Ačhavipasko pointo va texture-stage guidance, ekspresime sar denoising fraction na cikneder sar tex_slat_guidance_interval_start.
tex_slat_sampling_stepsopcionalno
Tipinteger
standardno12
1 – 50
Denoising pasosko ginenipen kana kerel pes texture.
tex_slat_rescale_topcionalno
Tipnumber
standardno3
1 – 6
Zoripen e noise schedule kana kerel pes texture.
decimation_targetopcionalno
Tipinteger
standardno500000
5,000 – 2,000,000
Kamime ginenipen e verticesko ando GLB export.
texture_sizeopcionalno
Tipenum
standardno2048
102420484096
Rezolucija e teksturake baked ando GLB export.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "trellis-2-lora",
  "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": 250,
    "usd": "0.25",
    "charged": 250,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "model_glb": {
      "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
    },
    "seed": 42,
    "resolution": 1,
    "sparse_structure_lora_url": "string",
    "geometry_lora_url": "string",
    "texture_lora_url": "string",
    "decimation_target": 1,
    "texture_size": 1
  },
  "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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
model_glb
object {url, content_type, file_name, file_size}GLB fajlo savo lel o kerdo 3D modelo.
seed
integerSemeno përdživalo ande keripe.
resolution
integerRezolucija pe savi keripasko kerdo.
sparse_structure_lora_url
string | nullSparse-structure LoRA checkpoint utilizime kana kerel pes o keripe, te sas aplikirime.
geometry_lora_url
string | nullGeometry LoRA checkpoint utilizime kana kerel pes o keripe, te sas aplikirime.
texture_lora_url
string | nullTexture LoRA checkpoint utilizime kana kerel pes o keripe, te sas aplikirime.
decimation_target
integerVertex-count target aplikerdo pe GLB export.
texture_size
integerRezolucija e teksturake baked ando GLB export.

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/trellis-2-lora.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt