ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

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.37 ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
xAI ਚਿੱਤਰ ਸੰਪਾਦਨ 2k ਤੱਕ #stylized#transform#typography

ਟੈਕਸਟ ਹਦਾਇਤ ਤੋਂ ਵੱਧ ਤੋਂ ਵੱਧ 3 ਇਨਪੁੱਟ ਚਿੱਤਰਾਂ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰਦਾ ਹੈ, 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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Grok Imagine Image Editing Quality ਬਾਰੇ

`prompt` ਵਿੱਚ ਟੈਕਸਟ ਹਦਾਇਤ (8000 ਅੱਖਰਾਂ ਤੱਕ) ਅਤੇ `image_urls` ਵਿੱਚ ਵੱਧ ਤੋਂ ਵੱਧ 3 ਸਰੋਤ ਚਿੱਤਰ ਲੈਂਦਾ ਹੈ, ਫਿਰ ਸੰਪਾਦਿਤ ਰੂਪ ਵਾਪਸ ਕਰਦਾ ਹੈ। `num_images` ਨਾਲ 1 ਤੋਂ 4 ਨਤੀਜੇ ਮੰਗੋ, 1k ਜਾਂ 2k `resolution` ਚੁਣੋ ਅਤੇ jpeg, png ਜਾਂ webp ਵਜੋਂ ਆਉਟਪੁੱਟ ਦਿਓ। `aspect_ratio` auto ਹੋਣ ’ਤੇ ਆਉਟਪੁੱਟ ਪਹਿਲੇ ਇਨਪੁੱਟ ਚਿੱਤਰ ਦੀ ਸ਼ਕਲ ਕਾਇਮ ਰੱਖਦੀ ਹੈ। ਜਵਾਬ ਵਿੱਚ ਸੋਧਿਆ ਹੋਇਆ ਪ੍ਰੌਂਪਟ ਸ਼ਾਮਲ ਹੁੰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
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
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
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/pa/developers/models/xai/grok-imagine-image/quality/edit.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt