ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Grok Imagine Image Editing Quality

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id xai/grok-imagine-image/quality/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/xai/grok-imagine-image/quality/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᠵᠠᠨᡳ ᡥᠠᠯᠠᠮᠠ ᡥᡡᠯᠠᠨᡳ ᡶᡳᠯᡝ: $0.05 50 API ᠺᠷᡝᡩᡳᠲ · ≈ ₽5.38 ᠰᡳᠨᡳ ᡶᡳᠯᡝ ᠵᠠᠯᡤᠠᠨ ᠠᠰᡠᠮᠪᡳᠨᡳ ᠠᠯᡳᠮᠪᡳ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
xAI ᡤᠠᠳᠠᠨ ᠵᠠᠰᡳᠨ 2k ᡩᡝ ᡳᠨᡝ #stylized#transform#typography

ᡳᠨᡤᡝᠨᡝᠩᡤᡳ ᡤᡡᡵᡠᠩᡤᡝ ᡤᡠᠯᡤᡠ ᡠᠯᡤᡳᠨ ᡩᡠᠯᡝᠩᡤᡝ ᡤᡠᠯᡤᡠᠮᡝ ᡤᡝᠯᡳ ᡝᠮᡠᠯᡝ ᠪᡝ ᡥᡡᠯᡠᠨ ᠵᡠᠰᡤᡠᠨ ᡝᠮᡤᡳᠯᡝᠮᡝ ᡤᡝᠯᡳ 1k ᠵᠠᠯᡳᠨ ᡳᠮᡠ 2k ᠵᠠᠯᡳᠨ ᠠᠵᡤᠠᠨ ᠨᡝᠰᡳᠨ ᡳ ᡶᡳᠰᡳᠨ ᠠᠰᡠᠯᠠᠨ

Doitong ᡩᡝ ᠪᡠᠶᡝᠮᡝ

Doitong ᡤᡝᠮᡠᠨᡳ Grok Imagine Image ᡩᡝ ᠵᠠᠯᠠᠨ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᡝᠮᡠ ᡤᡳᠯᠠᠨ ᡩᡝ ᡩᠠᡵᠠᠮᡝ

ᡤᡝᠮᡠᠨᡳ ᠵᡠᠯᡤᡝ ᠵᠠᠯᠠᠨ: 16
Brand guidelines: Visual style: Cinematic Realistic: photorealistic live-action, shallow depth of...

Brand guidelines: Visual style: Cinematic Realistic: photorealistic live-action, shallow depth of field, dramatic lighting, film grain. Reference images context (match the visual style and elements from these): - reference photo (style_reference): use as visual reference for setting, objects, and...

Art style: Cinematic Realistic. Full-length view, the entire figure visible from head to feet, st...

Art style: Cinematic Realistic. Full-length view, the entire figure visible from head to feet, standing upright, a 24-year-old man centered in frame. He is a fictional everyman: slim, slightly under-built frame with noticeably slouched, rounded shoulders and a caved-in posture that reads as...

Art style: мультяшный. An extreme wide high-angle composition looking down at the sunlit yellow k...

Art style: мультяшный. An extreme wide high-angle composition looking down at the sunlit yellow kitchen table. Lily peers over the edge into her open turquoise lunchbox where Broc and Apple Slice sit side-by-side holding miniature bright red paper hearts aloft. Lily's expression transforms into...

Art style: Clay / Plasticine. ПОЖИЛАЯ АНЯ. Clay plasticine figure of an elderly woman with dark h...

Art style: Clay / Plasticine. ПОЖИЛАЯ АНЯ. Clay plasticine figure of an elderly woman with dark hair streaked with sculpted silver strands in a low bun. Her face is kind and lined, with visible clay texture. She wears a mustard-yellow knitted scarf over a dark-green cardigan. Silhouette tag:...

Art style: Clay / Plasticine. ЭЛЛИПСИС, другая локация. Гостиная с серыми незакрашенными стенами ...

Art style: Clay / Plasticine. ЭЛЛИПСИС, другая локация. Гостиная с серыми незакрашенными стенами освещена окном и голой лампой. Миша в тёмно-синей толстовке и Аня в горчичном свитере стоят у стены, у каждого кисть в правой руке. На полу ровно два ведра коралловой краски.. изменить одежду на...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 2: one page divided into a clean 3x3 gri...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 2: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 9:16 rectangle with a thin ruled black border and a small hand-written panel number in its top-left corner from 1 to 9. Thin...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 3: one page divided into a clean 3x3 gri...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 3: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 9:16 rectangle with a thin ruled black border and a small hand-written panel number in its top-left corner from 1 to 9. Thin...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 1: one page divided into a clean 3x3 gri...

A traditional hand-drawn FILM STORYBOARD SHEET for scene 1: one page divided into a clean 3x3 grid of NINE separate rectangular panels, three rows of three, each panel a 9:16 rectangle with a thin ruled black border and a small hand-written panel number in its top-left corner from 1 to 9. Thin...

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

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

•ᡴᠠᠷᠠᡴᡡ 88 / 8000

ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨ ᡳ ᠪᡳᠴᡳᡥᡝ ᠵᡠᠯᡝ.

resolution ᠵᡠᠯᡝ 1k

ᡤᠠᠳᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᠰᠣᠩᡤᠣᠮᠪᡳ: ᠵᡠᠯᡝ (`1k`) ᠨᡝ ᠠᠮᠪᠠᠨ (`2k`).

ᠵᡠᠯᡝ auto

ᡤᠠᠳᠠᠨ ᡳ ᠵᠠᠰᠠᡥᠠ ᠠᠮᠪᠠᠨ ᡳ ᠬᡝᠪᡳ. `auto` ᠵᡠᠯᡝ ᡝᡵᡝᠮᡝ ᠪᡠᠮᡝ ᡳ ᠬᡝᠪᡳ ᠪᡝ ᠠᠪᡠᠮᠪᡳ.

num_images ᠵᡠᠯᡝ 1

ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᠠᠮᠠᠨ.

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ images · output_format · enable_safety_checker
image_urls
ᠪᡠᠮᠪᡳ ᡝᠮᡠ ᡩᠠᡵᠠᠮᡝ

ᠵᠠᠰᠠᡥᠠ ᡤᠠᠳᠠᠨ ᡳ URL, ᠯᡳᠰᡨᡝ ᡩᡝ 3 ᠠᠴᠠᠨ.

output_format ᠵᡠᠯᡝ jpeg

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

POST /run/xai/grok-imagine-image/quality/edit?wait=20 ᠵᠠᠯᡳᠨ → $0.05
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/xai/grok-imagine-image/quality/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Grok Imagine Image Editing Quality ᡠᡵᡝᠮᡝ

ᡳ `prompt` ᡩᡝ ᠠᠮᠪᠠᠨ ᡥᡡᠯᡠᠨ ᠵᡠᠰᡤᡠᠨ (8000 ᡥᡡᠯᡝᠨ ᡩᡝ ᡝᠯᡳᠨ) ᠪᡝ ᡝᠮᡤᡳᠯᡝᠮᡝ, `image_urls` ᡩᡝ ᡝᠮᡤᡳᠯᡝᡥᡝ ᠵᡠᠯᡤᡝᠨ ᠵᡠᠯᡤᡝᠨ 3 ᡩᡝ ᡝᠯᡳᠨ ᠪᡝ ᠠᠪᡠᠮᡝ ᡤᡝᠯᡳᠮᡝ ᠰᡠᠯᡠᠨᡳ ᠵᡠᠯᡤᡝᠨ ᠪᡝ ᡶᡠᠯᡤᡳᠶᡝᠮᡝ ᠠᠮᠪᠠᠨᡳ ᠪᡝ ᠪᠠᠨᠵᡳᠮᡝ ᡤᡝᠯᡳᠮᡝ. `num_images` ᡳ 1 ᡩᡝ 4 ᡩᡝ ᡝᠯᡳᠨ ᠪᡝ ᠵᠠᠯᡳᠨ, 1k ᡠᠯᡤᡳ 2k `resolution` ᠪᡝ ᠰᠣᠩᡤᠣᠮᡝ, jpeg, png ᡳᠨᡠ ᠪᡝᠴᡝ webp ᠪᡝ ᠠᠰᡠᠯᠠᠮᡝ. `aspect_ratio` ᠠᠶᠠᠨ ᡩᡝ ᠪᡳᠰᡳᠨ ᠪᡝ ᠵᡠᠯᡤᡝᠨ ᠮᡠᠨᡩᡝᠨ ᡳ ᡶᡳᠰᡳᠨ ᠪᡝ ᠠᠯᡤᡳᠮᠪᡳ. ᠵᠠᠯᡳᠨ ᡩᡝ ᡶᡠᠯᡤᡳᠶᡝᡥᡝ ᡥᡡᠯᡠᠨ ᠵᡠᠰᡤᡠᠨ ᠪᡳ.

ᠵᠠᡴᡠᠨ

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

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 8,000 ᠵᡳᠪᡝᠨ
ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨ ᡳ ᠪᡳᠴᡳᡥᡝ ᠵᡠᠯᡝ.
num_imagesᠵᡠᠯᡝ num_outputs
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
1 – 4
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᠠᠮᠠᠨ.
aspect_ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝauto
auto2:120:919.5:916:94:33:21:12:33:49:169:19.59:201:2
ᡤᠠᠳᠠᠨ ᡳ ᠵᠠᠰᠠᡥᠠ ᠠᠮᠪᠠᠨ ᡳ ᠬᡝᠪᡳ. `auto` ᠵᡠᠯᡝ ᡝᡵᡝᠮᡝ ᠪᡠᠮᡝ ᡳ ᠬᡝᠪᡳ ᠪᡝ ᠠᠪᡠᠮᠪᡳ.
resolutionᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1k
1k2k
ᡤᠠᠳᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᠰᠣᠩᡤᠣᠮᠪᡳ: ᠵᡠᠯᡝ (`1k`) ᠨᡝ ᠠᠮᠪᠠᠨ (`2k`).
output_formatᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝjpeg
jpegpngwebp
ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡶᡳᠯᡝ ᡳ ᠵᡠᠰᡝ᠉
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᠠᠰᡠᡵᠠᠮᡝ ᠠᠨᡩᠠ ᠪᡳᠮᡝ ᠰᠠᡳᠨ᠈ ᠵᡠᠴᡝᠨ ᠵᡠᠰᡝ ᠠᠰᡠᡵᠠᠮᡝ᠉
image_urlsᠵᡠᠯᡝ images
ᡠᠯᠠᠮᡝurl[] · image
ᠵᠠᠰᠠᡥᠠ ᡤᠠᠳᠠᠨ ᡳ URL, ᠯᡳᠰᡨᡝ ᡩᡝ 3 ᠠᠴᠠᠨ.
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

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

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-image/quality/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": 50,
    "usd": "0.05",
    "charged": 50,
    "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
      }
    ],
    "revised_prompt": "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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}ᡝᡵᡝᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠵᠠᠯᡳᠨ ᡳᠯᡤᠠᠨ URL.
revised_prompt
string | nullᡤᠠᠳᠠᠨ ᠪᡠᠶᡝᠮᡝ ᡳ ᠵᠠᠰᠠᡥᠠ ᡥᡡᠯᠠᠨ.

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

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