কনটেন্টে যান

Recraft V4.1 Text to Image

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

মডেল id recraft/v4.1/text-to-image
# 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/recraft/v4.1/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Full-body fashion shot with the character framed in a close-up, cropped from mid-thigh or waist up so the figure dominates the composition, neutral pose, muted outfit, solid grey background (flat, no gradient). Minimal scribbles with one large graphic element (e.g. oversized abstract shape or drawn eye) placed behind and partially overlapping the figure. Bold oversized typography integrated tightly around the subject: '\''MAKE IT BREAK / MAKE IT WORK'\'' (large serif, slightly distorted, crossing the upper body), '\''no perfect version exists'\'' (small subtle line). Add stickers: minimal icons, checkmarks, soft scribbles, small tape details. Clean but expressive editorial chaos, focus on the character."
  }'

# 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"

এই অনুরোধ: ০.০৩৫$ ৩৫ API ক্রেডিট · ≈ ৩.৭৭₽ এই পেজে চালান

API কী পান
Recraft টেক্সট থেকে ছবি #design#brand-colors#illustration

ব্র্যান্ড প্যালেট ও ব্যাকগ্রাউন্ডের রঙ নিয়ন্ত্রণসহ ডিজাইনারদের জন্য তৈরি ইমেজ মডেল।

উদাহরণ

আউটপুট · ~27 s
Full-body fashion shot with the character framed in a close-up, cropped from mid-thigh or waist up so the figure domi...

প্রম্পটFull-body fashion shot with the character framed in a close-up, cropped from mid-thigh or waist up so the figure dominates the composition, neutral pose, muted outfit, solid grey background (flat, no gradient). Minimal scribbles with one large graphic element (e.g. oversized abstract shape or drawn eye) placed behind and partially overlapping the figure. Bold oversized typography integrated tightly around the subject: 'MAKE IT BREAK / MAKE IT WORK' (large serif, slightly distorted, crossing the upper body), 'no perfect version exists' (small subtle line). Add stickers: minimal icons, checkmarks, soft scribbles, small tape details. Clean but expressive editorial chaos, focus on the character.

০.০৩৫$ · ৩৫ API ক্রেডিট

X-এ @recraftai-এর প্রম্পট

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

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

•আবশ্যক 700 / 10000
image_size ডিফল্ট square_hd
অ্যাডভান্সড colors · background_color
ডিফল্ট []

পছন্দের রঙ থাকা অ্যারে।

জেনারেট করা ছবির ব্যাকগ্রাউন্ডের জন্য পছন্দের রঙ।

POST /run/recraft/v4.1/text-to-image?wait=20 মূল্য → ০.০৩৫$
# 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/recraft/v4.1/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Full-body fashion shot with the character framed in a close-up, cropped from mid-thigh or waist up so the figure dominates the composition, neutral pose, muted outfit, solid grey background (flat, no gradient). Minimal scribbles with one large graphic element (e.g. oversized abstract shape or drawn eye) placed behind and partially overlapping the figure. Bold oversized typography integrated tightly around the subject: '\''MAKE IT BREAK / MAKE IT WORK'\'' (large serif, slightly distorted, crossing the upper body), '\''no perfect version exists'\'' (small subtle line). Add stickers: minimal icons, checkmarks, soft scribbles, small tape details. Clean but expressive editorial chaos, focus on the character."
  }'

# 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-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

Recraft V4.1 Text to Image সম্পর্কে

Recraft V4.1 ডিজাইনের কাজের জন্য তৈরি: মার্কেটিং ভিজ্যুয়াল, ইলাস্ট্রেশন ও পরিষ্কার কম্পোজিশনের প্রোডাক্ট দৃশ্য। ব্র্যান্ড প্যালেট বজায় রাখতে পছন্দের RGB রঙের একটি তালিকা দিন, অথবা একই ধরনের সেটের জন্য ব্যাকগ্রাউন্ডের রঙ নির্দিষ্ট করুন। প্রতি অনুরোধে একটি ছবি, প্রিসেট বা কাস্টম আকারে।

প্যারামিটার

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
≤ ১০,০০০টি অক্ষর
image_sizeঐচ্ছিক
ধরনobject
ডিফল্টsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsঐচ্ছিক
ধরনobject[]
ডিফল্ট[]
পছন্দের রঙ থাকা অ্যারে।
colors[].rঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
লাল কম্পোনেন্টের মান।
colors[].gঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
সবুজ কম্পোনেন্টের মান।
colors[].bঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
নীল কম্পোনেন্টের মান।
background_colorঐচ্ছিক
ধরনobject
জেনারেট করা ছবির ব্যাকগ্রাউন্ডের জন্য পছন্দের রঙ।
background_color.rঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
লাল কম্পোনেন্টের মান।
background_color.gঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
সবুজ কম্পোনেন্টের মান।
background_color.bঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
নীল কম্পোনেন্টের মান।
আবশ্যক

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4.1/text-to-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": 35,
    "usd": "0.035",
    "charged": 35,
    "refunded": 0
  },
  "input": {
    "prompt": "Tilt-shift miniature view of a fishing village harbor at golden hour, colorful boats, toy-like scale",
    "image_size": "landscape_16_9"
  },
  "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
      }
    ]
  },
  "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-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
images
array of object {url, content_type, file_name, file_size}

আরও মডেল: টেক্সট থেকে ছবি

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/recraft/v4.1/text-to-image.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt