အကြောင်းအရာသို့ ကျော်ရန်

Trellis 2 · Retexture

ပေါင်းစည်းရန်

မော်ဒယ် 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်: ၀.၂၄ $ ၂၄၀ API ခရက်ဒစ် · ≈ ၂၅.၃၁ ₽ ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Microsoft ပုံမှ 3D #image-to-3d

ရှိပြီးသား မျက်နှာပြင်အသားပေးမထားသော 3D မက်ရှ်ကို ရည်ညွှန်းပုံနှင့် ကိုက်ညီအောင် မျက်နှာပြင်အသားပေးမှု ပြန်လည်ပြုလုပ်ပြီး GLB အဖြစ် ထုတ်ပေးသည်

Microsoft · 3D

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည် image_url
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

Texturing အတွက် အသုံးပြုသော ရည်ညွှန်းပုံ URL။

resolution မူလ 1024

Texture အသေးစိတ်နှင့် လုပ်ဆောင်မှုမြန်နှုန်းသည် ဤအတွင်းပိုင်း ဖန်တီးမှု ရုပ်ထွက်အရည်အသွေးပေါ် မူတည်သည်။ ၎င်းကို မြှင့်ပါက အသေးစိတ် ပိုကောင်းသော်လည်း အချိန်ပိုကြာသည်။

•လိုအပ်သည်

GLB၊ OBJ၊ PLY သို့မဟုတ် STL ဖော်မတ်ရှိ texture မပါသော 3D mesh အတွက် retexturing မူရင်း URL။

အဆင့်မြင့် 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 မူလ 2048

Baking အတွက် mesh texture ရုပ်ထွက်အရည်အသွေး။ ဤရုပ်ထွက်အရည်အသွေးကို မြှင့်တင်ပါက မျက်နှာပြင်အသေးစိတ် ပိုကောင်းသော်လည်း ဖိုင်အရွယ်အစား ပိုကြီးသည်။

မူလ 1

Texture အရောင်တူညီမှု ထိန်းချုပ်ချက်။ မြင့်မားသောဆက်တင်တွင် ထည့်သွင်းပုံရှိ အရောင်များနှင့် ပိုမိုလိုက်လျောညီထွေစေကာ အရောင်တောက်ပမှု တိုးလာသော်လည်း အရောင်လွန်ကဲနိုင်သည်။

မူလ 0

Texture များတွင် noise သို့မဟုတ် color banding ရှိပါက ဤဆက်တင်ကို မြှင့်တင်ပါ။ Texture stage အတွင်း ပြင်းထန်သော guidance ကြောင့် ဖြစ်သည့် artifact များကို လျှော့ချပေးသည်။

မူလ 0.6

Texture ဖန်တီးမှုအတွက် classifier-free guidance activation point။ Denoising တိုးတက်မှု၏ အချိုးအစားအဖြစ် ဖော်ပြပြီး interval_start ကို သတ်မှတ်သည်။ Guidance သည် interval_start နှင့် interval_end တို့က ကန့်သတ်ထားသော အပိုင်းအတွင်းသာ လုပ်ဆောင်သည်။

မူလ 0.9

Texture-stage classifier-free guidance အတွက် ရပ်တန့်မည့် အပိုင်းအခြား။ tex_slat_guidance_interval_start ထက် မနိမ့်သော denoising အချိုးအစားဖြင့် သတ်မှတ်သည်။

မူလ 12

Texture များဖန်တီးရာတွင် အသုံးပြုသည့် denoising အဆင့်အရေအတွက်။ အဆင့်အရေအတွက် တိုးပါက အချိန်ပိုကြာသော်လည်း texture ပိုသန့်ရှင်းနိုင်သည်။

မူလ 3

Texture-generation noise schedule မှတစ်ဆင့် texture detail ပြတ်သားမှုကို သတ်မှတ်ပါ။ ဤတန်ဖိုးကို မြှင့်တင်ပါက အသေးစိတ်များ ပိုပြတ်သားလာသည်။

ပြန်လည်ထုတ်လုပ်နိုင်သော ကျပန်းဖန်တီးမှုအတွက် အသုံးပြုသည့် seed။

POST /run/trellis-2/retexture?wait=20 ကုန်ကျစရိတ် → ၀.၂၄ $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Trellis 2 · Retexture အကြောင်း

ရည်ညွှန်းချက် `image_url` ကို အခြေခံ၍ `mesh_url` ရှိ မက်ရှ် (GLB၊ OBJ၊ PLY သို့မဟုတ် STL) တွင် မျက်နှာပြင်အသားပေးအသစ် ထည့်ပေးသည်။ `resolution` သည် 512 သို့မဟုတ် 1024 ဖြစ်ပြီး `texture_size` သည် 1024၊ 2048 သို့မဟုတ် 4096 ဖြစ်သည်။ မျက်နှာပြင်အသားပေးအဆင့်အတွက် လမ်းညွှန်မှုနှင့် ဆမ်ပလင်း ထိန်းချုပ်မှုများ ရရှိနိုင်သည်။ ဂျီဩမေတြီကို ပြန်လည်မထုတ်လုပ်ပါ။

ပါရာမီတာများ

စံအမည် သို့မဟုတ် မူရင်းအမည် တစ်ခုခုကိုသာ ပို့ပါ၊ နှစ်ခုလုံး မပို့ပါနှင့်။ စံအမည်များ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
image_urlလိုအပ်သည် image
အမျိုးအစားurl · image
Texturing အတွက် အသုံးပြုသော ရည်ညွှန်းပုံ URL။
mesh_urlလိုအပ်သည်
အမျိုးအစားstring
GLB၊ OBJ၊ PLY သို့မဟုတ် STL ဖော်မတ်ရှိ texture မပါသော 3D mesh အတွက် retexturing မူရင်း URL။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ပြန်လည်ထုတ်လုပ်နိုင်သော ကျပန်းဖန်တီးမှုအတွက် အသုံးပြုသည့် seed။
resolutionရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး1024
5121024
Texture အသေးစိတ်နှင့် လုပ်ဆောင်မှုမြန်နှုန်းသည် ဤအတွင်းပိုင်း ဖန်တီးမှု ရုပ်ထွက်အရည်အသွေးပေါ် မူတည်သည်။ ၎င်းကို မြှင့်ပါက အသေးစိတ် ပိုကောင်းသော်လည်း အချိန်ပိုကြာသည်။
tex_slat_guidance_strengthရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၁၀
Texture အရောင်တူညီမှု ထိန်းချုပ်ချက်။ မြင့်မားသောဆက်တင်တွင် ထည့်သွင်းပုံရှိ အရောင်များနှင့် ပိုမိုလိုက်လျောညီထွေစေကာ အရောင်တောက်ပမှု တိုးလာသော်လည်း အရောင်လွန်ကဲနိုင်သည်။
tex_slat_guidance_rescaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0
၀ – ၁
Texture များတွင် noise သို့မဟုတ် color banding ရှိပါက ဤဆက်တင်ကို မြှင့်တင်ပါ။ Texture stage အတွင်း ပြင်းထန်သော guidance ကြောင့် ဖြစ်သည့် artifact များကို လျှော့ချပေးသည်။
tex_slat_guidance_interval_startရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.6
၀ – ၁
Texture ဖန်တီးမှုအတွက် classifier-free guidance activation point။ Denoising တိုးတက်မှု၏ အချိုးအစားအဖြစ် ဖော်ပြပြီး interval_start ကို သတ်မှတ်သည်။ Guidance သည် interval_start နှင့် interval_end တို့က ကန့်သတ်ထားသော အပိုင်းအတွင်းသာ လုပ်ဆောင်သည်။
tex_slat_guidance_interval_endရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.9
၀ – ၁
Texture-stage classifier-free guidance အတွက် ရပ်တန့်မည့် အပိုင်းအခြား။ tex_slat_guidance_interval_start ထက် မနိမ့်သော denoising အချိုးအစားဖြင့် သတ်မှတ်သည်။
tex_slat_sampling_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး12
၁ – ၅၀
Texture များဖန်တီးရာတွင် အသုံးပြုသည့် denoising အဆင့်အရေအတွက်။ အဆင့်အရေအတွက် တိုးပါက အချိန်ပိုကြာသော်လည်း texture ပိုသန့်ရှင်းနိုင်သည်။
tex_slat_rescale_tရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး3
၁ – ၆
Texture-generation noise schedule မှတစ်ဆင့် texture detail ပြတ်သားမှုကို သတ်မှတ်ပါ။ ဤတန်ဖိုးကို မြှင့်တင်ပါက အသေးစိတ်များ ပိုပြတ်သားလာသည်။
texture_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး2048
102420484096
Baking အတွက် mesh texture ရုပ်ထွက်အရည်အသွေး။ ဤရုပ်ထွက်အရည်အသွေးကို မြှင့်တင်ပါက မျက်နှာပြင်အသေးစိတ် ပိုကောင်းသော်လည်း ဖိုင်အရွယ်အစား ပိုကြီးသည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး https:// URL၊ 10 MB အထိ data: URI သို့မဟုတ် အပ်လုဒ်လုပ်ထားသောဖိုင်၏ file_url ကို လက်ခံသည်။ ဖိုင်များ

ထွက်ရလဒ်

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
model_glb
object {url, content_type, file_name, file_size}GLB format ဖြင့် ဖန်တီးထားသော 3D မော်ဒယ်။

နောက်ထပ် မော်ဒယ်များ: ပုံမှ 3D

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/trellis-2/retexture.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt