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

ControlLight

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

မော်ဒယ် id control-light
# 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/control-light?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 ကီး ရယူရန်
Open model ပုံတည်းဖြတ်ခြင်း #stylized#transform

အလင်းနည်းသော ပုံများကို မြှင့်တင်ပေးသည့်စနစ်ဖြစ်ပြီး သိမ်မွေ့စွာမှ အပြည့်အဝတောက်ပသည်အထိ ချိန်ညှိနိုင်သော lighting_level ချိန်ညှိတံ တစ်ခု ပါဝင်သည်

Open model · ပုံ

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

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

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

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

မူလ Enhance this low-ligh...

FLUX.2 [klein] သို့ ပေးပို့သည့် ပြန်လည်ပြုပြင်ရေး ညွှန်ကြားချက်များ။

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

မြှင့်တင်ရန်လိုအပ်သော ပုံသို့ ညွှန်ပြသည့် URL။

အဆင့်မြင့် output_format · lighting_level · num_inference_steps · guidance_scale · seed · enable_safety_checker
output_format မူလ png

ရရှိလာသော ပုံ၏ ဖိုင်ပုံစံ။

မူလ 0.75

အလင်းရောင်မြှင့်တင်မှုအတွက် LoRA adapter စကေး။ LoRA ၏ လေ့ကျင့်မှုက လွှမ်းခြုံထားသော အမြင့်ဆုံး exposure တိုးမြှင့်မှုသည် 1.0 နှင့် ကိုက်ညီသည်။ ပုံကို မူလအတိုင်းနီးပါး ထားလိုပါက 0.0 ကို ရွေးပါ။

မူလ 4

လုပ်ဆောင်မည့် denoising step အရေအတွက်။

မူလ 1

classifier-free guidance ၏ strength။

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

POST /run/control-light?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/control-light?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 ကီး ရယူရန်

ControlLight အကြောင်း

`image_url` မှ အမှောင်ဓာတ်ပုံများကို မြင်ကွင်းဖွဲ့စည်းပုံနှင့် အသေးစိတ်များ ထိန်းသိမ်းကာ တောက်ပစေသည်။ `lighting_level` သည် 0 မှ 1 အထိ (မူလတန်ဖိုး 0.75) ဖြစ်ပြီး 0 သည် ပုံကို မူလအတိုင်းနီးပါး ထားရှိသည်။ Denoising အဆင့် 4 မှ 8 ဖြင့် လုပ်ဆောင်ပြီး ရွေးချယ်နိုင်သော ပြန်လည်ပြုပြင်ရေး `prompt` ကို လက်ခံကာ png, jpeg သို့မဟုတ် webp ဖြင့် ထွက်ရလဒ်ပေးသည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
image_urlလိုအပ်သည် image
အမျိုးအစားurl · image
မြှင့်တင်ရန်လိုအပ်သော ပုံသို့ ညွှန်ပြသည့် URL။
lighting_levelရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.75
၀ – ၁
အလင်းရောင်မြှင့်တင်မှုအတွက် LoRA adapter စကေး။ LoRA ၏ လေ့ကျင့်မှုက လွှမ်းခြုံထားသော အမြင့်ဆုံး exposure တိုးမြှင့်မှုသည် 1.0 နှင့် ကိုက်ညီသည်။ ပုံကို မူလအတိုင်းနီးပါး ထားလိုပါက 0.0 ကို ရွေးပါ။
promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုးEnhance this low-light image by lifting exposure and recovering visible details while preserving identity, geometry, atmosphere, natural colors, and avoiding halos, noise, over-sharpening, or overexposure.
FLUX.2 [klein] သို့ ပေးပို့သည့် ပြန်လည်ပြုပြင်ရေး ညွှန်ကြားချက်များ။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ပြန်လည်ထုတ်လုပ်နိုင်မှုအတွက် ရွေးချယ်ပေးနိုင်သော ဖန်တီးမှု seed သို့မဟုတ် မပေးထားပါက ကျပန်းရွေးချယ်သည့် seed။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ရရှိလာသော ပုံတွင် ဘေးကင်းရေးစစ်ဆေးမှုကို ဖွင့်သည်။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးpng
jpegpngwebp
ရရှိလာသော ပုံ၏ ဖိုင်ပုံစံ။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး4
၄ – ၈
လုပ်ဆောင်မည့် denoising step အရေအတွက်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1
၀ – ၂၀
classifier-free guidance ၏ strength။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

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

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "control-light",
  "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": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "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,
        "width": 1024,
        "height": 768
      }
    ],
    "has_nsfw_concepts": [
      false
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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 များ
images
array of object {url, content_type, file_name, file_size, width, height}မြှင့်တင်ပြီးနောက် ပုံ။
has_nsfw_concepts
array of booleanဖန်တီးထားသော ပုံတွင် NSFW အယူအဆများ ပါဝင်ခြင်း ရှိ၊ မရှိကို ဖော်ပြသည်။
seed
integerဖန်တီးမှုအတွင်း အသုံးပြုသည့် seed တန်ဖိုး။

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