কনটেন্টে যান

IC-Light-v2 for Image Relighting

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

মডেল id iclight-v2
# 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/iclight-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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 ছবি সম্পাদনা #relighting#editing

টেক্সট বর্ণনা অনুযায়ী একটি ছবিতে নতুন আলো প্রয়োগ করে এবং এর ব্যাকগ্রাউন্ড পরিবর্তন করে

Open model · ছবি

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

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

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

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

•আবশ্যক

ছবি জেনারেশন নির্দেশকারী প্রম্পট।

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

যে ছবিতে relight করা হবে তার URL।

image_size

জেনারেট করা ছবির মাত্রা।

num_images ডিফল্ট 1

জেনারেশনের জন্য অনুরোধ করা ছবির সংখ্যা।

অ্যাডভান্সড negative_prompt · mask_image_url · initial_latent · output_format · background_threshold · num_inference_steps · cfg · lowres_denoise · highres_denoise · hr_downscale · guidance_scale · seed · enable_hr_fix · enable_safety_checker
ডিফল্ট

অনাকাঙ্ক্ষিত ছবির কনটেন্ট নির্দিষ্ট করা নেগেটিভ প্রম্পট।

একটি ফাইল ড্রপ করুন, অথবা

ic-light কন্ডিশনিং ছবির মাস্ক URL।

initial_latent ডিফল্ট None

মডেলকে দেওয়া আলোর পরিস্থিতি।

output_format ডিফল্ট jpeg

ফলাফল ছবির ফাইল ফরম্যাট।

ডিফল্ট 0.67

অপ্রচলিত ব্যাকগ্রাউন্ড-রিমুভাল থ্রেশহোল্ড, বর্তমানে ফলাফলে কোনো প্রভাব নেই। এর উদ্দেশ্য ছিল উচ্চ সেটিংয়ে মাস্ক আরও তীক্ষ্ণ করা।

ডিফল্ট 28

চালানোর জন্য inference ধাপের সংখ্যা।

ডিফল্ট 1

জেনারেশনের সময় প্রয়োগ করা প্রকৃত classifier-free guidance scale।

ডিফল্ট 0.98

লো-রেজোলিউশন পাসে প্রয়োগ করা শক্তিমাত্রা।

ডিফল্ট 0.95

হাই-রেজোলিউশন পাসে প্রয়োগ করা শক্তিমাত্রা; কেবল enable_hr_fix True হলে কার্যকর হয়।

ডিফল্ট 0.5
ডিফল্ট 5

ছবি নির্বাচনের জন্য প্রম্পট-অনুসরণের শক্তি, CFG (Classifier Free Guidance) হিসেবে প্রকাশ করা।

পুনরুৎপাদনযোগ্য ছবির জন্য seed: মডেলের সংস্করণ অপরিবর্তিত থাকলে একই প্রম্পট ও seed থেকে একই ছবি তৈরি হয়।

POST /run/iclight-v2?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/iclight-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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 কী পান

IC-Light-v2 for Image Relighting সম্পর্কে

একটি উৎস ছবি (`image_url`) এবং পছন্দসই আলো ও ব্যাকগ্রাউন্ড বর্ণনাকারী একটি `prompt` গ্রহণ করে। `initial_latent` দিয়ে আলোর দিক (Left, Right, Top, Bottom) নির্ধারণ করা যায়, আর ঐচ্ছিক `mask_image_url` ফলাফলকে নিয়ন্ত্রণ করে। উচ্চ-রেজোলিউশন ধাপের জন্য `enable_hr_fix`, `num_images` দিয়ে 1-4টি আউটপুট এবং jpeg বা png আউটপুট প্রদান করে।

প্যারামিটার

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

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
ছবি জেনারেশন নির্দেশকারী প্রম্পট।
negative_promptঐচ্ছিক
ধরনstring
ডিফল্ট
অনাকাঙ্ক্ষিত ছবির কনটেন্ট নির্দিষ্ট করা নেগেটিভ প্রম্পট।
image_urlআবশ্যক image
ধরনurl · image
যে ছবিতে relight করা হবে তার URL।
mask_image_urlঐচ্ছিক
ধরনurl · image
ic-light কন্ডিশনিং ছবির মাস্ক URL।
background_thresholdঐচ্ছিক
ধরনnumber
ডিফল্ট0.67
০.০১ – ১
অপ্রচলিত ব্যাকগ্রাউন্ড-রিমুভাল থ্রেশহোল্ড, বর্তমানে ফলাফলে কোনো প্রভাব নেই। এর উদ্দেশ্য ছিল উচ্চ সেটিংয়ে মাস্ক আরও তীক্ষ্ণ করা।
image_sizeঐচ্ছিক
ধরনobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
জেনারেট করা ছবির মাত্রা।
num_inference_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট28
১ – ৫০
চালানোর জন্য inference ধাপের সংখ্যা।
seedঐচ্ছিক
ধরনinteger | null
পুনরুৎপাদনযোগ্য ছবির জন্য seed: মডেলের সংস্করণ অপরিবর্তিত থাকলে একই প্রম্পট ও seed থেকে একই ছবি তৈরি হয়।
initial_latentঐচ্ছিক
ধরনenum
ডিফল্টNone
NoneLeftRightTopBottom
মডেলকে দেওয়া আলোর পরিস্থিতি।
enable_hr_fixঐচ্ছিক
ধরনboolean
ডিফল্টfalse
HR fix সক্রিয় করে।
num_imagesঐচ্ছিক num_outputs
ধরনinteger
ডিফল্ট1
১ – ৪
জেনারেশনের জন্য অনুরোধ করা ছবির সংখ্যা।
cfgঐচ্ছিক
ধরনnumber
ডিফল্ট1
০.০১ – ৫
জেনারেশনের সময় প্রয়োগ করা প্রকৃত classifier-free guidance scale।
lowres_denoiseঐচ্ছিক
ধরনnumber
ডিফল্ট0.98
০.০১ – ১
লো-রেজোলিউশন পাসে প্রয়োগ করা শক্তিমাত্রা।
highres_denoiseঐচ্ছিক
ধরনnumber
ডিফল্ট0.95
০.০১ – ১
হাই-রেজোলিউশন পাসে প্রয়োগ করা শক্তিমাত্রা; কেবল enable_hr_fix True হলে কার্যকর হয়।
hr_downscaleঐচ্ছিক
ধরনnumber
ডিফল্ট0.5
০.০১ – ১
guidance_scaleঐচ্ছিক
ধরনnumber
ডিফল্ট5
০ – ২০
ছবি নির্বাচনের জন্য প্রম্পট-অনুসরণের শক্তি, CFG (Classifier Free Guidance) হিসেবে প্রকাশ করা।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
নিরাপত্তা যাচাইয়ের সুইচ, যার off সেটিংয়ে অ্যাকাউন্ট অনুমোদন প্রয়োজন। সেই অনুমোদন না থাকলে সেটিং নির্বিশেষে প্রতিটি রিকোয়েস্ট যাচাই করা হয়; true যাচাইকারী সক্রিয় করে।
output_formatঐচ্ছিক
ধরনenum
ডিফল্টjpeg
jpegpng
ফলাফল ছবির ফাইল ফরম্যাট।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

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

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "iclight-v2",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "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-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
images
array of object {url, width, height, content_type}জেনারেট করা ছবিগুলোর ফাইল তথ্য।
timings
object
seed
integerছবি-জেনারেশনের সিড, যার মধ্যে ইনপুটে সিড না থাকলে এলোমেলোভাবে নির্বাচিত মানটিও অন্তর্ভুক্ত; অন্যথায় প্রদত্ত মানটি পুনরাবৃত্তি করে।
has_nsfw_concepts
array of booleanজেনারেট করা ছবিতে NSFW ধারণা রয়েছে কি না নির্দেশ করে।
prompt
stringছবি জেনারেশনের সময় ব্যবহৃত প্রম্পট।

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