কনটেন্টে যান

Flow-Edit

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

মডেল id flowedit
# 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/flowedit?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",
    "source_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "target_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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 ছবি সম্পাদনা #editing

সোর্স প্রম্পটের সঙ্গে টার্গেট প্রম্পটের বৈপরীত্য ব্যবহার করে একটি ছবি এডিট করে, যেখানে এডিটের মাত্রা সূক্ষ্মভাবে নিয়ন্ত্রণ করা যায়

Open model · ছবি

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

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

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

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

•আবশ্যক

উৎস ছবির বর্ণনা দেওয়া প্রম্পট।

•আবশ্যক

তৈরি করার ছবির বর্ণনা দেওয়া প্রম্পট।

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

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

অ্যাডভান্সড num_inference_steps · src_guidance_scale · tar_guidance_scale · n_avg · n_max · n_min · seed · enable_safety_checker
ডিফল্ট 28

মডেল যে সংখ্যক ধাপ চালায়।

ডিফল্ট 1.5

উৎস গাইডেন্স স্কেল।

ডিফল্ট 5.5

লক্ষ্য গাইডেন্স স্কেল।

ডিফল্ট 1

ধাপের গড় সংখ্যা।

ডিফল্ট 23

সম্পাদনায় প্রয়োগ করা শক্তিমাত্রা।

ডিফল্ট 0

স্টাইল সম্পাদনা উন্নত করতে ব্যবহৃত সর্বনিম্ন ধাপ।

জেনারেশন সিড: none একটি সিড এলোমেলোভাবে বেছে নেয়, আর দেওয়া মান পুনরুৎপাদনযোগ্য জেনারেশন সক্ষম করে।

POST /run/flowedit?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/flowedit?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",
    "source_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "target_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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 কী পান

Flow-Edit সম্পর্কে

`source_prompt`-এ বর্তমান ছবির বর্ণনা এবং `target_prompt`-এ কাঙ্ক্ষিত ফলের বর্ণনা দিয়ে `image_url`-এর ছবিটি পরিবর্তন করে। টিউনিং বিকল্পগুলোর মধ্যে রয়েছে `src_guidance_scale` ও `tar_guidance_scale` (0 থেকে 30), `num_inference_steps` (1 থেকে 50), এবং `n_max`, যা এডিটের তীব্রতা নির্ধারণ করে। `n_min` ও `n_avg` স্টাইল এডিট এবং স্টেপ অ্যাভারেজিং আরও পরিমার্জন করে।

প্যারামিটার

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

নামধরন ডিফল্টঅনুমোদিত বিবরণ
image_urlআবশ্যক image
ধরনurl · image
যে ছবিতে relight করা হবে তার URL।
source_promptআবশ্যক
ধরনstring
উৎস ছবির বর্ণনা দেওয়া প্রম্পট।
target_promptআবশ্যক
ধরনstring
তৈরি করার ছবির বর্ণনা দেওয়া প্রম্পট।
seedঐচ্ছিক
ধরনinteger | null
জেনারেশন সিড: none একটি সিড এলোমেলোভাবে বেছে নেয়, আর দেওয়া মান পুনরুৎপাদনযোগ্য জেনারেশন সক্ষম করে।
num_inference_stepsঐচ্ছিক
ধরনinteger | null
ডিফল্ট28
১ – ৫০
মডেল যে সংখ্যক ধাপ চালায়।
src_guidance_scaleঐচ্ছিক
ধরনnumber | null
ডিফল্ট1.5
০ – ৩০
উৎস গাইডেন্স স্কেল।
tar_guidance_scaleঐচ্ছিক
ধরনnumber | null
ডিফল্ট5.5
০ – ৩০
লক্ষ্য গাইডেন্স স্কেল।
n_avgঐচ্ছিক
ধরনinteger | null
ডিফল্ট1
ধাপের গড় সংখ্যা।
n_maxঐচ্ছিক
ধরনinteger | null
ডিফল্ট23
সম্পাদনায় প্রয়োগ করা শক্তিমাত্রা।
n_minঐচ্ছিক
ধরনinteger | null
ডিফল্ট0
স্টাইল সম্পাদনা উন্নত করতে ব্যবহৃত সর্বনিম্ন ধাপ।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
কলকারী অনুমোদিত হলে false সেট করে স্ক্রিনিং শিথিল করা যায়।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

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

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flowedit",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "source_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "target_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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
    },
    "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-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
image
object {url, content_type, file_name, file_size, width, height}জেনারেট করা ছবির ফাইলের তথ্য।
seed
integerছবি-জেনারেশনের সিড, যার মধ্যে ইনপুটে সিড না থাকলে এলোমেলোভাবে নির্বাচিত মানটিও অন্তর্ভুক্ত; অন্যথায় প্রদত্ত মানটি পুনরাবৃত্তি করে।

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