কনটেন্টে যান

Grok Imagine Image · Edit

ইন্টিগ্রেট করুন

মডেল id xai/grok-imagine-image/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/xai/grok-imagine-image/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"

এই অনুরোধ: ০.০২২$ ২২ API ক্রেডিট এই পেজে চালান

API কী পান
xAI ছবি সম্পাদনা 2k পর্যন্ত #grok#xai#image-editing

সর্বোচ্চ ৩টি ইনপুট ছবি থেকে Grok ছবি এডিটিং, যেখানে অ্যাসপেক্ট রেশিও ডিফল্ট হিসেবে প্রথম ছবির মতো থাকে

Doitong-এ তৈরি

Doitong কমিউনিটির Grok Imagine Image দিয়ে তৈরি পাবলিক কাজ। এক ক্লিকে একটি প্রম্পট পুনরায় ব্যবহার করুন।

দেখানো পাবলিক কাজ: 16
Art style: Professional portrait photography, cinematic lighting, realistic high detail. Арена, с...

Art style: Professional portrait photography, cinematic lighting, realistic high detail. Арена, свет софитов, на табло алые цифры 00:45. Трибуны полны и неподвижны. Медиум: Арина с чёрной повязкой на волосах держит сковороду правой рукой. Натан стоит за столом напротив, в его руке пинцет....

Art style: 3D Cartoon. Christopher Kolumbus. Ein wettergegerbter Navigator im mittleren Alter mit...

Art style: 3D Cartoon. Christopher Kolumbus. Ein wettergegerbter Navigator im mittleren Alter mit fokussierten bernsteinfarbenen Augen und vom Wind zerzaustem, dunklem Haar. Er trägt ein dunkles Wams aus Wolle mit Lederbesatz über einem Leinenhemd. Seine Haut ist von der Sonne gebräunt und zeigt...

Art style: 3D Cartoon. Columbus leaning in the middle ground. Columbus is leaning on deck in the ...

Art style: 3D Cartoon. Columbus leaning in the middle ground. Columbus is leaning on deck in the middle ground in the midground. Head in right profile. Eyes on water. Reaching down. Hopeful. Close-up at eye level, 9:16. Opening close-up, ending extreme close-up low angle. Key light side, cool...

Art style: 3D Cartoon. Sigmund sitting in the near foreground; Enkel crouching further back in th...

Art style: 3D Cartoon. Sigmund sitting in the near foreground; Enkel crouching further back in the frame. Distance across the rug. Sigmund is sitting on armchair in the near foreground in the midground. Torso in three-quarter turn to screen-right. Head in three-quarter turn to screen-right. Eyes...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, ador...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, adorable characters, family friendly. Майло. A tiny fluffy bright ginger-orange kitten with big expressive emerald-green eyes, a soft white chest, and four little white paws. He has a miniature pink nose...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, ador...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, adorable characters, family friendly. Барнаби. A plump chestnut-brown squirrel with an enormous fluffy tail, wearing a tiny carved acorn shell cap tilted slightly over one ear. He has sharp bright dark...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, ador...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, adorable characters, family friendly. Пип. A chubby, fluffy cream-and-caramel floppy-eared bunny wearing a small pastel blue fabric bow-tie around his neck. He has shiny round dark eyes, pink cheeks, and...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, ador...

Art style: Cute 3D animation, colorful Pixar-inspired style, bright lighting, soft textures, adorable characters, family friendly. Мама-птица и Птенчик. A tiny, round baby bluebird covered in soft pastel-blue downy feathers with gigantic blinking dark eyes and an open yellow beak, perched...

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক 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/edit?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/xai/grok-imagine-image/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"

এই অনুরোধ চালান

আপনার key এই ব্রাউজারেই থাকে: এটি শুধু Doitong API-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

Grok Imagine Image · Edit সম্পর্কে

সর্বোচ্চ 8000 অক্ষরের একটি প্রম্পট অনুযায়ী `image_urls`-এ সর্বোচ্চ 3টি URL ব্যবহার করে ছবি এডিট করে। `aspect_ratio` ডিফল্টভাবে auto, যা প্রথম ইনপুট ছবির অনুপাত বজায় রাখে, অথবা স্পষ্টভাবে সেট করা যায়। রেজোলিউশন 1k বা 2k, এবং jpeg, png বা webp-এ সর্বোচ্চ 4টি আউটপুট পাওয়া যায়। একটি সংশোধিত প্রম্পট ফেরত দেয়।

প্যারামিটার

ক্যানোনিকাল নাম অথবা নেটিভ নাম—দুটো একসঙ্গে নয়—পাঠান। ক্যানোনিকাল নামগুলো

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
≤ ৮,০০০টি অক্ষর
তৈরি করার ছবির পাঠ্য বিবরণ।
num_imagesঐচ্ছিক num_outputs
ধরনinteger
ডিফল্ট1
১ – ৪
উৎপাদন করার ছবির সংখ্যা।
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/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": 22,
    "usd": "0.022",
    "charged": 22,
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
আপনার ফাইল, আপনার পছন্দপ্রতিটি outputs[].url আমাদের স্টোরেজে একটি কপি: চিরকাল রাখা হয় (প্রতি GB-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?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/bn/developers/models/xai/grok-imagine-image/edit.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt