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

MOSS Image

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

मॉडल id moss-image
# 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/moss-image?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"
  }'

# 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.05 50 API क्रेडिट इसे इस पेज पर चलाएँ

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

छवियों में चीनी और अंग्रेज़ी टेक्स्ट के लिए टेक्स्ट-से-छवि मॉडल, लेआउट-अवेयर प्रॉम्प्ट और वैकल्पिक विस्तार के साथ

Open model · इमेज

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

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

अनुरोध बनाएँ

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

•आवश्यक 88 / 16384

प्राकृतिक भाषा, टैग के अनुक्रम या JSON लेआउट स्वीकार करने वाला इमेज निर्माण प्रॉम्प्ट।

image_size डिफ़ॉल्ट square_hd

आउटपुट आयाम width और height दोनों के लिए 512–2048 pixels तक सीमित हैं और प्रत्येक को 16 के गुणज में राउंड किया जाता है।

num_images डिफ़ॉल्ट 1

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

उन्नत negative_prompt · output_format · num_inference_steps · guidance_scale · seed · enable_prompt_expansion · enable_safety_checker
0 / 16384

मार्गदर्शन के लिए उपयोग किया गया नेगेटिव प्रॉम्प्ट; transformer layer skipping तब नेगेटिव शाखा प्रदान करता है जब प्रॉम्प्ट खाली हो।

output_format डिफ़ॉल्ट jpeg

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

डिफ़ॉल्ट 50

किए जाने वाले denoising चरणों की संख्या।

डिफ़ॉल्ट 3

classifier-free guidance की strength।

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

POST /run/moss-image?wait=20 कोटेशन → $0.05
# 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/moss-image?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"
  }'

# 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 कुंजी प्राप्त करें

MOSS Image के बारे में

`prompt` से छवियाँ बनाता है, जिसमें अधिकतम 16384 वर्ण हो सकते हैं और जिसे प्राकृतिक भाषा, टैग अनुक्रमों या JSON लेआउट के रूप में लिखा जा सकता है; इससे टेक्स्ट और ऑब्जेक्ट को सटीक रूप से रखना आसान होता है। प्रॉम्प्ट विस्तार पहले एक संरचित लेआउट की योजना बनाता है और डिफ़ॉल्ट रूप से चालू रहता है। आकार छह प्रीसेट (वर्ग, पोर्ट्रेट और लैंडस्केप) से आते हैं और 512 से 2048 पिक्सेल के बीच 16 के गुणजों तक राउंड किए जाते हैं। आप 1 से 4 छवियों का अनुरोध कर सकते हैं, 1 से 100 स्टेप्स के साथ, `guidance_scale` को 0 से 10 के बीच सेट कर सकते हैं, `negative_prompt` और `seed` का उपयोग कर सकते हैं, और JPEG, PNG या WebP आउटपुट चुन सकते हैं।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptआवश्यक
प्रकारstring
≤ 16,384 अक्षर
प्राकृतिक भाषा, टैग के अनुक्रम या JSON लेआउट स्वीकार करने वाला इमेज निर्माण प्रॉम्प्ट।
negative_promptवैकल्पिक
प्रकारstring
डिफ़ॉल्ट
≤ 16,384 अक्षर
मार्गदर्शन के लिए उपयोग किया गया नेगेटिव प्रॉम्प्ट; transformer layer skipping तब नेगेटिव शाखा प्रदान करता है जब प्रॉम्प्ट खाली हो।
enable_prompt_expansionवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
प्रॉम्प्ट संवर्धन, जो अनुरोधित दृश्यमान टेक्स्ट को बनाए रखते हुए निर्माण से पहले चयनित इमेज आयामों के लिए संरचित लेआउट की योजना बनाता है। संवर्धन उपलब्ध न होने पर मूल प्रॉम्प्ट का उपयोग जारी रहता है।
image_sizeवैकल्पिक
प्रकारobject
डिफ़ॉल्टsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
आउटपुट आयाम width और height दोनों के लिए 512–2048 pixels तक सीमित हैं और प्रत्येक को 16 के गुणज में राउंड किया जाता है।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट50
1 – 100
किए जाने वाले denoising चरणों की संख्या।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट3
0 – 10
classifier-free guidance की strength।
seedवैकल्पिक
प्रकारinteger | null
निर्माण को पुनरुत्पादित करने योग्य बनाने वाला रैंडम seed।
num_imagesवैकल्पिक num_outputs
प्रकारinteger
डिफ़ॉल्ट1
1 – 4
बनाई जाने वाली इमेज की संख्या।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
आउटपुट मॉडरेशन नियंत्रण, जिसे केवल अधिकृत खाते अक्षम कर सकते हैं; इस सेटिंग के बावजूद अन्य सभी अनुरोधों की जाँच होती है। असुरक्षित चिह्नित किसी भी इमेज के स्थान पर काली इमेज लौटाई जाती है।
output_formatवैकल्पिक
प्रकारenum
डिफ़ॉल्टjpeg
jpegpngwebp
परिणामी इमेज का फ़ॉर्मैट।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "moss-image",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
    ],
    "actual_prompt": "string"
  },
  "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, content_type, file_name, file_size, width, height}निर्माण से तैयार की गई इमेज।
seed
integerपहली इमेज बनाते समय लागू किया गया सीड।
has_nsfw_concepts
array of booleanनिर्मित प्रत्येक इमेज के लिए असुरक्षित-सामग्री संकेतक।
actual_prompt
string | nullप्रॉम्प्ट विस्तार सफल होने पर निर्माण के दौरान लागू किया जाने वाला उन्नत प्रॉम्प्ट।

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