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

Kling O1 Image

ပေါင်းစည်းရန်

မော်ဒယ် id kling-image/o1
# 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/kling-image/o1?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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

API ကီး ရယူရန်
Kling ပုံတည်းဖြတ်ခြင်း ရည်ညွှန်း ထည့်သွင်းချက်များ2K အထိ #edit#realism#typography

ပုံ 10 ခုအထိ၊ @Image tag များနှင့် elements၊ 1K သို့မဟုတ် 2K နှင့် ထွက်ရလဒ် 9 ခုအထိ ပံ့ပိုးသည့် ကိုးကားချက်အခြေပြု ပုံတည်းဖြတ်ခြင်း

Kling · ပုံ

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

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

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

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

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

အက္ခရာ 2500 အထိ ကန့်သတ်ထားသော ပုံဖန်တီးရေးပရောမ့်။ ပုံတစ်ပုံချင်းစီကို @Image1၊ @Image2 စသည်ဖြင့် ရည်ညွှန်းပါ၊ သို့မဟုတ် ပုံတစ်ပုံတည်းအတွက် @Image ကို အသုံးပြုပါ။

•လိုအပ်သည် image_urls
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

ပုံ 10 ပုံအထိ ကန့်သတ်ထားသော ရည်ညွှန်းပုံစာရင်း၊ ပရောမ့်တွင် @Image1၊ @Image2 စသည်ဖြင့် နံပါတ်စဉ်ကို 1 မှစ၍ ရည်ညွှန်းပါ။ ဖိုင်တစ်ခုစီသည် 10.0 MB ထက် မကြီးရ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီသည် အနည်းဆုံး 300px ဖြစ်ရပြီး အချိုးအစားမှာ 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။

resolution မူလ 1K

ထွက်ရလဒ်ပုံ၏ ရုပ်ထွက်အရည်အသွေး၊ ပုံမှန်အတွက် 1K သို့မဟုတ် မြင့်မားသောအရည်အသွေးအတွက် 2K။

aspect_ratio မူလ auto

ထည့်သွင်းအကြောင်းအရာမှ `auto` သတ်မှတ်ထားချိန်တွင် အလိုအလျောက်ရွေးချယ်သော ဖန်တီးထားသည့်ပုံ၏ အချိုးအစား။

num_images မူလ 1

ထွက်ရလဒ်ပုံအရေအတွက်၊ 1 မှ 9 အထိ။

အဆင့်မြင့် output_format · enable_safety_checker · elements
output_format မူလ png

ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။

ရည်ညွှန်းပုံများနှင့် ပေါင်းစပ်ခွင့်ပြုချက် 10 ခုကို မျှဝေသည့် အစိတ်အပိုင်းများအဖြစ် ထည့်သွင်းထားသော ဇာတ်ကောင်များ သို့မဟုတ် အရာဝတ္ထုများ။ ပရောမ့်ရည်ညွှန်းချက်များတွင် @Element1၊ @Element2 စသည်ဖြင့် အသုံးပြုသည်။

POST /run/kling-image/o1?wait=20 ကုန်ကျစရိတ် → ၀.၀၂၈ $
# 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/kling-image/o1?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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Kling O1 Image အကြောင်း

အက္ခရာ 2500 အထိရှိသော `prompt` မှ ပုံများကို တည်းဖြတ် သို့မဟုတ် ပြန်လည်ပေါင်းစပ်သည်။ @Image1၊ @Image2 စသည်ဖြင့် ကိုးကားကာ `image_urls` တွင် ပုံ 10 ခုအထိ သုံးနိုင်သည်။ `elements` သည် ဇာတ်ကောင်များ သို့မဟုတ် အရာဝတ္ထုများကို ထည့်ပြီး စုစုပေါင်း အများဆုံး 10 ခု ဖြစ်သည်။ `resolution` သည် 1K သို့မဟုတ် 2K ဖြစ်ပြီး `num_images` သည် 1 မှ 9 အထိ ဖြစ်သည်။ `aspect_ratio` တွင် auto၊ 21:9 နှင့် 3:2 ပါဝင်သည်။ ထွက်ရလဒ်သည် png၊ jpeg သို့မဟုတ် webp ဖြစ်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
စာလုံး ၂,၅၀၀ လုံးထက် မပိုပါ
အက္ခရာ 2500 အထိ ကန့်သတ်ထားသော ပုံဖန်တီးရေးပရောမ့်။ ပုံတစ်ပုံချင်းစီကို @Image1၊ @Image2 စသည်ဖြင့် ရည်ညွှန်းပါ၊ သို့မဟုတ် ပုံတစ်ပုံတည်းအတွက် @Image ကို အသုံးပြုပါ။
image_urlsလိုအပ်သည် images
အမျိုးအစားurl[] · image
ပုံ 10 ပုံအထိ ကန့်သတ်ထားသော ရည်ညွှန်းပုံစာရင်း၊ ပရောမ့်တွင် @Image1၊ @Image2 စသည်ဖြင့် နံပါတ်စဉ်ကို 1 မှစ၍ ရည်ညွှန်းပါ။ ဖိုင်တစ်ခုစီသည် 10.0 MB ထက် မကြီးရ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီသည် အနည်းဆုံး 300px ဖြစ်ရပြီး အချိုးအစားမှာ 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။
elementsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
ရည်ညွှန်းပုံများနှင့် ပေါင်းစပ်ခွင့်ပြုချက် 10 ခုကို မျှဝေသည့် အစိတ်အပိုင်းများအဖြစ် ထည့်သွင်းထားသော ဇာတ်ကောင်များ သို့မဟုတ် အရာဝတ္ထုများ။ ပရောမ့်ရည်ညွှန်းချက်များတွင် @Element1၊ @Element2 စသည်ဖြင့် အသုံးပြုသည်။
elements[].frontal_image_urlရွေးချယ်နိုင်သည်
အမျိုးအစားurl · image
အကြောင်းအရာ၏ အဓိကမြင်ကွင်းကို ပေးသည့် ရွေးချယ်နိုင်သော ရှေ့မျက်နှာမူပုံ။ ဖိုင်အရွယ်အစားသည် 10.0 MB ထက် မကျော်ရ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီသည် အနည်းဆုံး 300px ဖြစ်ရပြီး အချိုးအစားမှာ 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။
elements[].reference_image_urlsရွေးချယ်နိုင်သည်
အမျိုးအစားurl[] · image
အခြားထောင့်များကို ပြသသည့် ရွေးချယ်နိုင်သော ထပ်ဆောင်းပုံ 0–3 ပုံ။ ဖိုင်တစ်ခုစီသည် 10.0 MB ထက် မကြီးရ၊ အကျယ်နှင့် အမြင့်တစ်ခုစီသည် အနည်းဆုံး 300px ဖြစ်ရပြီး အချိုးအစားမှာ 0.40 မှ 2.50 အတွင်း ဖြစ်ရမည်။
resolutionရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး1K
1K2K
ထွက်ရလဒ်ပုံ၏ ရုပ်ထွက်အရည်အသွေး၊ ပုံမှန်အတွက် 1K သို့မဟုတ် မြင့်မားသောအရည်အသွေးအတွက် 2K။
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၉
ထွက်ရလဒ်ပုံအရေအတွက်၊ 1 မှ 9 အထိ။
aspect_ratioရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးauto
auto16:99:161:14:33:43:22:321:9
ထည့်သွင်းအကြောင်းအရာမှ `auto` သတ်မှတ်ထားချိန်တွင် အလိုအလျောက်ရွေးချယ်သော ဖန်တီးထားသည့်ပုံ၏ အချိုးအစား။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးpng
jpegpngwebp
ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
caller က ခွင့်ပြုချက်ရှိပါက false သတ်မှတ်ခြင်းဖြင့် စစ်ဆေးမှုကို လျှော့ချနိုင်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး https:// URL၊ 10 MB အထိ data: URI သို့မဟုတ် အပ်လုဒ်လုပ်ထားသောဖိုင်၏ file_url ကို လက်ခံသည်။ ဖိုင်များ

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/o1",
  "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": 28,
    "usd": "0.028",
    "charged": 28,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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
      }
    ]
  },
  "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-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}မော်ဒယ်က ဖန်တီးထားသော ပုံများ။

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