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

Lightx · Relight

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

မော်ဒယ် id lightx/relight
# 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/lightx/relight?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 ကီး ရယူရန်
Open model ဗီဒီယိုမှ ဗီဒီယို ရည်ညွှန်း ထည့်သွင်းချက်များ #video-to-video

ပရောမ့်၊ ရည်ညွှန်းဖရိမ်၊ HDR ပုံ သို့မဟုတ် နောက်ခံပုံဖြင့် ထိန်းချုပ်သော ဗီဒီယိုအလင်းပြန်လည်ချိန်ညှိမှု

Open model · ဗီဒီယို

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

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

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

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

ရွေးချယ်နိုင်သော စာသားပရောမ့်။ ပရောမ့်မပေးထားပါက Light-X သည် ဗီဒီယိုကို အလိုအလျောက် caption ထည့်ပေးသည်။

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

ထည့်သွင်းဗီဒီယို၏ URL။

အဆင့်မြင့် relit_cond_type · relit_cond_img_url · ref_id · seed · enable_safety_checker · relight_parameters
relit_cond_type မူလ ic

relighting အတွက် အသုံးပြုသည့် condition အမျိုးအစား။

relight_condition_type ၏ 'ref', 'hdr' နှင့် 'bg' setting များအတွက် လိုအပ်သော conditioning ပုံ URL။ 'bg' mode တွင် background ကို ပေးသည်။

မူလ 0

ဖရိမ် index ဖြင့် ရွေးချယ်သော relighting reference ဖြစ်ပြီး ဖန်တီးထားသော ဖရိမ်အရေအတွက်သည် exclusive upper bound အဖြစ် အသုံးပြုသည်။ ထိုအရေအတွက်၏ မူလတန်ဖိုးမှာ 49 ဖြစ်သည်။

ဖန်တီးမှုကို ထပ်တူပြန်လည်ပြုလုပ်နိုင်စေသည့် seed။ None သတ်မှတ်ပါက seed ကို ကျပန်းရွေးချယ်သည်။

relight_condition_type ပေါ်မူတည်၍ အသုံးပြုမှုကွာခြားသည့် relighting setting များ။ 'ic' တွင် ၎င်းတို့လိုအပ်ပြီး 'bg' တွင် လျစ်လျူရှုကာ background ပုံ URL လိုအပ်သည်။

POST /run/lightx/relight?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/lightx/relight?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 ကီး ရယူရန်

Lightx · Relight အကြောင်း

ထည့်သွင်းဗီဒီယို၏ အလင်းရောင်ကို ပြောင်းလဲသည်။ `relit_cond_type` သည် ic (`relight_parameters` ကို အသုံးပြုသည်)၊ ref၊ hdr သို့မဟုတ် bg အခြေအနေကို ရွေးသည်။ နောက်ဆုံးသုံးမျိုးသည် `relit_cond_img_url` ရှိ ထိန်းညှိသတ်မှတ်မှု ပုံတစ်ပုံ လိုအပ်သည်။ `ref_id` (0 မှ 48) သည် ref မုဒ်အတွက် ရည်ညွှန်းဖရိမ်ကို ရွေးသည်။ စာသား `prompt` သည် ရွေးချယ်နိုင်ပြီး မထည့်ထားပါက ဗီဒီယိုကို အလိုအလျောက် ဖော်ပြစာထည့်ပေးသည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
video_urlလိုအပ်သည် video
အမျိုးအစားurl · video
ထည့်သွင်းဗီဒီယို၏ URL။
promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
ရွေးချယ်နိုင်သော စာသားပရောမ့်။ ပရောမ့်မပေးထားပါက Light-X သည် ဗီဒီယိုကို အလိုအလျောက် caption ထည့်ပေးသည်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ဖန်တီးမှုကို ထပ်တူပြန်လည်ပြုလုပ်နိုင်စေသည့် seed။ None သတ်မှတ်ပါက seed ကို ကျပန်းရွေးချယ်သည်။
relit_cond_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးic
icrefhdrbg
relighting အတွက် အသုံးပြုသည့် condition အမျိုးအစား။
relight_parametersရွေးချယ်နိုင်သည်
အမျိုးအစားobject
relight_condition_type ပေါ်မူတည်၍ အသုံးပြုမှုကွာခြားသည့် relighting setting များ။ 'ic' တွင် ၎င်းတို့လိုအပ်ပြီး 'bg' တွင် လျစ်လျူရှုကာ background ပုံ URL လိုအပ်သည်။
relight_parameters.relight_promptလိုအပ်သည်
အမျိုးအစားstring
ဖန်တီးရမည့် အလင်းရောင်အခြေအနေများကို သတ်မှတ်သည့် စာသားပရောမ့်။
relight_parameters.bg_sourceရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးLeft
LeftRightTopBottom
IC-light အတွက် အလင်းရင်းမြစ်၏ ဦးတည်ချက်။
relight_parameters.cfgရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး2
၁ – ၁၀
relighting အတွင်း အသုံးပြုသည့် classifier-free guidance ၏ scale။
relight_parameters.use_sky_maskရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
အပြင်ဘက်မြင်ကွင်းများအတွက် ကောင်းကင် mask ပြုလုပ်မှု toggle။
relit_cond_img_urlရွေးချယ်နိုင်သည်
အမျိုးအစားstring | null
relight_condition_type ၏ 'ref', 'hdr' နှင့် 'bg' setting များအတွက် လိုအပ်သော conditioning ပုံ URL။ 'bg' mode တွင် background ကို ပေးသည်။
ref_idရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး0
၀ – ၄၈
ဖရိမ် index ဖြင့် ရွေးချယ်သော relighting reference ဖြစ်ပြီး ဖန်တီးထားသော ဖရိမ်အရေအတွက်သည် exclusive upper bound အဖြစ် အသုံးပြုသည်။ ထိုအရေအတွက်၏ မူလတန်ဖိုးမှာ 49 ဖြစ်သည်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
caller က ခွင့်ပြုချက်ရှိပါက false သတ်မှတ်ခြင်းဖြင့် စစ်ဆေးမှုကို လျှော့ချနိုင်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "lightx/relight",
  "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": 490,
    "usd": "0.49",
    "charged": 490,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42,
    "input_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "viz_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
video
object {url, content_type, file_name, file_size}ဖန်တီးမှုမှ ထွက်ရှိသည့် ဗီဒီယိုဖိုင်။
seed
integerဖန်တီးမှုအတွင်း အသုံးပြုသည့် seed တန်ဖိုး။
input_video
object {url, content_type, file_name, file_size} | nullpipeline က ဖန်တီးပေးပါက ရွေးချယ်၍ ပြန်လည်ရရှိနိုင်သော normalize သို့မဟုတ် process ပြုလုပ်ထားသည့် ထည့်သွင်းချက် ဗီဒီယို။
viz_video
object {url, content_type, file_name, file_size} | nullpipeline က ဖန်တီးပေးပါက ရွေးချယ်၍ ပြန်လည်ရရှိနိုင်သော visualization သို့မဟုတ် debugging ဗီဒီယို။

နောက်ထပ် မော်ဒယ်များ: ဗီဒီယိုမှ ဗီဒီယို

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