ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Gemini 2.5 Flash Image

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id gemini-25-flash-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/gemini-25-flash-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"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ: $0.04 40 API ᠺᠷᡝᡩᡳᠲ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Google ᡥᡡᠯᠠᠨ ᡩᡝ ᡤᠠᠳᠠᠨ ᡴᡝᠮᡠᠨᡳ #text-to-image

Google ᡳ ᡥᡡᠯᠠᡥᠠ-ᡳᠨᡠ-ᡳᠮᠠᡤᡝᠨ ᠮᠣᠳᡝᠯᡳ᠂ ᡳᠯᡳ 10 ᠠᠷᠠᠰᡠᠨ᠂ ᡳᠯᡳ 4 ᡳᠮᠠᡤᡝᠨ ᠮᡠᡵᡤᡝᠨ ᡩᡝ᠂ png, jpeg ᠠᠮᠠ webp ᡠᠯᠠᠮᠪᡳ

Google · ᡤᠠᠳᠠᠨ

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

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

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

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

•ᡴᠠᠷᠠᡴᡡ 88 / 50000

ᡤᠠᠳᠠᠨ ᠪᡠᠶᡝᠮᡝ ᡳ ᡥᡡᠯᠠᠨ。

aspect_ratio ᠵᡠᠯᡝ 1:1

ᠪᡠᠶᡝᠮᡝ ᠪᡠᠮᡝᠩᡤᡝ ᡤᠠᠳᠠᠨ ᡳ ᠵᠠᠯᠠᠨ。

num_images ᠵᡠᠯᡝ 1

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

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ output_format · safety_tolerance · seed · limit_generations
output_format ᠵᡠᠯᡝ png

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

safety_tolerance ᠵᡠᠯᡝ 4

ᠪᡠᠮᡝᠩᡤᡝ ᠪᡝᠶᡝ ᠮᡠᡵᡝᠨ ᡳ ᠠᠰᡠᡵᡝ ᠵᡠᠯᡝ,ᠵᡠᠯᡝ 6 ᠴᡳ ᠠᠮᠠᠰᡳ ᠰᡠᠯᡥᡝ 1 ᡩᡝ ᠪᡳ。

ᠰᡝᠨᡩᡝ ᡳ ᡝᠮᡠ ᠵᡠᠯᡝ ᠪᡠᠮᡝᠩᡤᡝ ᠰᡝᠨᡩᡝ。

POST /run/gemini-25-flash-image?wait=20 ᠵᠠᠯᡳᠨ → $0.04
# 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/gemini-25-flash-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"

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

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

Gemini 2.5 Flash Image ᡠᡵᡝᠮᡝ

50000 ᡥᡝᠰᡝ ᡩᡝᠴᡳ ᡥᡡᠯᠠᡥᠠ ᡳ ᠵᡠᠯᡤᡝᠯᡝᠮᡝ ᡳᠮᠠᡤᡝᠨ ᠪᡝ ᠪᡠᠯᡝᠮᠪᡳ᠉ ᠠᠷᠠᠰᡠᠨ 21:9 ᡳᠨᡠ 9:16 ᡩᡝᠴᡳ᠂ ᡳᠯᡳ 1 ᡳᠨᡠ 4 ᡳᠮᠠᡤᡝᠨ ᠪᡳᠮᠪᡳ᠉ ᡠᠯᠠᠮᠪᡠᡥᠠ ᡶᡳᠯᡝ png ᠪᡳᠮᠪᡳ᠂ jpeg ᠠᠮᠠ webp ᠪᡳᠮᠪᡳ᠉ ᡩᡝᠪᡝᠯᡝᠮᡝ ᡳᠮᠠᡤᡝᠨ ᡳ ᡠᠯᠠᠮᠪᡠᡥᠠ ᡩᡝ ᡥᡡᠯᠠᡥᠠ ᠪᡳᠮᠪᡳ᠂ `limit_generations` ᡩᡝ ᡶᡳᠯᡝᠮᡝ ᡩᡝ ᡳᠯᡳ 1 ᠪᡝ ᠪᡠᠯᡝᠮᠪᡳ᠉

ᠵᠠᡴᡠᠨ

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

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 50,000 ᠵᡳᠪᡝᠨ≥ 3 ᠵᡳᠪᡝᠨ
ᡤᠠᠳᠠᠨ ᠪᡠᠶᡝᠮᡝ ᡳ ᡥᡡᠯᠠᠨ。
num_imagesᠵᡠᠯᡝ num_outputs
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
1 – 4
ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠵᡠᠴᡝᠨ ᡳ ᠵᡠᠰᡝ ᡳ ᡩᡠᠯᠠᠨ᠉
seedᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger | null
ᠰᡝᠨᡩᡝ ᡳ ᡝᠮᡠ ᠵᡠᠯᡝ ᠪᡠᠮᡝᠩᡤᡝ ᠰᡝᠨᡩᡝ。
aspect_ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1:1
21:916:93:24:35:41:14:53:42:39:16
ᠪᡠᠶᡝᠮᡝ ᠪᡠᠮᡝᠩᡤᡝ ᡤᠠᠳᠠᠨ ᡳ ᠵᠠᠯᠠᠨ。
output_formatᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝpng
jpegpngwebp
ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡶᡳᠯᡝ ᡳ ᠵᡠᠰᡝ᠉
safety_toleranceᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ4
123456
ᠪᡠᠮᡝᠩᡤᡝ ᠪᡝᠶᡝ ᠮᡠᡵᡝᠨ ᡳ ᠠᠰᡠᡵᡝ ᠵᡠᠯᡝ,ᠵᡠᠯᡝ 6 ᠴᡳ ᠠᠮᠠᠰᡳ ᠰᡠᠯᡥᡝ 1 ᡩᡝ ᠪᡳ。
limit_generationsᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ ᡳ ᠵᠠᠯᠠᠨ:`True` ᠪᡳᠮᡝ ᡥᡡᠯᠠᠨ ᡳ ᡤᠠᠳᠠᠨ ᠵᠠᠯᠠᠨ ᡳ ᠵᡠᠯᡝ ᠠᠰᡠᠪᡠᡵᡝᠮᠪᡳ,ᠨᡝᡵᡝ ᠬᠠᠯᠠᡵᠠᠨ ᡩᡝ 1 ᠪᡠᠶᡝᠮᡝ ᠠᠮᠠᠰᡳ。
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "gemini-25-flash-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": 40,
    "usd": "0.04",
    "charged": 40,
    "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/gemini-25-flash-image.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt