কনটেন্টে যান

Embed Product

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

মডেল id bria/embed-product
# 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/bria/embed-product?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_source": "example"
  }'

# 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 কী পান
Bria AI · ছবি

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

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

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

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

•আবশ্যক

ছবির URL।

অ্যাডভান্সড seed · products
ডিফল্ট 5555

পুনরুৎপাদনযোগ্য ফলাফলের জন্য এলোমেলোতা নিয়ন্ত্রণকারী seed।

ছবিতে সন্নিবেশ করার পণ্যগুলোর তালিকা।

POST /run/bria/embed-product?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/bria/embed-product?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_source": "example"
  }'

# 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 কী পান

Embed Product সম্পর্কে

`image_source`-এর মাধ্যমে একটি দৃশ্যের ছবি এবং ১ থেকে ১০টি এন্ট্রির `products` তালিকা নিয়ে সেগুলো ছবিতে যুক্ত করে। প্রতিটি স্থাপিত পণ্যের জন্য পার্সপেক্টিভ ও আলো সমন্বয় করা হয়। একটি `seed` (ডিফল্ট 5555) পুনরুৎপাদনযোগ্য আউটপুট তৈরি করতে দেয়। এটি বিজ্ঞাপন ও ই-কমার্স কম্পোজিটিংয়ের জন্য উপযোগী এবং একটি ছবি ও সিড ফেরত দেয়।

প্যারামিটার

নামধরন ডিফল্টঅনুমোদিত বিবরণ
image_sourceআবশ্যক
ধরনstring
ছবির URL।
productsঐচ্ছিক
ধরনobject[]
≤ ১০টি আইটেম
ছবিতে সন্নিবেশ করার পণ্যগুলোর তালিকা।
products[].image_sourceআবশ্যক
ধরনstring
ছবির URL।
products[].coordinatesআবশ্যক
ধরনobject
products[].coordinates.xআবশ্যক
ধরনnumber
ছবির X অক্ষ বরাবর পণ্যের অবস্থান।
products[].coordinates.yআবশ্যক
ধরনnumber
ছবির Y অক্ষ বরাবর পণ্যের অবস্থান।
products[].coordinates.widthআবশ্যক
ধরনnumber
ছবির মধ্যে পণ্যের প্রস্থ।
products[].coordinates.heightআবশ্যক
ধরনnumber
ছবির মধ্যে পণ্যের উচ্চতা।
seedঐচ্ছিক
ধরনinteger
ডিফল্ট5555
পুনরুৎপাদনযোগ্য ফলাফলের জন্য এলোমেলোতা নিয়ন্ত্রণকারী seed।
আবশ্যক

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/embed-product",
  "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": {
    "image_source": "example"
  },
  "output": {
    "image": {
      "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
    },
    "seed": 42
  },
  "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 হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
image
object {url, content_type, file_name, file_size, width, height}সন্নিবেশ করা পণ্যসহ আউটপুট ছবি।
seed
integerজেনারেশনের সময় প্রয়োগ করা সিড।

আরও মডেল: ছবি সম্পাদনা

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