কনটেন্টে যান

Recraft V3 · Image to Image

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

মডেল id recraft/v3/image-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/v3/image-to-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 ছবি সম্পাদনা #vector#typography#style

strength নিয়ন্ত্রণ, 85টি স্টাইল অপশন ও রঙের পছন্দসহ Recraft V3 image-to-image সম্পাদনা

Recraft · ছবি

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

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

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

•আবশ্যক 88 / 1000

কোন এলাকাগুলো পরিবর্তন করতে হবে তা নির্দিষ্ট করা টেক্সট।

•আবশ্যক image_url
একটি ফাইল ড্রপ করুন, অথবা

পরিবর্তনের জন্য ছবির URL; সরবরাহ করা ছবির প্রতিটি ডাইমেনশন 4096 পিক্সেলের কম হতে হবে। এর রেজোলিউশনও 16 MP-এর কম এবং ফাইলের আকার 5 MB-এর কম হতে হবে।

ডিফল্ট realistic_image

জেনারেট করা ছবিতে প্রয়োগ করা ভিজ্যুয়াল স্টাইল।

অ্যাডভান্সড negative_prompt · style_id · strength · enable_safety_checker · colors
0 / 1000

ছবিতে কোন উপাদান থাকা উচিত নয় তা নির্দিষ্ট করা টেক্সট।

কাস্টম স্টাইল রেফারেন্সের ঐচ্ছিক শনাক্তকারী।

ডিফল্ট 0.5

সোর্স থেকে পরিবর্তনের মাত্রা, 0 থেকে 1 পর্যন্ত। 1 হলে ফলাফলের সঙ্গে মূল ছবির সাদৃশ্য খুব কম, আর 0 হলে প্রায় অভিন্ন।

ডিফল্ট []

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

POST /run/recraft/v3/image-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/v3/image-to-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 V3 · Image to Image সম্পর্কে

`image_url`-এর ছবিটি সর্বোচ্চ 1000 অক্ষরের `prompt` অনুযায়ী পরিবর্তন করে। 0 থেকে 1 পর্যন্ত `strength` ফলাফলটি মূল ছবি থেকে কতটা বিচ্যুত হবে তা নিয়ন্ত্রণ করে। ইনপুট 5 MB-এর কম, 16 MP-এর কম এবং কোনো বাহু 4096 পিক্সেলের বেশি হওয়া যাবে না। একটি `style` বেছে নিন, `colors` অথবা একটি `style_id` দিন, এবং `negative_prompt` দিয়ে অনাকাঙ্ক্ষিত উপাদান বাদ দিন।

প্যারামিটার

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

নামধরন ডিফল্টঅনুমোদিত বিবরণ
promptআবশ্যক
ধরনstring
≤ ১,০০০টি অক্ষর
কোন এলাকাগুলো পরিবর্তন করতে হবে তা নির্দিষ্ট করা টেক্সট।
image_urlআবশ্যক image
ধরনurl · image
পরিবর্তনের জন্য ছবির URL; সরবরাহ করা ছবির প্রতিটি ডাইমেনশন 4096 পিক্সেলের কম হতে হবে। এর রেজোলিউশনও 16 MP-এর কম এবং ফাইলের আকার 5 MB-এর কম হতে হবে।
strengthঐচ্ছিক
ধরনnumber
ডিফল্ট0.5
০ – ১
সোর্স থেকে পরিবর্তনের মাত্রা, 0 থেকে 1 পর্যন্ত। 1 হলে ফলাফলের সঙ্গে মূল ছবির সাদৃশ্য খুব কম, আর 0 হলে প্রায় অভিন্ন।
styleঐচ্ছিক
ধরনenum
ডিফল্টrealistic_image
anyrealistic_imagedigital_illustrationvector_illustrationrealistic_image/b_and_wrealistic_image/hard_flashrealistic_image/hdrrealistic_image/natural_lightrealistic_image/studio_portraitrealistic_image/enterpriserealistic_image/motion_blurrealistic_image/evening_lightrealistic_image/faded_nostalgiarealistic_image/forest_liferealistic_image/mystic_naturalismrealistic_image/natural_tones
+69টি আরওrealistic_image/organic_calmrealistic_image/real_life_glowrealistic_image/retro_realismrealistic_image/retro_snapshotrealistic_image/urban_dramarealistic_image/village_realismrealistic_image/warm_folkdigital_illustration/pixel_artdigital_illustration/hand_drawndigital_illustration/graindigital_illustration/infantile_sketchdigital_illustration/2d_art_posterdigital_illustration/handmade_3ddigital_illustration/hand_drawn_outlinedigital_illustration/engraving_colordigital_illustration/2d_art_poster_2digital_illustration/antiquariandigital_illustration/bold_fantasydigital_illustration/child_bookdigital_illustration/child_booksdigital_illustration/coverdigital_illustration/crosshatchdigital_illustration/digital_engravingdigital_illustration/expressionismdigital_illustration/freehand_detailsdigital_illustration/grain_20digital_illustration/graphic_intensitydigital_illustration/hard_comicsdigital_illustration/long_shadowdigital_illustration/modern_folkdigital_illustration/multicolordigital_illustration/neon_calmdigital_illustration/noirdigital_illustration/nostalgic_pasteldigital_illustration/outline_detailsdigital_illustration/pastel_gradientdigital_illustration/pastel_sketchdigital_illustration/pop_artdigital_illustration/pop_renaissancedigital_illustration/street_artdigital_illustration/tablet_sketchdigital_illustration/urban_glowdigital_illustration/urban_sketchingdigital_illustration/vanilla_dreamsdigital_illustration/young_adult_bookdigital_illustration/young_adult_book_2vector_illustration/bold_strokevector_illustration/chemistryvector_illustration/colored_stencilvector_illustration/contour_pop_artvector_illustration/cosmicsvector_illustration/cutoutvector_illustration/depressivevector_illustration/editorialvector_illustration/emotional_flatvector_illustration/infographicalvector_illustration/marker_outlinevector_illustration/mosaicvector_illustration/naivectorvector_illustration/roundish_flatvector_illustration/segmented_colorsvector_illustration/sharp_contrastvector_illustration/thinvector_illustration/vector_photovector_illustration/vivid_shapesvector_illustration/engravingvector_illustration/line_artvector_illustration/line_circuitvector_illustration/linocut
জেনারেট করা ছবিতে প্রয়োগ করা ভিজ্যুয়াল স্টাইল।
colorsঐচ্ছিক
ধরনobject[]
ডিফল্ট[]
পছন্দের রঙ থাকা অ্যারে।
colors[].rঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
লাল কম্পোনেন্টের মান।
colors[].gঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
সবুজ কম্পোনেন্টের মান।
colors[].bঐচ্ছিক
ধরনinteger
ডিফল্ট0
০ – ২৫৫
নীল কম্পোনেন্টের মান।
style_idঐচ্ছিক
ধরনstring | null
কাস্টম স্টাইল রেফারেন্সের ঐচ্ছিক শনাক্তকারী।
negative_promptঐচ্ছিক
ধরনstring | null
≤ ১,০০০টি অক্ষর
ছবিতে কোন উপাদান থাকা উচিত নয় তা নির্দিষ্ট করা টেক্সট।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
কলকারী অনুমোদিত হলে false সেট করে স্ক্রিনিং শিথিল করা যায়।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

ফাইল প্যারামিটার হিসেবে একটি পাবলিক https:// URL, 10 MB পর্যন্ত একটি data: URI, অথবা আপলোডের file_url গ্রহণ করা হয়। ফাইল

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v3/image-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": 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",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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/v3/image-to-image.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt