কনটেন্টে যান

TRELLIS.2 LoRA Inference

ইন্টিগ্রেট করুন

মডেল 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"

এই অনুরোধ: ০.২৫$ ২৫০ API ক্রেডিট এই পেজে চালান

API কী পান

স্ট্রাকচার, জিওমেট্রি ও টেক্সচারের জন্য কাস্টম LoRA অ্যাডাপ্টার প্রয়োগ করতে পারে এমন Trellis 2 image-to-3D

Microsoft · 3D

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক image_url
একটি ফাইল ড্রপ করুন, অথবা

3D মডেলে রূপান্তরের জন্য উৎস ছবির URL।

resolution ডিফল্ট 512

জেনারেশনের রেজোলিউশন; 1024 নির্বাচন করলে cascade pipeline ব্যবহৃত হয়। সরবরাহ করা LoRA adapter প্রশিক্ষণে ব্যবহৃত রেজোলিউশন নির্বাচন করুন; মিল থাকা আবশ্যক।

অ্যাডভান্সড 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

safetensors ফরম্যাটের ঐচ্ছিক LoRA চেকপয়েন্ট, যা বিশেষভাবে texture denoiser-এর জন্য প্রশিক্ষিত।

texture_size ডিফল্ট 2048

GLB export-এ বেক করা texture-এর রেজোলিউশন।

safetensors ফরম্যাটের ঐচ্ছিক LoRA চেকপয়েন্ট, যা বিশেষভাবে sparse structure denoiser-এর জন্য প্রশিক্ষিত।

safetensors ফরম্যাটের ঐচ্ছিক LoRA চেকপয়েন্ট, যা বিশেষভাবে geometry denoiser-এর জন্য প্রশিক্ষিত।

ডিফল্ট 7.5

sparse-structure জেনারেশনের সময় classifier-free guidance-এর শক্তি।

ডিফল্ট 0.7

sparse-structure জেনারেশনের সময় guidance rescaling। বেশি মান আউটপুটকে আরও স্থিতিশীল করে।

ডিফল্ট 0.6

যে denoising অগ্রগতির ভগ্নাংশে sparse-structure guidance শুরু হয়।

ডিফল্ট 1

`ss_guidance_interval_start`-এর সমান বা বেশি denoising ভগ্নাংশ ব্যবহার করে sparse-structure guidance কখন বন্ধ হবে তা নির্দিষ্ট করুন।

ডিফল্ট 12

sparse-structure জেনারেশনের সময় ব্যবহৃত denoising ধাপের সংখ্যা।

ডিফল্ট 5

sparse-structure জেনারেশনের সময় noise schedule-এর তীক্ষ্ণতা।

ডিফল্ট 7.5

shape জেনারেশনের সময় classifier-free guidance-এর শক্তি।

ডিফল্ট 0.5

shape জেনারেশনের সময় guidance-এ প্রয়োগ করা rescaling; geometry-তে noise দেখা গেলে এটি বাড়ান।

ডিফল্ট 0.6

যে denoising ভগ্নাংশে shape-stage guidance শুরু হয়।

ডিফল্ট 1

shape-stage guidance বন্ধের বিন্দু, যা `shape_slat_guidance_interval_start`-এর চেয়ে ছোট নয় এমন denoising ভগ্নাংশ হিসেবে প্রকাশ করা হয়।

ডিফল্ট 12

shape জেনারেশনের সময় denoising ধাপের সংখ্যা।

ডিফল্ট 3

shape জেনারেশনের সময় noise schedule-এর তীক্ষ্ণতা।

ডিফল্ট 1

texture জেনারেশনের সময় classifier-free guidance-এর শক্তি।

ডিফল্ট 0

texture জেনারেশনের সময় guidance-এ প্রয়োগ করা rescaling; texture-এ noise দেখা গেলে এটি বাড়ান।

ডিফল্ট 0.6

যে denoising ভগ্নাংশে texture-stage guidance শুরু হয়।

ডিফল্ট 0.9

texture-stage guidance বন্ধের বিন্দু, যা `tex_slat_guidance_interval_start`-এর চেয়ে ছোট নয় এমন denoising ভগ্নাংশ হিসেবে প্রকাশ করা হয়।

ডিফল্ট 12

texture জেনারেশনের সময় denoising ধাপের সংখ্যা।

ডিফল্ট 3

texture জেনারেশনের সময় noise schedule-এর তীক্ষ্ণতা।

ডিফল্ট 500000

GLB export-এ কাঙ্ক্ষিত ভার্টেক্সের সংখ্যা।

জেনারেশন পুনরুৎপাদনযোগ্য করে এমন এলোমেলো সিড।

POST /run/trellis-2-lora?wait=20 মূল্য → ০.২৫$
# 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"

এই অনুরোধ চালান

আপনার key এই ব্রাউজারেই থাকে: এটি শুধু Doitong API-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

TRELLIS.2 LoRA Inference সম্পর্কে

`image_url` থেকে GLB তৈরি করে এবং ঐচ্ছিকভাবে `sparse_structure_lora_url`, `geometry_lora_url` ও `texture_lora_url`-এর মাধ্যমে safetensors LoRA প্রয়োগ করে। `resolution` 512 অথবা 1024 এবং অ্যাডাপ্টারগুলোর প্রশিক্ষণ রেজোলিউশনের সঙ্গে মিলতে হবে। প্রতি-ধাপের গাইডেন্স ও স্টেপ নিয়ন্ত্রণ, `decimation_target` এবং `texture_size`-ও দেওয়া আছে।

প্যারামিটার

ক্যানোনিকাল নাম অথবা নেটিভ নাম—দুটো একসঙ্গে নয়—পাঠান। ক্যানোনিকাল নামগুলো

নামধরন ডিফল্টঅনুমোদিত বিবরণ
image_urlআবশ্যক image
ধরনurl · image
3D মডেলে রূপান্তরের জন্য উৎস ছবির URL।
sparse_structure_lora_urlঐচ্ছিক
ধরনstring | null
safetensors ফরম্যাটের ঐচ্ছিক LoRA চেকপয়েন্ট, যা বিশেষভাবে sparse structure denoiser-এর জন্য প্রশিক্ষিত।
geometry_lora_urlঐচ্ছিক
ধরনstring | null
safetensors ফরম্যাটের ঐচ্ছিক LoRA চেকপয়েন্ট, যা বিশেষভাবে geometry denoiser-এর জন্য প্রশিক্ষিত।
texture_lora_urlঐচ্ছিক
ধরনstring | null
safetensors ফরম্যাটের ঐচ্ছিক LoRA চেকপয়েন্ট, যা বিশেষভাবে texture denoiser-এর জন্য প্রশিক্ষিত।
seedঐচ্ছিক
ধরনinteger | null
জেনারেশন পুনরুৎপাদনযোগ্য করে এমন এলোমেলো সিড।
resolutionঐচ্ছিক
ধরনenum
ডিফল্ট512
5121024
জেনারেশনের রেজোলিউশন; 1024 নির্বাচন করলে cascade pipeline ব্যবহৃত হয়। সরবরাহ করা LoRA adapter প্রশিক্ষণে ব্যবহৃত রেজোলিউশন নির্বাচন করুন; মিল থাকা আবশ্যক।
ss_guidance_strengthঐচ্ছিক
ধরনnumber
ডিফল্ট7.5
০ – ১০
sparse-structure জেনারেশনের সময় classifier-free guidance-এর শক্তি।
ss_guidance_rescaleঐচ্ছিক
ধরনnumber
ডিফল্ট0.7
০ – ১
sparse-structure জেনারেশনের সময় guidance rescaling। বেশি মান আউটপুটকে আরও স্থিতিশীল করে।
ss_guidance_interval_startঐচ্ছিক
ধরনnumber
ডিফল্ট0.6
০ – ১
যে denoising অগ্রগতির ভগ্নাংশে sparse-structure guidance শুরু হয়।
ss_guidance_interval_endঐচ্ছিক
ধরনnumber
ডিফল্ট1
০ – ১
`ss_guidance_interval_start`-এর সমান বা বেশি denoising ভগ্নাংশ ব্যবহার করে sparse-structure guidance কখন বন্ধ হবে তা নির্দিষ্ট করুন।
ss_sampling_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট12
১ – ৫০
sparse-structure জেনারেশনের সময় ব্যবহৃত denoising ধাপের সংখ্যা।
ss_rescale_tঐচ্ছিক
ধরনnumber
ডিফল্ট5
১ – ৬
sparse-structure জেনারেশনের সময় noise schedule-এর তীক্ষ্ণতা।
shape_slat_guidance_strengthঐচ্ছিক
ধরনnumber
ডিফল্ট7.5
০ – ১০
shape জেনারেশনের সময় classifier-free guidance-এর শক্তি।
shape_slat_guidance_rescaleঐচ্ছিক
ধরনnumber
ডিফল্ট0.5
০ – ১
shape জেনারেশনের সময় guidance-এ প্রয়োগ করা rescaling; geometry-তে noise দেখা গেলে এটি বাড়ান।
shape_slat_guidance_interval_startঐচ্ছিক
ধরনnumber
ডিফল্ট0.6
০ – ১
যে denoising ভগ্নাংশে shape-stage guidance শুরু হয়।
shape_slat_guidance_interval_endঐচ্ছিক
ধরনnumber
ডিফল্ট1
০ – ১
shape-stage guidance বন্ধের বিন্দু, যা `shape_slat_guidance_interval_start`-এর চেয়ে ছোট নয় এমন denoising ভগ্নাংশ হিসেবে প্রকাশ করা হয়।
shape_slat_sampling_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট12
১ – ৫০
shape জেনারেশনের সময় denoising ধাপের সংখ্যা।
shape_slat_rescale_tঐচ্ছিক
ধরনnumber
ডিফল্ট3
১ – ৬
shape জেনারেশনের সময় noise schedule-এর তীক্ষ্ণতা।
tex_slat_guidance_strengthঐচ্ছিক
ধরনnumber
ডিফল্ট1
০ – ১০
texture জেনারেশনের সময় classifier-free guidance-এর শক্তি।
tex_slat_guidance_rescaleঐচ্ছিক
ধরনnumber
ডিফল্ট0
০ – ১
texture জেনারেশনের সময় guidance-এ প্রয়োগ করা rescaling; texture-এ noise দেখা গেলে এটি বাড়ান।
tex_slat_guidance_interval_startঐচ্ছিক
ধরনnumber
ডিফল্ট0.6
০ – ১
যে denoising ভগ্নাংশে texture-stage guidance শুরু হয়।
tex_slat_guidance_interval_endঐচ্ছিক
ধরনnumber
ডিফল্ট0.9
০ – ১
texture-stage guidance বন্ধের বিন্দু, যা `tex_slat_guidance_interval_start`-এর চেয়ে ছোট নয় এমন denoising ভগ্নাংশ হিসেবে প্রকাশ করা হয়।
tex_slat_sampling_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট12
১ – ৫০
texture জেনারেশনের সময় denoising ধাপের সংখ্যা।
tex_slat_rescale_tঐচ্ছিক
ধরনnumber
ডিফল্ট3
১ – ৬
texture জেনারেশনের সময় noise schedule-এর তীক্ষ্ণতা।
decimation_targetঐচ্ছিক
ধরনinteger
ডিফল্ট500000
৫,০০০ – ২০,০০,০০০
GLB export-এ কাঙ্ক্ষিত ভার্টেক্সের সংখ্যা।
texture_sizeঐচ্ছিক
ধরনenum
ডিফল্ট2048
102420484096
GLB export-এ বেক করা texture-এর রেজোলিউশন।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
কলকারী অনুমোদিত হলে false সেট করে স্ক্রিনিং শিথিল করা যায়।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

ফাইল প্যারামিটার হিসেবে একটি পাবলিক https:// URL, 10 MB পর্যন্ত একটি data: URI, অথবা আপলোডের file_url গ্রহণ করা হয়। ফাইল

আউটপুট

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"
  }
}
আপনার ফাইল, আপনার পছন্দপ্রতিটি outputs[].url আমাদের স্টোরেজে একটি কপি: চিরকাল রাখা হয় (প্রতি GB-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
model_glb
object {url, content_type, file_name, file_size}জেনারেট করা 3D মডেল ধারণকারী GLB ফাইল।
seed
integerজেনারেশনের সময় প্রয়োগ করা সিড।
resolution
integerযে রেজোলিউশনে জেনারেশন সম্পন্ন হয়েছে।
sparse_structure_lora_url
string | nullজেনারেশনের সময় ব্যবহৃত sparse-structure LoRA চেকপয়েন্ট, প্রয়োগ করা হয়ে থাকলে।
geometry_lora_url
string | nullজেনারেশনের সময় ব্যবহৃত geometry LoRA চেকপয়েন্ট, প্রয়োগ করা হয়ে থাকলে।
texture_lora_url
string | nullজেনারেশনের সময় ব্যবহৃত texture LoRA চেকপয়েন্ট, প্রয়োগ করা হয়ে থাকলে।
decimation_target
integerGLB export-এ প্রয়োগ করা ভার্টেক্স-সংখ্যার লক্ষ্য।
texture_size
integerGLB export-এ বেক করা texture-এর রেজোলিউশন।

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/trellis-2-lora.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt