ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

MAI Image 2.5 Pro (Edit)

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id microsoft/mai-image-2.5-pro/edit
# 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/microsoft/mai-image-2.5-pro/edit?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.179 179 API ᠺᠷᡝᡩᡳᠲ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Microsoft ᡤᠠᠳᠠᠨ ᠵᠠᠰᡳᠨ #image-editing#typography#photorealism#controllable-editing

ᠵᠠᠯᡠ ᡶᡠᠯᡤᡳ ᠮᡠᠶᠠᡥᠠᠨ ᡳᠮᠠᡤᡝ ᠵᡠᠯᡤᡝᠨ ᡥᡡᠯᡤᠠᠨ ᡳ ᡩᡝᠯᡝᠮᡝ ᡝᠯᡝᠪᡠᠨ ᠵᠠᠯᡳᠨᠠᠮᠪᡳ,ᠠᠮᠠᠯᡤᠠᠨ ᠵᡳ ᡥᡡᠯᡝᠨ ᡳ ᠵᠠᠯᡳᠨ ᠠᠯᡳᠨ ᡥᠠᠨᡩᠠᠮᠪᡳ

Microsoft · ᡤᠠᠳᠠᠨ

ᡳᠨᡝ ᡝᠮᡠᠨᡳᠩᡤᡝ ᡝᡵᡝᠮᡝ ᡩᡝ

ᡝᡵᡝ ᠵᡠᠯᡝᠨ ᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᠠᠶᠠᠨᠠᠮᡝ ᠠᠮᡪᠠᠯᠠ ᡶᡳᠯᡝᠮᡝ ᠪᡝᠶᡝᠮᡝ᠃ API ᠵᡳᡵᡤᠠᡳ ᡤᠠᡳᡥᠠᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠵᠠᠯᠠᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠮᡠᠰᡝᡳ ᠰᡠᠯᡠᠨᡩᡝ ᠪᠠᠶᠠᠨᠠᠮᡝ᠂ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠶᠠᠨ 7 ᡥᠠᠨ ᠰᠠᡳᠨᠠᠮᡝ᠃

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

ᠵᠠᡴᡠᠨᡳ ᠵᡠᠯᡝ ᡩᡝᡵᡤᡳ ᡩᡝᠪᡝᠰᡠᠮᡝ ᠵᡠᠯᡤᡝ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᠪᠠᡳ ᡝᠨᡝᠩᡤᡳ ᠠᠮᠪᡳ

•ᡴᠠᠷᠠᡴᡡ 88 / 5000

ᠵᠠᠪᡠᠨ ᠤᠯᡤᠠᠨ ᠠᡳ ᠤᠯᡤᠠᠨᠴᡳ ᠵᠠᠰᡠᠮᠪᡠᠮᡝ ᠵᠠᠪᡠᠨ ᡥᡡᠯᠠᠨ.

aspect_ratio ᠵᡠᠯᡝ auto

ᠪᡠᠶᡝᠮᡝᠨᡳ ᠵᠠᠯᠠᠨ ᠰᡳᡵᡝ; "auto" ᠪᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨ ᠪᡝ ᠵᠠᠪᡠᠨᠠᠮᡝ ᠠᡳ ᠮᠣᠳᡝᠯ ᠰᠣᠩᡤᠣᠮᠪᡳ.

num_images ᠵᡠᠯᡝ 1

ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠵᡠᠴᡝᠨ ᡳ ᠵᡠᠰᡝ ᡳ ᡩᡠᠯᠠᠨ᠉

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ image · output_format
image_url ᠵᡠᠯᡝ
ᠪᡠᠮᠪᡳ ᡝᠮᡠ ᡩᠠᡵᠠᠮᡝ

ᠵᠠᠰᡠᠮᠪᡠᠮᡝ ᠤᠯᡤᠠᠨ, ᡝᠮᡠ http(s) URL ᠠᡳ data: URL.

output_format ᠵᡠᠯᡝ png

ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡶᡳᠯᡝ ᡳ ᠵᡠᠰᡝ᠉

POST /run/microsoft/mai-image-2.5-pro/edit?wait=20 ᠵᠠᠯᡳᠨ → $0.179
# 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/microsoft/mai-image-2.5-pro/edit?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"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ ᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ

ᡳᠨᡝ ᠵᠠᠯᠠᠨ ᡝᡵᡝ ᠪᡠᡵᡝᠪᡝᡵᡳ ᡩᡝ ᠪᡳᠮᡝ᠈ Doitong API ᡩᡝ ᠵᡝᠯᡤᡳ ᡩᠠᡵᠠᠮᡝ᠈ Remember ᠵᡠᠯᡝᠮᡝ ᡤᡳᠯᠠᠮᡝ localStorage ᡩᡝ ᠰᡠᠯᡝᠮᡝ ᠪᡳᠮᡝ API ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

MAI Image 2.5 Pro (Edit) ᡠᡵᡝᠮᡝ

ᠵᠠᠯᡳᠨ ᡳᠮᠠᡤᡝ ᡩᡝᠯᡝᠮᡝ 5000 ᡳ ᡥᡡᠯᡤᠠᠨ ᡩᡝ ᠰᡳᠨᡩᠠᠮᠪᡳ。ᡳᠮᠠᡤᡝ ᠵᠠᠯᡳᠨ ᡩᡝ `image_url` ᡩᡝᠯᡝᠮᡝ http(s) ᠠᠮᠠᠯᡳ data URL ᠪᡝ ᡝᠮᡠ ᡝᠮᡠ ᡩᠠᠯᡵᡳᠮᠪᡳ。ᠵᠠᠯᡳᠨᠠᠮᠪᡳ ᠰᡳᠨᡩᠠᠮᡝ ᠵᠠᠯᡳᠨ,ᡥᡡᠯᡝᠨ ᠵᡳ ᠵᠠᠯᡳᠨ ᡳ ᠠᠯᡳᠨ ᠪᡝ ᡥᠠᠨᡩᠠᠮᡝ。1 ᡩᡝᡵᡳ 4 ᡝᠯᡝᠪᡠᠨ ᡩᡠᠰᡳᠮᡝ,ᡥᠠᠯᠠᠮᡝ ᠠᠮᠠᠯᡤᠠᠨ ᠠᠮᠠᠯᡳ auto ᠵᡳ ᡳᠯᡳ ᡝᠯᡝᠪᡠᠨ ᡳ ᠶᠠᠪᡠᠮᡝ,jpeg,png ᠠᠮᠠᠯᡤᠠᠨᠠᠮᠪᡳ,webp ᠵᡳ。

ᠵᠠᡴᡠᠨ

ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ ᠵᡝᠯᡤᡳ ᠠᠪᠠᠮᠪᡳ᠈ ᠨᡝᠮᡝ ᠮᡠᠰᡝ ᡠᠯᠠᠮᠪᡳ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 5,000 ᠵᡳᠪᡝᠨ≥ 3 ᠵᡳᠪᡝᠨ
ᠵᠠᠪᡠᠨ ᠤᠯᡤᠠᠨ ᠠᡳ ᠤᠯᡤᠠᠨᠴᡳ ᠵᠠᠰᡠᠮᠪᡠᠮᡝ ᠵᠠᠪᡠᠨ ᡥᡡᠯᠠᠨ.
num_imagesᠵᡠᠯᡝ num_outputs
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
1 – 4
ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠵᡠᠴᡝᠨ ᡳ ᠵᡠᠰᡝ ᡳ ᡩᡠᠯᠠᠨ᠉
aspect_ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝauto
auto1:14:33:416:99:163:22:3
ᠪᡠᠶᡝᠮᡝᠨᡳ ᠵᠠᠯᠠᠨ ᠰᡳᡵᡝ; "auto" ᠪᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨ ᠪᡝ ᠵᠠᠪᡠᠨᠠᠮᡝ ᠠᡳ ᠮᠣᠳᡝᠯ ᠰᠣᠩᡤᠣᠮᠪᡳ.
output_formatᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝpng
jpegpngwebp
ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡶᡳᠯᡝ ᡳ ᠵᡠᠰᡝ᠉
image_urlᠵᡠᠯᡝ image
ᡠᠯᠠᠮᡝurl · image
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ
ᠵᠠᠰᡠᠮᠪᡠᠮᡝ ᠤᠯᡤᠠᠨ, ᡝᠮᡠ http(s) URL ᠠᡳ data: URL.
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

ᠪᡠᠮᠪᡳᠯᡝᠰᡝ ᡝᠮᡠ ᡤᡝᠮᡠᠨᡳ https:// URL᠈ 10 MB ᡩᡝ ᡩᡝᠷᡤᡳ data: URI ᠵᡝᡵᡤᡳ ᡝᠮᡝ᠈ ᡳᠨᡝ ᠪᡠᠮᠪᡳᠯᡝᠰᡝᠨᡳ file_url ᠠᠪᠠᠮᠪᡳ ᠪᡠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "microsoft/mai-image-2.5-pro/edit",
  "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": 179,
    "usd": "0.179",
    "charged": 179,
    "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
      }
    ],
    "description": "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}ᠵᠠᠯᡳᠨᡳ ᠪᡠᠶᡝᠮᡝᠨᡳ ᠤᠯᡥᠠᠨ ᡤᠠᠳᠠᠨ᠉
description
stringᠪᡠᠶᡝᠮᡝᠩᡤᡝ ᡤᠠᠳᠠᠨ ᡩᡝ ᠵᡠᠯᡝ ᠪᡳᠰᡳᡵᡝᠩᡤᡝ ᡥᡡᠯᠠᠨ。

ᡝᠯᡤᡳ ᡩᠠᠯᡳᠨ: ᡤᠠᠳᠠᠨ ᠵᠠᠰᡳᠨ

AI ᠠᡤᡝᠨᡨᡳ ᡠᠴᡠᠷᡳ᠈ ᡝᡵᡝ ᡩᡝᠪᡝᡵᡳ Markdown ᠰᡳᠨᡩᠠᡵᡳ https://doitong.com/mnc/developers/models/microsoft/mai-image-2.5-pro/edit.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt