Njuolgga sisdollui

Trellis 2 · Retexture

Integrere

Modealla-id trellis-2/retexture
# 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/retexture?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",
    "mesh_url": "https://example.com/your-file.glb"
  }'

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

Dát ohcamuš: 0,24 $ 240 API-kreditta Vuodje dán siiddu alde

Oza API-čoavdaga
Microsoft Govas 3D #image-to-3d

Teksturere ođđasit dálá tekstuvralahttojuvvon 3D-mesh referánsa-gova mielde ja buvttada GLB

Microsoft · 3D

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo image_url
Luoitte fiilla, dahje

Referánsa-govva-URL tekstuvra várás.

resolution standárda 1024

Tekstuvradetailla ja gieđahallanjođánisvuohta sorjá dán ráhkadanresolušuvnnas; stuorut árvu addá dárkilut detailla, muhto gáibida guhkit áiggi.

•gáibiduvvo

Retexturing-gáldu URL tekstuvrata 3D mesh:i GLB, OBJ, PLY dahje STL-formáhtas.

Viiddiduvvon texture_size · 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 · seed
texture_size standárda 2048

Mesh-tekstuvrra resolušuvdna bakinga várás. Dárkilut báikkálaš detaljja dahká fiillaid stuorit go resolušuvdna stuoriduvvo.

standárda 1

Tekstuvrra ivdni-luondduvuođa stivren: alla heivehusain govvagi ivnniide čuovvun stuorida ivnni čielggasvuođa, muhto sáhttá dagahit badjelmearálaš ivnniid.

standárda 0

Stuorit dán heivehusa jus tekstuvrrat dahje ivdne-bánddat leat ruovttudávda: dat unnida artefaktaid mat bohtet garras stivremis tekstuvrra-láđis.

standárda 0.6

Classifier-free guidance álggahančuokkis tekstuvrra ráhkadeamis; guidance doaibmá dušše interval_start ja interval_end gaskkas.

standárda 0.9

Tekstuvrra guidance heaitinrádji, duohtavuođa háddenfrákšuvdnan; ii sáhte leat unnit go tex_slat_guidance_interval_start.

standárda 12

Denoising-láhkiid lohku tekstuvrraid ráhkadeamis. Stuoridemiin bargu bistá guhkit, muhto tekstuvrrat sáhttet šaddat čorgat.

standárda 3

Mearrit tekstuvrra detaljja čiehkašvuođa tekstuvrra-ráhkadeami ruovttudávda-gaskkain; stuoriduvvon árvu addá čiehkašeappot detaljjáid.

Sieda geardduhahtti sluččadan ráhkadeapmái.

POST /run/trellis-2/retexture?wait=20 haddemearrádus → 0,24 $
# 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/retexture?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",
    "mesh_url": "https://example.com/your-file.glb"
  }'

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

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Trellis 2 · Retexture birra

Bija ođđa tekstuvrra `mesh_url`-meshai (GLB, OBJ, PLY dahje STL) referánsa `image_url` vuođul. `resolution` lea 512 dahje 1024, ja `texture_size` 1024, 2048 dahje 4096. Tekstuvra-ceahkki stivrema ja sampling leat olamuttus. Geometriija ii ođastuvvo.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
image_urlgáibiduvvo image
Šládjaurl · image
Referánsa-govva-URL tekstuvra várás.
mesh_urlgáibiduvvo
Šládjastring
Retexturing-gáldu URL tekstuvrata 3D mesh:i GLB, OBJ, PLY dahje STL-formáhtas.
seedeaktodáhtolaš
Šládjainteger | null
Sieda geardduhahtti sluččadan ráhkadeapmái.
resolutioneaktodáhtolaš
Šládjaenum
Standárda1024
5121024
Tekstuvradetailla ja gieđahallanjođánisvuohta sorjá dán ráhkadanresolušuvnnas; stuorut árvu addá dárkilut detailla, muhto gáibida guhkit áiggi.
tex_slat_guidance_strengtheaktodáhtolaš
Šládjanumber
Standárda1
0 – 10
Tekstuvrra ivdni-luondduvuođa stivren: alla heivehusain govvagi ivnniide čuovvun stuorida ivnni čielggasvuođa, muhto sáhttá dagahit badjelmearálaš ivnniid.
tex_slat_guidance_rescaleeaktodáhtolaš
Šládjanumber
Standárda0
0 – 1
Stuorit dán heivehusa jus tekstuvrrat dahje ivdne-bánddat leat ruovttudávda: dat unnida artefaktaid mat bohtet garras stivremis tekstuvrra-láđis.
tex_slat_guidance_interval_starteaktodáhtolaš
Šládjanumber
Standárda0.6
0 – 1
Classifier-free guidance álggahančuokkis tekstuvrra ráhkadeamis; guidance doaibmá dušše interval_start ja interval_end gaskkas.
tex_slat_guidance_interval_endeaktodáhtolaš
Šládjanumber
Standárda0.9
0 – 1
Tekstuvrra guidance heaitinrádji, duohtavuođa háddenfrákšuvdnan; ii sáhte leat unnit go tex_slat_guidance_interval_start.
tex_slat_sampling_stepseaktodáhtolaš
Šládjainteger
Standárda12
1 – 50
Denoising-láhkiid lohku tekstuvrraid ráhkadeamis. Stuoridemiin bargu bistá guhkit, muhto tekstuvrrat sáhttet šaddat čorgat.
tex_slat_rescale_teaktodáhtolaš
Šládjanumber
Standárda3
1 – 6
Mearrit tekstuvrra detaljja čiehkašvuođa tekstuvrra-ráhkadeami ruovttudávda-gaskkain; stuoriduvvon árvu addá čiehkašeappot detaljjáid.
texture_sizeeaktodáhtolaš
Šládjaenum
Standárda2048
102420484096
Mesh-tekstuvrra resolušuvdna bakinga várás. Dárkilut báikkálaš detaljja dahká fiillaid stuorit go resolušuvdna stuoriduvvo.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "trellis-2/retexture",
  "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": 240,
    "usd": "0.24",
    "charged": 240,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "mesh_url": "https://example.com/your-file.glb"
  },
  "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
    }
  },
  "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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
model_glb
object {url, content_type, file_name, file_size}3D-modealla ráhkaduvvon GLB-hámis.

Eanet modeallat: Govas 3D

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/trellis-2/retexture.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt