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

Kling Image · O3 · Text to Image

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

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

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

API ကီး ရယူရန်
Kling စာသားမှ ပုံ 4K ထွက်ရလဒ်ရည်ညွှန်း ထည့်သွင်းချက်များ4K အထိ #text-to-image

1K၊ 2K သို့မဟုတ် 4K ဖြင့် O3 စာသားမှ ပုံ၊ element အခြေပြု မျက်နှာထိန်းချုပ်မှုနှင့် series ထွက်ရလဒ်

Kling · ပုံ

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

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

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

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

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

အက္ခရာ 2500 အထိ ကန့်သတ်ထားသော ပုံဖန်တီးရေးပရောမ့်။

resolution မူလ 1K

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

aspect_ratio မူလ 16:9

ဖန်တီးမည့်ပုံများ၏ အကျယ်နှင့် အမြင့်အချိုး။

num_images မူလ 1

ထွက်ရလဒ်ပုံအရေအတွက်၊ 1 မှ 9 အထိ၊ `result_type` သည် `single` ဖြစ်သည့်အခါသာ သက်ရောက်သည်။

အဆင့်မြင့် result_type · output_format · series_amount · enable_safety_checker · elements
result_type မူလ single

ထွက်ရလဒ်အမျိုးအစား၊ `single` သည် ပုံတစ်ပုံထုတ်ပြီး `series` သည် ဆက်စပ်ပုံများစွာ ထုတ်သည်။

output_format မူလ png

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

Series ပုံအရေအတွက်၊ 2 မှ 9 အထိ၊ `result_type` သည် `series` ဖြစ်သည့်အခါသာ သက်ရောက်သည်။

ပရောမ့်အတွင်း @Element1၊ @Element2 စသည်ဖြင့် ရည်ညွှန်းသည့် ရွေးချယ်နိုင်သော မျက်နှာထိန်းချုပ်မှု အစိတ်အပိုင်းများ။

POST /run/kling-image/o3/text-to-image?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/o3/text-to-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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Kling Image · O3 · Text to Image အကြောင်း

အက္ခရာ 2500 အထိရှိသော ပရောမ့်မှ ပုံများကို ဖန်တီးပေးသည်။ `resolution` သည် 1K၊ 2K သို့မဟုတ် 4K ဖြစ်ပြီး `aspect_ratio` တွင် 16:9၊ 9:16၊ 1:1၊ 4:3၊ 3:4၊ 3:2၊ 2:3 နှင့် 21:9 ကို အသုံးပြုနိုင်သည်။ ပုံ 1-9 ပုံ ဖန်တီးနိုင်သလို `result_type` ဖြင့် ဆက်စပ်ပုံ 2-9 ပုံပါ စီးရီးတစ်ခုကိုလည်း ဖန်တီးနိုင်သည်။ `elements` သည် ဇာတ်ကောင်များနှင့် အရာဝတ္ထုများ၏ မျက်နှာကို ထိန်းချုပ်ပေးသည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
စာလုံး ၂,၅၀၀ လုံးထက် မပိုပါ
အက္ခရာ 2500 အထိ ကန့်သတ်ထားသော ပုံဖန်တီးရေးပရောမ့်။
elementsရွေးချယ်နိုင်သည်
အမျိုးအစားobject[]
ပရောမ့်အတွင်း @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
1K2K4K
ထွက်ရလဒ်ပုံ၏ ရုပ်ထွက်အရည်အသွေး၊ ပုံမှန်အတွက် 1K၊ မြင့်မားအတွက် 2K သို့မဟုတ် အလွန်မြင့်မားအတွက် 4K။
result_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးsingle
singleseries
ထွက်ရလဒ်အမျိုးအစား၊ `single` သည် ပုံတစ်ပုံထုတ်ပြီး `series` သည် ဆက်စပ်ပုံများစွာ ထုတ်သည်။
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၉
ထွက်ရလဒ်ပုံအရေအတွက်၊ 1 မှ 9 အထိ၊ `result_type` သည် `single` ဖြစ်သည့်အခါသာ သက်ရောက်သည်။
series_amountရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
၂ – ၉
Series ပုံအရေအတွက်၊ 2 မှ 9 အထိ၊ `result_type` သည် `series` ဖြစ်သည့်အခါသာ သက်ရောက်သည်။
aspect_ratioရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး16:9
16:99:161:14:33:43:22:321:9
ဖန်တီးမည့်ပုံများ၏ အကျယ်နှင့် အမြင့်အချိုး။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးpng
jpegpngwebp
ရလဒ်ပုံအတွက် ဖိုင်ဖော်မတ်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
caller က ခွင့်ပြုချက်ရှိပါက false သတ်မှတ်ခြင်းဖြင့် စစ်ဆေးမှုကို လျှော့ချနိုင်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-image/o3/text-to-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": 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"
  },
  "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/o3/text-to-image.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt