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

GPT Image 2 API

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

မော်ဒယ် id openai/gpt-image-2
# 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/openai/gpt-image-2?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 ကီး ရယူရန်
OpenAI စာသားမှ ပုံ #gpt-image-2#openai#typography#chatgpt-images-2

စာသားမှပုံဖန်တီးပေးသော GPT Image 2၊ အစွန်းအရွယ်အစား 3840px အထိ အရွယ်အစားများကို လွတ်လပ်စွာရွေးချယ်နိုင်ပြီး တိကျသော စာလုံးဖော်ပြမှုအတွက် ရည်ရွယ်ထားသည်

Doitong တွင် ဖန်တီးထားသည်

Doitong အသိုင်းအဝိုင်းက GPT Image 2 API ဖြင့် ဖန်တီးထားသော အများပြည်သူသုံး လက်ရာများ။ ပရောမ့်ကို တစ်ချက်နှိပ်၍ ပြန်အသုံးပြုပါ။

ပြသထားသော အများပြည်သူသုံး လက်ရာများ: 16
Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается свое...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается своей самой широкой и дружелюбной улыбкой, глядя в камеру. Она делает призывающий жест руками, словно приглашая к общению. Перед ней на столе по-прежнему лежат аппетитные булочки. Освещение становится...

Grungy analog photo of Daphne Blake (from Serial scooby doo) watching her own movie on a 90s CRT ...

Grungy analog photo of Daphne Blake (from Serial scooby doo) watching her own movie on a 90s CRT TV in a dimly lit bedroom. The TV clearly shows animated scene from scooby doo, with a cartoon-style Daphne in her classic clothes on screen, smiling. Daphne Blake is sitting cross-legged on the floor...

Fotografia realistica scattata dall’interno di un appartamento situato a un piano abbastanza alto...

Fotografia realistica scattata dall’interno di un appartamento situato a un piano abbastanza alto, guardando verso il basso attraverso una finestra aperta su una normale strada cittadina. In strada, una folla numerosa di manifestanti avanza compatta; alcune persone indossano passamontagna. Sul...

Art style: Disney-inspired. Золушка walking further back in the frame; Косметолог standing in the...

Art style: Disney-inspired. Золушка walking further back in the frame; Косметолог standing in the near foreground. The couch and strip of reflective floor separate them. Золушка is walking on glossy floor near the open doorway further back in the frame in the midground. Torso in three-quarter...

Art style: Реалистичный кулинарный блог. Экстремально крупный план рук ведущей, разламывающих гот...

Art style: Реалистичный кулинарный блог. Экстремально крупный план рук ведущей, разламывающих готовую, горячую булочку. Булочка имеет аппетитную золотисто-коричневую корочку, густо посыпанную поджаренным кунжутом. В месте разлома видна пористая, воздушная и очень мягкая текстура мякиша...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается свое...

Art style: Реалистичный кулинарный блог. Финальный кадр, средний план ведущей. Она улыбается своей самой широкой и дружелюбной улыбкой, глядя в камеру. Она делает призывающий жест руками, словно приглашая к общению. Перед ней на столе по-прежнему лежат аппетитные булочки. Освещение становится...

Square album cover for an energetic house dance single. A dancing crowd silhouette in a night clu...

Square album cover for an energetic house dance single. A dancing crowd silhouette in a night club under warm orange and golden stage lights, flying sparks and flames rising from the dance floor, misty Scottish highland mountains faintly visible in the glowing background. Bold modern clean...

Medium shot of launch team executives in smart casual blazers over plain t-shirts, sitting in a m...

Medium shot of launch team executives in smart casual blazers over plain t-shirts, sitting in a modern conference room facing a large display showing the 'International AI Safety Report' document title from February 2026, professional lighting. Context markers: smart casual blazer, plain t-shirt,...

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

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

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

ပုံများဖန်တီးရန် အသုံးပြုသော ပရောမ့်။

image_size မူလ landscape_4_3

ထွက်ရလဒ်အရွယ်အစားများသည် preset အမည်၊ {width, height} object သို့မဟုတ် မော်ဒယ်အတွက် အကောင်းဆုံးအရွယ်အစားကို ရွေးချယ်ရန် 'auto' ကို လက်ခံသည်။ တိကျသောအရွယ်အစားအားလုံးတွင် dimensions များကို 16 ဖြင့်စားလို့ပြတ်ရမည်၊ အနားတစ်ဖက်သည် 3840px ထက် မရှည်ရ၊ aspect ratio သည် အများဆုံး 3:1 ဖြစ်ရမည်၊ pixel စုစုပေါင်းသည် 655,360–8,294,400 ဖြစ်ရမည်။

num_images မူလ 1

ထုတ်လုပ်မည့် ပုံအရေအတွက်။

အဆင့်မြင့် background · quality · output_format · enable_safety_checker
background မူလ auto

ရရှိလာမည့် ပုံ၏ နောက်ခံ။

quality မူလ high

ပုံအရည်အသွေး ရွေးချယ်မှု၊ ပရောမ့်အပေါ် မူတည်၍ မော်ဒယ်က အကောင်းဆုံးအရည်အသွေးကို ရွေးချယ်ရန် 'auto' ပါဝင်သည်။

output_format မူလ png

ပုံထွက်ရလဒ်များ၏ ဖိုင်ဖော်မတ်။

POST /run/openai/gpt-image-2?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/openai/gpt-image-2?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 ကီး ရယူရန်

GPT Image 2 API အကြောင်း

အများဆုံး စာလုံး 32000 ပါသော ပရောမ့်မှ ပုံများကို ဖန်တီးသည်။ `image_size` သည် ကြိုတင်သတ်မှတ်ချက်များ၊ auto သို့မဟုတ် အကျယ်နှင့် အမြင့်ကို တိတိကျကျ လက်ခံပြီး အတိုင်းအတာနှစ်ခုလုံးသည် အများဆုံးအစွန်း 3840px ဖြင့် 16 ၏ ဆတိုးကိန်းများ ဖြစ်ရမည်။ အရည်အသွေးသည် auto၊ low၊ medium သို့မဟုတ် high ဖြစ်နိုင်ပြီး ခေါ်ဆိုမှုတစ်ကြိမ်လျှင် png၊ jpeg သို့မဟုတ် webp ဖြင့် ပုံ 4 ပုံအထိ ရနိုင်သည်။

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

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

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
စာလုံး ၃၂,၀၀၀ လုံးထက် မပိုပါစာလုံး ၂ လုံးထက် မနည်းပါ
ပုံများဖန်တီးရန် အသုံးပြုသော ပရောမ့်။
image_sizeရွေးချယ်နိုင်သည်
အမျိုးအစားobject
မူလတန်ဖိုးlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
ထွက်ရလဒ်အရွယ်အစားများသည် preset အမည်၊ {width, height} object သို့မဟုတ် မော်ဒယ်အတွက် အကောင်းဆုံးအရွယ်အစားကို ရွေးချယ်ရန် 'auto' ကို လက်ခံသည်။ တိကျသောအရွယ်အစားအားလုံးတွင် dimensions များကို 16 ဖြင့်စားလို့ပြတ်ရမည်၊ အနားတစ်ဖက်သည် 3840px ထက် မရှည်ရ၊ aspect ratio သည် အများဆုံး 3:1 ဖြစ်ရမည်၊ pixel စုစုပေါင်းသည် 655,360–8,294,400 ဖြစ်ရမည်။
backgroundရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးauto
autotransparentopaque
ရရှိလာမည့် ပုံ၏ နောက်ခံ။
qualityရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးhigh
autolowmediumhigh
ပုံအရည်အသွေး ရွေးချယ်မှု၊ ပရောမ့်အပေါ် မူတည်၍ မော်ဒယ်က အကောင်းဆုံးအရည်အသွေးကို ရွေးချယ်ရန် 'auto' ပါဝင်သည်။
num_imagesရွေးချယ်နိုင်သည် num_outputs
အမျိုးအစားinteger
မူလတန်ဖိုး1
၁ – ၄
ထုတ်လုပ်မည့် ပုံအရေအတွက်။
output_formatရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးpng
jpegpngwebp
ပုံထွက်ရလဒ်များ၏ ဖိုင်ဖော်မတ်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
caller က ခွင့်ပြုချက်ရှိပါက false သတ်မှတ်ခြင်းဖြင့် စစ်ဆေးမှုကို လျှော့ချနိုင်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "openai/gpt-image-2",
  "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": 106,
    "usd": "0.106",
    "charged": 106,
    "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://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}မော်ဒယ်မှ ထုတ်လုပ်ထားသောပုံများ။

နောက်ထပ် မော်ဒယ်များ: စာသားမှ ပုံ

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