सामग्री पर जाएँ

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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध: ≈$0.20 200 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें

अमूर्त संपादनों के लिए वैकल्पिक थिंकिंग और रिफ़्लेक्शन पास वाला निर्देश-आधारित इमेज एडिटर

StepFun · इमेज

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

इमेज निर्माण का मार्गदर्शन करने वाला प्रॉम्प्ट।

•आवश्यक 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

मॉडल के प्रॉम्प्ट-अनुपालन की डिग्री नियंत्रित करने वाला True CFG स्केल।

डिफ़ॉल्ट 50

इन्फ़रेंस चरणों की संख्या; 50 की अनुशंसा की जाती है।

दोहराए जा सकने वाले इमेज निर्माण के लिए seed: मॉडल संस्करण अपरिवर्तित होने पर समान प्रॉम्प्ट और seed से समान इमेज बनती है।

POST /run/stepx-edit2?wait=20 कोटेशन → $0.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/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। 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
0 – 20
मॉडल के प्रॉम्प्ट-अनुपालन की डिग्री नियंत्रित करने वाला True CFG स्केल।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट50
1 – 100
इन्फ़रेंस चरणों की संख्या; 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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर outputs[].url हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
images
array of object {url, width, height, content_type}मॉडल द्वारा बनाई गई इमेज।
timings
object
seed
integerइमेज-निर्माण seed, जिसमें इनपुट में seed न दिए जाने पर यादृच्छिक रूप से चुना गया मान शामिल है; अन्यथा, यह दिए गए मान को दोहराता है।
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/hi/developers/models/stepx-edit2.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt