உள்ளடக்கத்திற்குச் செல்க

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-க்கு மட்டும் அனுப்பப்படும்; Remember-ஐத் தேர்ந்தெடுத்தால் மட்டுமே (localStorage)-ல் சேமிக்கப்படும். API விசையைப் பெறுங்கள்

FFmpeg API Compose பற்றி

`tracks` பட்டியலிலிருந்து இறுதி வீடியோவை உருவாக்குகிறது. பட்டியலில் சரியாக ஒரு காட்சி டிராக் இருக்க வேண்டும்; அது வீடியோவாகவோ படமாகவோ இருக்கலாம், மேலும் எத்தனை ஆடியோ டிராக்குகளையும் சேர்க்கலாம். வெளியீடு `video_url` மற்றும் `thumbnail_url` கொண்ட JSON ஆகும்.

அளவுருக்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
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-மாதத்திற்கு கட்டணம்) அல்லது உங்கள் கணக்கு அமைப்பு அல்லது ?storage= மூலம் இலவசமாக 7 நாட்கள் வைக்கப்படும்.
ஒவ்வொரு மாடலிலும் ஒரே வடிவம்படங்கள், வீடியோ மற்றும் ஆடியோ ஆகிய அனைத்திற்குமான type, url, content_type, width, height மற்றும் duration. output என்பது மாதிரியின் சொந்த முடிவு பொருளாகும்.
வெளியீட்டின் புலங்கள்
video_url
string (video URL)செயலாக்கப்பட்ட வீடியோவைக் குறிக்கும் URL.
thumbnail_url
stringவீடியோவுக்கான சிறுபடத்தைக் குறிக்கும் URL.

மேலும் மாதிரிகள்: வீடியோவிலிருந்து வீடியோவிற்கு

AI ஏஜெண்டுகளுக்கு: இந்தப் பக்கம் Markdown வடிவில் இங்கே உள்ளது https://doitong.com/ta/developers/models/ffmpeg-api/compose.md. அனைத்து மாடல்களும் வழிகாட்டிகளும்: https://doitong.com/developers/llms.txt