কনটেন্টে যান

Stepx Edit2

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

মডেল id stepx-edit2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/stepx-edit2?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

API কী পান

অ্যাবস্ট্রাক্ট সম্পাদনার জন্য ঐচ্ছিক থিংকিং ও রিফ্লেকশন পাসসহ নির্দেশনাভিত্তিক ছবি এডিটর

StepFun · ছবি

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

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

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

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

•আবশ্যক

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

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

জেনারেশনের উৎস হিসেবে একটি ছবির URL দিন এবং নিশ্চিত করুন যে উৎস ছবি ও মাস্কের মাত্রা অভিন্ন।

অ্যাডভান্সড negative_prompt · output_format · guidance_scale · num_inference_steps · seed · enable_thinking_mode · enable_reflection_mode · enable_safety_checker
ডিফল্ট

বাদ দিতে হবে এমন ছবির বিবরণ নির্দিষ্ট করা নেগেটিভ প্রম্পট, যার মধ্যে রং, বস্তু, দৃশ্য বা সূক্ষ্ম বৈশিষ্ট্য অন্তর্ভুক্ত থাকতে পারে। উদাহরণ হিসেবে গোঁফ, ব্লার বা কম রেজোলিউশন উল্লেখ করা যায়।

output_format ডিফল্ট jpeg

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

ডিফল্ট 6

মডেল কতটা প্রম্পট অনুসরণ করবে তা নিয়ন্ত্রণকারী প্রকৃত CFG স্কেল।

ডিফল্ট 50

ইনফারেন্স ধাপের সংখ্যা; 50 নেওয়ার পরামর্শ দেওয়া হয়।

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

POST /run/stepx-edit2?wait=20 মূল্য → ০.২০$
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/stepx-edit2?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Stepx Edit2 সম্পর্কে

`prompt` অনুসরণ করে `image_url`-এর ছবিটি এডিট করে। `enable_thinking_mode` একটি মাল্টিমোডাল ল্যাঙ্গুয়েজ মডেল ব্যবহার করে অ্যাবস্ট্রাক্ট নির্দেশনা ব্যাখ্যা করে, আর `enable_reflection_mode` ফলাফল পর্যালোচনা করে অনিচ্ছাকৃত পরিবর্তন সংশোধন করে। রেসপন্সে `reformat_prompt`, `think_info` এবং `best_info` থাকতে পারে। স্টেপ সর্বোচ্চ 100 (ডিফল্ট 50), আর আউটপুট jpeg বা png।

প্যারামিটার

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

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
ছবি জেনারেশন নির্দেশকারী প্রম্পট।
image_urlআবশ্যক image
ধরনurl · image
জেনারেশনের উৎস হিসেবে একটি ছবির URL দিন এবং নিশ্চিত করুন যে উৎস ছবি ও মাস্কের মাত্রা অভিন্ন।
negative_promptঐচ্ছিক
ধরনstring
ডিফল্ট
বাদ দিতে হবে এমন ছবির বিবরণ নির্দিষ্ট করা নেগেটিভ প্রম্পট, যার মধ্যে রং, বস্তু, দৃশ্য বা সূক্ষ্ম বৈশিষ্ট্য অন্তর্ভুক্ত থাকতে পারে। উদাহরণ হিসেবে গোঁফ, ব্লার বা কম রেজোলিউশন উল্লেখ করা যায়।
seedঐচ্ছিক
ধরনinteger | null
পুনরুৎপাদনযোগ্য ছবির জন্য seed: মডেলের সংস্করণ অপরিবর্তিত থাকলে একই প্রম্পট ও seed থেকে একই ছবি তৈরি হয়।
guidance_scaleঐচ্ছিক
ধরনnumber
ডিফল্ট6
০ – ২০
মডেল কতটা প্রম্পট অনুসরণ করবে তা নিয়ন্ত্রণকারী প্রকৃত CFG স্কেল।
num_inference_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট50
১ – ১০০
ইনফারেন্স ধাপের সংখ্যা; 50 নেওয়ার পরামর্শ দেওয়া হয়।
enable_thinking_modeঐচ্ছিক
ধরনboolean
ডিফল্টtrue
এডিটিংয়ের বিমূর্ত নির্দেশনায় মাল্টিমোডাল ভাষা মডেলের জ্ঞান কাজে লাগাতে থিংকিং মোড সক্রিয় করুন।
enable_reflection_modeঐচ্ছিক
ধরনboolean
ডিফল্টtrue
রিফ্লেকশন মোড ফলাফল পরীক্ষা করে এবং অনিচ্ছাকৃত পরিবর্তন সংশোধন করে এডিটিং থামানো যাবে কি না তা যাচাই করে।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
নিরাপত্তা পরীক্ষক সক্রিয়করণ; true পরীক্ষা সক্ষম করে।
output_formatঐচ্ছিক
ধরনenum
ডিফল্টjpeg
jpegpng
ফলাফল ছবির ফাইল ফরম্যাট।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

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

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "stepx-edit2",
  "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": 200,
    "usd": "0.20",
    "charged": 200,
    "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",
    "reformat_prompt": "string",
    "think_info": [
      "string"
    ],
    "best_info": [
      {}
    ]
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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ছবি জেনারেশনের সময় ব্যবহৃত প্রম্পট।
reformat_prompt
string | nullথিংকিং মোড সক্রিয় থাকলে উত্তরে মডেল আপনার নির্দেশনা কীভাবে বুঝেছে তা অন্তর্ভুক্ত থাকে; অন্যথায় এই ব্যাখ্যা পাওয়া যায় না।
think_info
array of string | nullযুক্তি প্রক্রিয়ার বিবরণ, শুধু থিংকিং মোড সক্রিয় থাকলেই পাওয়া যায়।
best_info
array of object | nullরিফ্লেকশনের বিশ্লেষণ, শুধু রিফ্লেকশন মোড সক্রিয় থাকলেই পাওয়া যায়।

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