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

FFmpeg API Compose

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

मॉडल id ffmpeg-api/compose
# 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/ffmpeg-api/compose?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tracks": [
      {
        "id": "your-id",
        "type": "example",
        "keyframes": [
          {
            "timestamp": 1,
            "duration": 1,
            "url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
          }
        ]
      }
    ]
  }'

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

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

कई ट्रैक को एक वीडियो में मिलाता है, जिसमें ठीक एक दृश्य ट्रैक और किसी भी संख्या में ऑडियो ट्रैक होते हैं

Utility · डेटा (JSON)

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

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

अनुरोध बनाएँ

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

•आवश्यक

अंतिम मीडिया को असेंबल करने के लिए ट्रैक सूची, जिसमें ठीक एक वीडियो या इमेज ट्रैक और ऑडियो ट्रैक की असीमित संख्या होती है।

POST /run/ffmpeg-api/compose?wait=20 कोटेशन → $0.001
# 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/ffmpeg-api/compose?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tracks": [
      {
        "id": "your-id",
        "type": "example",
        "keyframes": [
          {
            "timestamp": 1,
            "duration": 1,
            "url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
          }
        ]
      }
    ]
  }'

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

FFmpeg API Compose के बारे में

`tracks` की सूची से अंतिम वीडियो बनाता है। सूची में ठीक एक दृश्य ट्रैक होना चाहिए, जो वीडियो या छवि हो सकता है, और इसमें किसी भी संख्या में ऑडियो ट्रैक शामिल किए जा सकते हैं। आउटपुट JSON होता है, जिसमें `video_url` और `thumbnail_url` होते हैं।

पैरामीटर

नामप्रकार डिफ़ॉल्टअनुमत विवरण
tracksआवश्यक
प्रकारobject[]
अंतिम मीडिया को असेंबल करने के लिए ट्रैक सूची, जिसमें ठीक एक वीडियो या इमेज ट्रैक और ऑडियो ट्रैक की असीमित संख्या होती है।
tracks[].idआवश्यक
प्रकारstring
ट्रैक की विशिष्ट पहचान करने वाला आइडेंटिफ़ायर।
tracks[].typeआवश्यक
प्रकारstring
ट्रैक श्रेणी: 'video', 'audio', या 'image'।
tracks[].keyframesआवश्यक
प्रकारobject[]
ट्रैक को बनाने वाले कीफ़्रेम, सूची के रूप में दिए गए।
tracks[].keyframes[].timestampआवश्यक
प्रकारnumber
कीफ़्रेम का प्रारंभ समय, मिलीसेकंड में व्यक्त।
tracks[].keyframes[].durationआवश्यक
प्रकारnumber
कीफ़्रेम की लंबाई, मिलीसेकंड में व्यक्त।
tracks[].keyframes[].urlआवश्यक
प्रकारstring
इस कीफ़्रेम की मीडिया फ़ाइल तक पहुँच प्रदान करने वाला URL।
आवश्यक

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ffmpeg-api/compose",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "tracks": [
      {
        "id": "your-id",
        "type": "example",
        "keyframes": [
          {
            "timestamp": 1,
            "duration": 1,
            "url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
          }
        ]
      }
    ]
  },
  "output": {
    "video_url": "string",
    "thumbnail_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)प्रोसेस किए गए वीडियो की ओर संकेत करने वाला URL।
thumbnail_url
stringवीडियो के थंबनेल की ओर संकेत करने वाला URL।

और मॉडल: वीडियो से वीडियो

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