تخطّي إلى المحتوى

MMAudio V2 Text to Audio

التكامل

معرّف النموذج mmaudio-v2/text-to-audio
# 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/mmaudio-v2/text-to-audio?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

هذا الطلب: ⁨‏0.008 $⁩ 8 أرصدة API · ≈ ⁨‏0.86 ₽⁩ تشغيله في هذه الصفحة

الحصول على مفتاح API
Sony AI الصوت 1–30 ث #audio#fast

توليد أصوات من مطالبة نصية مع إمكانية ضبط الخطوات والتوجيه والمدة

Sony AI · صوت

ستظهر نتيجتك الأولى هنا

أنشئ طلبًا أدناه وشغّله باستخدام مفتاح API الخاص بك. تُنسخ المخرجات إلى تخزيننا، وتُحفظ إلى الأبد أو لمدة 7 أيام مجانًا.

إنشاء طلب

تُنشأ عناصر التحكم من مخطط النموذج. يتحدّث الرمز والسعر عند تغييرها.

•مطلوب

موجّه يصف الصوت المطلوب إنشاؤه.

الافتراضي 8

طول الصوت المُولّد.

متقدم negative_prompt · num_steps · cfg_strength · seed · mask_away_clip
الافتراضي

موجّه سلبي يحدد ما يجب استبعاده أثناء توليد الصوت.

الافتراضي 25

عدد الخطوات المستخدم لتوليد الصوت.

الافتراضي 4.5

شدة Classifier Free Guidance.

قيمة البذرة التي يستخدمها مولّد الأرقام العشوائية.

POST /run/mmaudio-v2/text-to-audio?wait=20 عرض السعر → ⁨‏0.008 $⁩
# 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/mmaudio-v2/text-to-audio?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

تشغيل هذا الطلب

يبقى مفتاحك في هذا المتصفح: لا يُرسل إلا إلى Doitong API ويُحفظ في localStorage فقط إذا فعّلت خيار التذكّر. الحصول على مفتاح API

حول MMAudio V2 Text to Audio

ينشئ صوتًا من `prompt` نصي، مع `negative_prompt` لتجنب أصوات معينة. تتراوح `duration` من 1 إلى 30 ثانية (الافتراضي 8)، و`num_steps` من 4 إلى 50 (الافتراضي 25)، و`cfg_strength` من 0 إلى 20 (الافتراضي 4.5). يجعل `seed` بين 0 و65535 النتائج قابلة للتكرار.

المعاملات

الاسمالنوع الافتراضيمسموح الوصف
promptمطلوب
النوعstring
موجّه يصف الصوت المطلوب إنشاؤه.
negative_promptاختياري
النوعstring
الافتراضي
موجّه سلبي يحدد ما يجب استبعاده أثناء توليد الصوت.
seedاختياري
النوعinteger | null
0 – 65,535
قيمة البذرة التي يستخدمها مولّد الأرقام العشوائية.
num_stepsاختياري
النوعinteger
الافتراضي25
4 – 50
عدد الخطوات المستخدم لتوليد الصوت.
durationاختياري
النوعnumber
الافتراضي8
1 – 30
طول الصوت المُولّد.
cfg_strengthاختياري
النوعnumber
الافتراضي4.5
0 – 20
شدة Classifier Free Guidance.
mask_away_clipاختياري
النوعboolean
الافتراضيfalse
يتحكم في ما إذا كان المقطع سيُخفى بالقناع.
مطلوب

المخرجات

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mmaudio-v2/text-to-audio",
  "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": 8,
    "usd": "0.008",
    "charged": 8,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "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 هو نسخة على تخزيننا: تُحفظ إلى الأبد (مع الدفع لكل غيغابايت-شهر) أو لمدة 7 أيام مجانًا، وفق إعداد حسابك أو ?storage=.
البنية نفسها في كل نموذجtype وurl وcontent_type وwidth وheight وduration للصور والفيديو والصوت على حد سواء. output هو كائن النتائج الخاص بالنموذج.
حقول المخرجات
audio
object {url, content_type, file_name, file_size}الصوت الذي أنتجه النموذج.

مزيد من النماذج: الصوت

لوكلاء الذكاء الاصطناعي: تتوفر هذه الصفحة بصيغة Markdown على https://doitong.com/ar/developers/models/mmaudio-v2/text-to-audio.md. جميع النماذج والأدلة: https://doitong.com/developers/llms.txt