কনটেন্টে যান

MMAudio V2

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

মডেল id mmaudio-v2
# 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/mmaudio-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/dev-api/2026/10/21/req_qicb9wfr7rqfo46hqcxollq6/0-QQGxyL6x8ywkCEWdZ94UY_YyJVjs3R.mp4",
    "prompt": "Gentle waves lapping against a wooden boat, oars creaking, seagulls calling in the distance, light wind",
    "duration": 5
  }'

# 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 কী পান
Sony AI অডিও ১–৩০ s #sound-effects#foley#video-to-audio

সংক্ষিপ্ত টেক্সট বর্ণনা থেকে নীরব ভিডিওতে সিঙ্ক্রোনাইজড সাউন্ড ইফেক্ট ও অ্যাম্বিয়েন্স যোগ করে।

উদাহরণ

ইনপুট
আউটপুট · ~20 s

প্রম্পটGentle waves lapping against a wooden boat, oars creaking, seagulls calling in the distance, light wind

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

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

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

•আবশ্যক

তৈরি করার অডিও বর্ণনাকারী প্রম্পট।

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

অডিও জেনারেশনের উৎস হিসেবে ব্যবহৃত ভিডিও URL।

জেনারেট করা অডিওর দৈর্ঘ্য।

অ্যাডভান্সড negative_prompt · num_steps · cfg_strength · seed · mask_away_clip
ডিফল্ট

অডিও জেনারেশনের সময় কী বাদ দিতে হবে তা নির্দিষ্ট করা নেগেটিভ প্রম্পট।

ডিফল্ট 25

অডিও জেনারেশনে ব্যবহৃত ধাপের সংখ্যা।

ডিফল্ট 4.5

Classifier Free Guidance-এর তীব্রতা।

র‍্যান্ডম-নম্বর জেনারেটর ব্যবহৃত seed মান।

POST /run/mmaudio-v2?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/mmaudio-v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/dev-api/2026/10/21/req_qicb9wfr7rqfo46hqcxollq6/0-QQGxyL6x8ywkCEWdZ94UY_YyJVjs3R.mp4",
    "prompt": "Gentle waves lapping against a wooden boat, oars creaking, seagulls calling in the distance, light wind",
    "duration": 5
  }'

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

MMAudio V2 সম্পর্কে

MMAudio V2 ভিডিও দেখে তার সঙ্গে মানানসই অডিও জেনারেট করে: বিটের সঙ্গে পায়ের শব্দ, পানির ছিটা, ইঞ্জিন, ভিড় এবং ঘরের অ্যাম্বিয়েন্স; আপনার প্রম্পট ও ঐচ্ছিক নেগেটিভ প্রম্পটের নির্দেশনায়। 1 থেকে 30 সেকেন্ডের অডিও জেনারেট করে এবং নতুন সাউন্ডট্র্যাকসহ ভিডিও ফেরত দেয়।

প্যারামিটার

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

নামধরন ডিফল্টঅনুমোদিত বিবরণ
video_urlআবশ্যক video
ধরনurl · video
অডিও জেনারেশনের উৎস হিসেবে ব্যবহৃত ভিডিও URL।
promptআবশ্যক
ধরনstring
তৈরি করার অডিও বর্ণনাকারী প্রম্পট।
negative_promptঐচ্ছিক
ধরনstring
ডিফল্ট
অডিও জেনারেশনের সময় কী বাদ দিতে হবে তা নির্দিষ্ট করা নেগেটিভ প্রম্পট।
seedঐচ্ছিক
ধরনinteger | null
০ – ৬৫,৫৩৫
র‍্যান্ডম-নম্বর জেনারেটর ব্যবহৃত seed মান।
num_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট25
৪ – ৫০
অডিও জেনারেশনে ব্যবহৃত ধাপের সংখ্যা।
durationঐচ্ছিক
ধরনnumber
ডিফল্ট8
১ – ৩০
জেনারেট করা অডিওর দৈর্ঘ্য।
cfg_strengthঐচ্ছিক
ধরনnumber
ডিফল্ট4.5
০ – ২০
Classifier Free Guidance-এর তীব্রতা।
mask_away_clipঐচ্ছিক
ধরনboolean
ডিফল্টfalse
ক্লিপটি মাস্ক করে বাদ দেওয়া হবে কি না তা নিয়ন্ত্রণ করে।
আবশ্যক ক্যানোনিকাল নাম, এটিও গ্রহণযোগ্য

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

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mmaudio-v2",
  "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": 5,
    "usd": "0.005",
    "charged": 5,
    "refunded": 0
  },
  "input": {
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "Night forest ambience, soft paws running on grass, crickets, gentle magical chimes",
    "duration": 6
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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 হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
video
object {url, content_type, file_name, file_size}Synchronized lip movements-সম্বলিত আউটপুট ভিডিও।

আরও মডেল: অডিও

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