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

FLUX 2 Pro Outpaint

इंटीग्रेट करें

मॉडल id flux-2-pro/outpaint
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-2-pro/outpaint?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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

API कुंजी प्राप्त करें
Black Forest Labs इमेज एडिटिंग #image-to-image#outpaint#outpainting

प्रत्येक ओर निर्धारित पिक्सेल संख्या जोड़कर इमेज को उसकी सीमाओं से बाहर विस्तारित करता है, high या fast मोड के साथ

Black Forest Labs · इमेज

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

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

अनुरोध बनाएँ

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

•आवश्यक image_url
फ़ाइल ड्रॉप करें, या

आउटपेंटिंग विस्तार के लिए स्रोत इमेज का URL।

उन्नत mode · output_format · expand_top · expand_bottom · expand_left · expand_right · auto_crop · enable_safety_checker
mode डिफ़ॉल्ट high

आउटपेंटिंग गुणवत्ता और गति चयन: `fast` अधिकांश दृश्यों का अच्छा विस्तार करता है और काफी तेज़ चलता है, हालांकि निष्ठा प्रभावित हो सकती है। अधिकतम निष्ठा के लिए डिफ़ॉल्ट `high` का उपयोग करें।

output_format डिफ़ॉल्ट jpeg

परिणामी इमेज का फ़ाइल फ़ॉर्मैट।

डिफ़ॉल्ट 0

इमेज के ऊपर जोड़े गए पिक्सेल की संख्या।

डिफ़ॉल्ट 0

इमेज के नीचे जोड़े गए पिक्सेल की संख्या।

डिफ़ॉल्ट 0

इमेज के बाएँ किनारे पर जोड़े गए पिक्सेल की संख्या।

डिफ़ॉल्ट 0

इमेज के दाएँ किनारे पर जोड़े गए पिक्सेल की संख्या।

POST /run/flux-2-pro/outpaint?wait=20 कोटेशन → $0.40
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-2-pro/outpaint?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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

FLUX 2 Pro Outpaint के बारे में

किनारों के बाहर नई सामग्री भरकर स्रोत इमेज (`image_url`) का विस्तार करता है। `expand_top`, `expand_bottom`, `expand_left` और `expand_right` का उपयोग करें, जिनमें प्रत्येक 0 से 2048 पिक्सेल तक हो सकता है। सर्वोत्तम फ़िडेलिटी के लिए `mode` को `high` या तेज़ परिणामों के लिए `fast` रखें, और `auto_crop` उन रेफ़रेंस को संभालता है जो नए कैनवास में फ़िट नहीं होते। आउटपुट jpeg या png है।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
image_urlआवश्यक image
प्रकारurl · image
आउटपेंटिंग विस्तार के लिए स्रोत इमेज का URL।
expand_topवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट0
0 – 2,048
इमेज के ऊपर जोड़े गए पिक्सेल की संख्या।
expand_bottomवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट0
0 – 2,048
इमेज के नीचे जोड़े गए पिक्सेल की संख्या।
expand_leftवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट0
0 – 2,048
इमेज के बाएँ किनारे पर जोड़े गए पिक्सेल की संख्या।
expand_rightवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट0
0 – 2,048
इमेज के दाएँ किनारे पर जोड़े गए पिक्सेल की संख्या।
auto_cropवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
विस्तारित कैनवास के बाहर आने वाले संदर्भ इमेज के हिस्सों के लिए स्वचालित क्रॉपिंग विकल्प।
modeवैकल्पिक
प्रकारenum
डिफ़ॉल्टhigh
highfast
आउटपेंटिंग गुणवत्ता और गति चयन: `fast` अधिकांश दृश्यों का अच्छा विस्तार करता है और काफी तेज़ चलता है, हालांकि निष्ठा प्रभावित हो सकती है। अधिकतम निष्ठा के लिए डिफ़ॉल्ट `high` का उपयोग करें।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
सुरक्षा-जाँच स्विच, जिसकी off सेटिंग केवल अधिकृत खातों के लिए मान्य होती है। उस प्राधिकरण के बिना सभी अनुरोधों की सुरक्षा-जाँच की जाती है।
output_formatवैकल्पिक
प्रकारenum
डिफ़ॉल्टjpeg
jpegpng
परिणामी इमेज का फ़ाइल फ़ॉर्मैट।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-2-pro/outpaint",
  "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": {
    "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
      }
    ]
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर outputs[].url हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
images
array of object {url, content_type, file_name, file_size, width, height}आउटपेंटिंग से बनाई गई इमेज।

और मॉडल: इमेज एडिटिंग

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/flux-2-pro/outpaint.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt