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

Hidream O1 Image · Dev · Edit

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

मॉडल id hidream-o1-image/dev/edit
# 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/hidream-o1-image/dev/edit?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",
    "images": [
      "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"

यह अनुरोध: $0.02 20 API क्रेडिट · ≈ ₽2.11 इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
HiDream इमेज एडिटिंग रेफ़रेंस इनपुट

संदर्भ-इमेज संपादन का डिस्टिल्ड dev वैरिएंट, डिफ़ॉल्ट रूप से 28 स्टेप्स और 0 गाइडेंस के साथ

HiDream · इमेज

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

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

अनुरोध बनाएँ

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

•आवश्यक

इमेज बनाने या संपादित करने अथवा विषय-आधारित निजीकरण के लिए टेक्स्ट निर्देश।

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

संपादन या विषय-आधारित निजीकरण के लिए संदर्भ के रूप में दी गई इमेज।

image_size डिफ़ॉल्ट {"height":2048,"width...

इमेज के आयाम चुनें; संदर्भ इमेज पर आधारित आउटपुट के लिए यह अनुरोध मॉडल द्वारा समर्थित निकटतम रिज़ॉल्यूशन से मेल खाता है, जिसकी अनुमानित अधिकतम सीमा 2048 × 2048 पिक्सेल है।

num_images डिफ़ॉल्ट 1

बनाई जाने वाली इमेज की संख्या।

उन्नत output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker · keep_original_aspect
output_format डिफ़ॉल्ट png

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

डिफ़ॉल्ट 28

डीनॉइज़िंग पुनरावृत्तियों की संख्या, जिसमें 28 चरण dev मॉडल के डिस्टिलेशन लक्ष्य से मेल खाते हैं।

डिफ़ॉल्ट 0

क्लासिफ़ायर-फ़्री गाइडेंस का स्केल; dev मॉडल के लिए डिफ़ॉल्ट 0.0 है।

निर्माण को पुनरुत्पादित करने योग्य बनाने वाला रैंडम seed।

POST /run/hidream-o1-image/dev/edit?wait=20 कोटेशन → $0.02
# 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/hidream-o1-image/dev/edit?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",
    "images": [
      "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 को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Hidream O1 Image · Dev · Edit के बारे में

डिस्टिल्ड dev मॉडल का उपयोग करके संदर्भ इमेज (`reference_image_urls`) और टेक्स्ट `prompt` से इमेज संपादित या पर्सनलाइज़ करता है। यह मॉडल 28 स्टेप्स के लिए ट्यून किया गया है और गाइडेंस स्केल का डिफ़ॉल्ट 0 है। आकार प्रीसेट या कस्टम आयामों के माध्यम से लगभग 2048x2048 तक होता है। PNG, JPEG या WebP के रूप में 1 से 4 इमेज लौटाता है, और `keep_original_aspect` एकल संदर्भ का आकार अनुपात बनाए रखता है।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptआवश्यक
प्रकारstring
इमेज बनाने या संपादित करने अथवा विषय-आधारित निजीकरण के लिए टेक्स्ट निर्देश।
reference_image_urlsआवश्यक images
प्रकारurl[] · image
संपादन या विषय-आधारित निजीकरण के लिए संदर्भ के रूप में दी गई इमेज।
image_sizeवैकल्पिक
प्रकारobject
डिफ़ॉल्ट{"height":2048,"width":2048}
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
इमेज के आयाम चुनें; संदर्भ इमेज पर आधारित आउटपुट के लिए यह अनुरोध मॉडल द्वारा समर्थित निकटतम रिज़ॉल्यूशन से मेल खाता है, जिसकी अनुमानित अधिकतम सीमा 2048 × 2048 पिक्सेल है।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट28
1 – 28
डीनॉइज़िंग पुनरावृत्तियों की संख्या, जिसमें 28 चरण dev मॉडल के डिस्टिलेशन लक्ष्य से मेल खाते हैं।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट0
0 – 20
क्लासिफ़ायर-फ़्री गाइडेंस का स्केल; dev मॉडल के लिए डिफ़ॉल्ट 0.0 है।
seedवैकल्पिक
प्रकारinteger | null
निर्माण को पुनरुत्पादित करने योग्य बनाने वाला रैंडम seed।
num_imagesवैकल्पिक num_outputs
प्रकारinteger
डिफ़ॉल्ट1
1 – 4
बनाई जाने वाली इमेज की संख्या।
output_formatवैकल्पिक
प्रकारenum
डिफ़ॉल्टpng
jpegpngwebp
परिणामी इमेज का फ़ाइल फ़ॉर्मैट।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
नियंत्रित करता है कि जेनरेट की गई इमेज सुरक्षा जाँच से गुजरें या नहीं।
keep_original_aspectवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
एकल-संदर्भ निर्माण के लिए आस्पेक्ट-रेश्यो बनाए रखना: आउटपुट उस संदर्भ के अनुपातों से तभी मेल खाता है जब बिल्कुल एक इमेज दी गई हो।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

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

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "hidream-o1-image/dev/edit",
  "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": 20,
    "usd": "0.02",
    "charged": 20,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_image_urls": [
      "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
      }
    ],
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string",
    "timings": {}
  },
  "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-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
images
array of object {url, content_type, file_name, file_size, width, height}निर्माण से तैयार की गई इमेज।
seed
integerनिर्माण के दौरान लागू किया गया सीड मान।
has_nsfw_concepts
array of booleanप्रत्येक जेनरेट की गई इमेज की सुरक्षा-जाँचकर्ता स्थिति।
prompt
stringआउटपुट बनाने के लिए उपयोग किया गया प्रॉम्प्ट।
timings
objectनिर्माण के समय का मापन।

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