အကြောင်းအရာသို့ ကျော်ရန်

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"

ဤတောင်းဆိုချက်: ၀.၀၅ $ ၅၀ API ခရက်ဒစ် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်

ပုံများအတွင်း တရုတ်နှင့် အင်္ဂလိပ်စာသားများအတွက် layout ကို နားလည်သော ပရောမ့်များနှင့် ရွေးချယ်နိုင်သော ချဲ့ထွင်မှုပါသည့် text-to-image မော်ဒယ်

Open model · ပုံ

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည် 88 / 16384

သဘာဝဘာသာစကား၊ tag အစီအစဉ်များ သို့မဟုတ် JSON layout များကို လက်ခံသော ပုံဖန်တီးမှု ပရောမ့်။

image_size မူလ square_hd

အကျယ်နှင့် အမြင့်နှစ်ခုစလုံးအတွက် 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 step အရေအတွက်။

မူလ 3

classifier-free guidance ၏ strength။

ဖန်တီးမှုကို ထပ်တူပြန်လုပ်နိုင်စေသော ကျပန်း seed။

POST /run/moss-image?wait=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/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 သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

MOSS Image အကြောင်း

သဘာဝဘာသာစကား၊ အညွှန်း အစီအစဉ်များ သို့မဟုတ် JSON layout များဖြင့် ရေးသားထားသော အက္ခရာ 16384 အထိပါသော `prompt` မှ ပုံများကို ဖန်တီးသည်။ ၎င်းက စာသားနှင့် အရာဝတ္ထုများကို တိကျစွာ နေရာချရန် ကူညီသည်။ ပရောမ့်ချဲ့ထွင်မှုသည် ဖွဲ့စည်းတည်ဆောက်ထားသော layout တစ်ခုကို ဦးစွာ စီစဉ်ပြီး မူလအတိုင်း ဖွင့်ထားသည်။ အရွယ်အစားများကို ကြိုတင်သတ်မှတ်ချက် 6 ခု (စတုရန်း၊ ပုံတူနှင့် အလျားလိုက်) မှ ရွေးချယ်ပြီး 512 မှ 2048 ပစ်ဇယ်အတွင်း 16 ၏မြှောက်ကိန်းများသို့ လှည့်ပတ်ပေးသည်။ ပုံ 1 မှ 4 ပုံ၊ အဆင့် 1 မှ 100 အထိ တောင်းဆိုနိုင်ပြီး `guidance_scale` ကို 0 မှ 10 အထိ သတ်မှတ်နိုင်သည်။ `negative_prompt` နှင့် `seed` ကို အသုံးပြုနိုင်ပြီး JPEG၊ PNG သို့မဟုတ် WebP ထွက်ရလဒ်ကို ရွေးချယ်နိုင်သည်။

ပါရာမီတာများ

စံအမည် သို့မဟုတ် မူရင်းအမည် တစ်ခုခုကိုသာ ပို့ပါ၊ နှစ်ခုလုံး မပို့ပါနှင့်။ စံအမည်များ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
စာလုံး ၁၆,၃၈၄ လုံးထက် မပိုပါ
သဘာဝဘာသာစကား၊ tag အစီအစဉ်များ သို့မဟုတ် JSON layout များကို လက်ခံသော ပုံဖန်တီးမှု ပရောမ့်။
negative_promptရွေးချယ်နိုင်သည်
အမျိုးအစားstring
မူလတန်ဖိုး
စာလုံး ၁၆,၃၈၄ လုံးထက် မပိုပါ
လမ်းညွှန်မှုအတွက် အသုံးပြုသော အနုတ်လက္ခဏာပရောမ့်၊ ပရောမ့်ဗလာဖြစ်လျှင် transformer layer skipping က အနုတ်ဘက်ကို ပေးသည်။
enable_prompt_expansionရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ဖန်တီးမည့် ပုံအရွယ်အစားအတွက် ဖွဲ့စည်းပုံရှိသော layout ကို ကြိုတင်စီစဉ်ရင်း တောင်းဆိုထားသော မြင်ရသည့်စာသားကို ထိန်းသိမ်းပေးသည့် ပရောမ့်မြှင့်တင်မှု။ မြှင့်တင်မှု မရနိုင်လျှင် မူလပရောမ့်ကို ဆက်အသုံးပြုသည်။
image_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားobject
မူလတန်ဖိုးsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
အကျယ်နှင့် အမြင့်နှစ်ခုစလုံးအတွက် 512–2048 pixels အတွင်း ကန့်သတ်ထားသော ထွက်ရလဒ်အရွယ်အစား၊ တစ်ခုစီကို 16 ၏ ဆတိုးကိန်းသို့ ပတ်လည်ချိန်ညှိသည်။
num_inference_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး50
၁ – ၁၀၀
လုပ်ဆောင်မည့် denoising step အရေအတွက်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး3
၀ – ၁၀
classifier-free guidance ၏ strength။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ဖန်တီးမှုကို ထပ်တူပြန်လုပ်နိုင်စေသော ကျပန်း seed။
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၄
ထုတ်လုပ်မည့် ပုံအရေအတွက်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
ခွင့်ပြုထားသော အကောင့်များသာ ပိတ်နိုင်သည့် ထွက်ရလဒ် moderation ထိန်းချုပ်မှု၊ အခြားတောင်းဆိုချက်အားလုံးသည် ဤဆက်တင်နှင့် မသက်ဆိုင်ဘဲ စစ်ဆေးခံရသည်။ မလုံခြုံဟု အလံတပ်ထားသော ပုံအစား အနက်ရောင်ပုံကို ပြန်ပေးသည်။
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-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
images
array of object {url, content_type, file_name, file_size, width, height}ဖန်တီးမှုမှ ထွက်ရှိသည့် ပုံများ။
seed
integerပထမပုံကို ဖန်တီးစဉ် အသုံးပြုသည့် seed။
has_nsfw_concepts
array of booleanဖန်တီးထားသော ပုံတစ်ပုံချင်းစီအတွက် မလုံခြုံသောအကြောင်းအရာ ညွှန်ပြချက်။
actual_prompt
string | nullပရောမ့်ချဲ့ထွင်မှု အောင်မြင်လျှင် ဖန်တီးမှုအတွင်း အသုံးပြုသော မြှင့်တင်ထားသည့် ပရောမ့်။

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/moss-image.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt