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

Auto-Captioner

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

मॉडल id auto-caption
# 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/auto-caption?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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.10 100 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें

समायोज्य रंग, फ़ॉन्ट, आकार और स्थिति के साथ वीडियो में वाणी-आधारित कैप्शन जोड़ता है

Utility · डेटा (JSON)

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

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

अनुरोध बनाएँ

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

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

400 MB से छोटी ऑडियो-युक्त .mp4 फ़ाइल का वीडियो URL।

उन्नत text_case · txt_color · txt_font · font_size · stroke_width · refresh_interval · left_align · top_align
text_case डिफ़ॉल्ट default

सबटाइटल का casing speech recognition द्वारा बनाए गए रूप में रखने के लिए 'default' चुनें। इसे बदलने के लिए uppercase टेक्स्ट हेतु 'upper' या lowercase टेक्स्ट हेतु 'lower' चुनें।

डिफ़ॉल्ट white

हेक्साडेसिमल नोटेशन, RGB tuple या रंग के नाम का उपयोग करके टेक्स्ट का रंग सेट करें।

डिफ़ॉल्ट Standard

URL से जुड़े .ttf फ़ाइल या अंतर्निहित फ़ॉन्ट: 'Arial', 'Standard', 'Garamond', 'Times New Roman' या 'Georgia' का उपयोग करके कैप्शन का टाइपफेस सेट करें।

डिफ़ॉल्ट 24

बनाए गए कैप्शन का टेक्स्ट आकार।

डिफ़ॉल्ट 1

टेक्स्ट स्ट्रोक की मोटाई, पिक्सेल में मापी गई।

डिफ़ॉल्ट 1.5

कैप्शन के प्रदर्शन अंतराल के माध्यम से एक साथ दिखाई देने वाले कैप्शन टेक्स्ट की मात्रा नियंत्रित करें, जिसे सेकंड में मापा जाता है: कैप्शन को अधिक समय तक दृश्यमान रखने पर एक साथ अधिक टेक्स्ट दिखाई देता है।

डिफ़ॉल्ट center

0.0 और 1.0 के बीच float का उपयोग करके टेक्स्ट को क्षैतिज रूप से संरेखित करें, या नामित स्थिति 'left', 'center' या 'right' चुनें।

डिफ़ॉल्ट center

0.0 और 1.0 के बीच float का उपयोग करके टेक्स्ट को लंबवत रूप से संरेखित करें, या नामित स्थिति 'top', 'center' या 'bottom' चुनें।

POST /run/auto-caption?wait=20 कोटेशन → $0.10
# 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/auto-caption?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 कुंजी प्राप्त करें

Auto-Captioner के बारे में

.mp4 `video_url` (400MB से कम) से ऑडियो का ट्रांसक्रिप्शन करता है और कैप्शन को वीडियो में स्थायी रूप से जोड़ता है। `txt_color`, `txt_font`, `font_size`, `stroke_width` और `text_case` से शैली सेट करें। स्थिति `left_align` और `top_align` का उपयोग करती है। 0.5 से 3 सेकंड का `refresh_interval` तय करता है कि कैप्शन स्क्रीन पर कितनी देर रहें।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
video_urlआवश्यक video
प्रकारurl · video
400 MB से छोटी ऑडियो-युक्त .mp4 फ़ाइल का वीडियो URL।
txt_colorवैकल्पिक
प्रकारstring
डिफ़ॉल्टwhite
हेक्साडेसिमल नोटेशन, RGB tuple या रंग के नाम का उपयोग करके टेक्स्ट का रंग सेट करें।
txt_fontवैकल्पिक
प्रकारstring
डिफ़ॉल्टStandard
URL से जुड़े .ttf फ़ाइल या अंतर्निहित फ़ॉन्ट: 'Arial', 'Standard', 'Garamond', 'Times New Roman' या 'Georgia' का उपयोग करके कैप्शन का टाइपफेस सेट करें।
font_sizeवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट24
बनाए गए कैप्शन का टेक्स्ट आकार।
stroke_widthवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट1
टेक्स्ट स्ट्रोक की मोटाई, पिक्सेल में मापी गई।
left_alignवैकल्पिक
प्रकारstring | number
डिफ़ॉल्टcenter
0.0 और 1.0 के बीच float का उपयोग करके टेक्स्ट को क्षैतिज रूप से संरेखित करें, या नामित स्थिति 'left', 'center' या 'right' चुनें।
top_alignवैकल्पिक
प्रकारstring | number
डिफ़ॉल्टcenter
0.0 और 1.0 के बीच float का उपयोग करके टेक्स्ट को लंबवत रूप से संरेखित करें, या नामित स्थिति 'top', 'center' या 'bottom' चुनें।
refresh_intervalवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1.5
0.5 – 3
कैप्शन के प्रदर्शन अंतराल के माध्यम से एक साथ दिखाई देने वाले कैप्शन टेक्स्ट की मात्रा नियंत्रित करें, जिसे सेकंड में मापा जाता है: कैप्शन को अधिक समय तक दृश्यमान रखने पर एक साथ अधिक टेक्स्ट दिखाई देता है।
text_caseवैकल्पिक
प्रकारenum
डिफ़ॉल्टdefault
defaultupperlower
सबटाइटल का casing speech recognition द्वारा बनाए गए रूप में रखने के लिए 'default' चुनें। इसे बदलने के लिए uppercase टेक्स्ट हेतु 'upper' या lowercase टेक्स्ट हेतु 'lower' चुनें।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

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

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "auto-caption",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video_url": "string"
  },
  "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 मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
video_url
string (video URL)कैप्शन वाले .mp4 वीडियो की ओर संकेत करने वाला URL।

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