सामग्री पर जाएँ

Sam Audio · Separate

इंटीग्रेट करें

मॉडल id sam-audio/separate
# 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/sam-audio/separate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

उदाहरण जैसी फ़ाइलें: $0.05 50 API क्रेडिट चलाने से पहले आपकी फ़ाइलों को मापा जाता है इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Meta ऑडियो 10–60 s #audio-to-audio#sam-audio

टेक्स्ट विवरण का उपयोग करके ऑडियो फ़ाइल से एक ध्वनि को अलग करता है और लक्ष्य तथा शेष ट्रैक लौटाता है

Meta · डेटा (JSON)

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

अलग की जाने वाली लक्षित ध्वनि का टेक्स्ट विवरण।

•आवश्यक audio_url
फ़ाइल ड्रॉप करें, या

प्रोसेसिंग के लिए ऑडियो फ़ाइल का URL; समर्थित फ़ॉर्मैट WAV, MP3 और FLAC हैं।

डिफ़ॉल्ट 1

रैंकिंग के लिए बनाए जाने वाले विकल्पों की संख्या।

उन्नत acceleration · output_format · max_chunk_duration · chunk_overlap · predict_spans
acceleration डिफ़ॉल्ट balanced

प्रोसेसिंग पर लागू त्वरण स्तर।

output_format डिफ़ॉल्ट wav

निर्मित ऑडियो का फ़ॉर्मैट।

डिफ़ॉल्ट 60

हर पास में ऑडियो की सीमा, सेकंड में; इससे अधिक होने पर प्रोसेसिंग ओवरलैप करने वाले खंडों में होती है, जिन्हें आपस में मिलाया जाता है।

डिफ़ॉल्ट 5

क्रॉसफ़ेड ब्लेंडिंग के लिए इस्तेमाल होने वाले खंडों के बीच ओवरलैप की अवधि, सेकंड में।

POST /run/sam-audio/separate?wait=20 कोटेशन → $0.05
# 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/sam-audio/separate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Sam Audio · Separate के बारे में

एक `audio_url` (WAV, MP3 या FLAC) दें और निकालने वाली ध्वनि का नाम `prompt` में लिखें। आउटपुट में अलग की गई ध्वनि वाला `target` ट्रैक और बाकी सभी ध्वनियों वाला `residual` ट्रैक होता है। विकल्पों में `predict_spans`, अधिकतम 7 `reranking_candidates`, `acceleration` स्तर, लंबे ऑडियो को हिस्सों में बाँटना (प्रति पास 10 से 60 सेकंड) और wav या mp3 आउटपुट शामिल हैं।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
audio_urlआवश्यक audio
प्रकारurl · audio
प्रोसेसिंग के लिए ऑडियो फ़ाइल का URL; समर्थित फ़ॉर्मैट WAV, MP3 और FLAC हैं।
promptआवश्यक
प्रकारstring
अलग की जाने वाली लक्षित ध्वनि का टेक्स्ट विवरण।
predict_spansवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
लक्षित ध्वनि वाले समय अंतरालों का स्वचालित अनुमान।
reranking_candidatesवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट1
1 – 7
रैंकिंग के लिए बनाए जाने वाले विकल्पों की संख्या।
accelerationवैकल्पिक
प्रकारenum
डिफ़ॉल्टbalanced
fastbalancedquality
प्रोसेसिंग पर लागू त्वरण स्तर।
max_chunk_durationवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट60
10 – 60
हर पास में ऑडियो की सीमा, सेकंड में; इससे अधिक होने पर प्रोसेसिंग ओवरलैप करने वाले खंडों में होती है, जिन्हें आपस में मिलाया जाता है।
chunk_overlapवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट5
0 – 30
क्रॉसफ़ेड ब्लेंडिंग के लिए इस्तेमाल होने वाले खंडों के बीच ओवरलैप की अवधि, सेकंड में।
output_formatवैकल्पिक
प्रकारenum
डिफ़ॉल्टwav
wavmp3
निर्मित ऑडियो का फ़ॉर्मैट।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sam-audio/separate",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "target": {
      "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
    },
    "residual": {
      "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
    },
    "duration": 5,
    "sample_rate": 48000
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
target
object {url, content_type, file_name, file_size}अलग करके निकाली गई लक्षित ध्वनि।
residual
object {url, content_type, file_name, file_size}लक्षित ध्वनि के अलावा बचा हुआ ऑडियो।
duration
numberआउटपुट ऑडियो की अवधि, सेकंड में।
sample_rate
integerआउटपुट ऑडियो की Hz में सैंपलिंग फ़्रीक्वेंसी।

और मॉडल: ऑडियो

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/sam-audio/separate.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt