ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Workflow Utilities Blend Video

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id workflow-utilities/blend-video
# 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/workflow-utilities/blend-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "top_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "bottom_video_url": "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"

ਹਰ ਰਨ ਲਈ $3.60 ਤੱਕ ਅਸਲ ਵਰਤੋਂ ਅਨੁਸਾਰ ਚਾਰਜ ਕੀਤਾ ਜਾਂਦਾ ਹੈ, ਬਾਕੀ ਦੀ ਰਕਮ ਵਾਪਸੀ ਹੁੰਦੀ ਹੈ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Utility · ਵੀਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਉੱਪਰੀ ਪਰਤ ਵਜੋਂ ਵਰਤੀ ਵੀਡੀਓ ਲਈ URL।

•ਲੋੜੀਂਦਾ
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਹੇਠਲੀ ਪਰਤ ਵਜੋਂ ਵਰਤੀ ਵੀਡੀਓ ਲਈ URL।

ਉੱਨਤ blend_mode · opacity · shortest
ਡਿਫ਼ਾਲਟ overlay

ਵੀਡੀਓ ਮਿਲਾਉਣ ਲਈ ਵਰਤੀ ਵਿਧੀ।

ਡਿਫ਼ਾਲਟ 1

ਉੱਪਰੀ ਪਰਤ ਦੀ ਪਾਰਦਰਸ਼ਤਾ, 0.0 ਤੋਂ 1.0 ਤੱਕ।

POST /run/workflow-utilities/blend-video?wait=20 ਕੋਟ → $3.60
# 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/workflow-utilities/blend-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "top_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "bottom_video_url": "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 ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Workflow Utilities Blend Video ਬਾਰੇ

ਓਵਰਲੇ, ਮਲਟੀਪਲਾਈ, ਡਿਫ਼ਰੈਂਸ ਜਾਂ ਸਕ੍ਰੀਨ-ਸ਼ੈਲੀ ਦੇ ਵਿਕਲਪਾਂ ਵਰਗੇ ਬਲੈਂਡ ਮੋਡ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਉੱਪਰੀ ਅਤੇ ਹੇਠਲੀ ਵੀਡੀਓ ਨੂੰ ਇੱਕ ਵਿੱਚ ਮਿਲਾਉਂਦਾ ਹੈ (ਕੁੱਲ 23 ਮੋਡ, ਪੂਰਵ-ਨਿਰਧਾਰਤ ਓਵਰਲੇ)। `opacity` ਉੱਪਰੀ ਪਰਤ ਦੀ ਤਾਕਤ 0 ਤੋਂ 1 ਤੱਕ ਸੈੱਟ ਕਰਦਾ ਹੈ। `shortest` ਚਾਲੂ ਹੋਣ ’ਤੇ ਆਉਟਪੁੱਟ ਛੋਟੀ ਇਨਪੁੱਟ ਦੇ ਖਤਮ ਹੋਣ ’ਤੇ ਮੁਕ ਜਾਂਦੀ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
top_video_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · video
ਉੱਪਰੀ ਪਰਤ ਵਜੋਂ ਵਰਤੀ ਵੀਡੀਓ ਲਈ URL।
bottom_video_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · video
ਹੇਠਲੀ ਪਰਤ ਵਜੋਂ ਵਰਤੀ ਵੀਡੀਓ ਲਈ URL।
blend_modeਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟoverlay
additionaverageburndarkendifferencedividedodgeexclusiongrainextractgrainmergehardlightlightenmultiplynegationnormaloverlay
+7 ਹੋਰphoenixpinlightreflectscreensoftlightsubtractvividlight
ਵੀਡੀਓ ਮਿਲਾਉਣ ਲਈ ਵਰਤੀ ਵਿਧੀ।
opacityਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ1
0 – 1
ਉੱਪਰੀ ਪਰਤ ਦੀ ਪਾਰਦਰਸ਼ਤਾ, 0.0 ਤੋਂ 1.0 ਤੱਕ।
shortestਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਸਭ ਤੋਂ ਛੋਟਾ ਇਨਪੁੱਟ ਖ਼ਤਮ ਹੁੰਦੇ ਹੀ ਆਉਟਪੁੱਟ ਰੋਕ ਦਿੰਦਾ ਹੈ।
ਲੋੜੀਂਦਾ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "workflow-utilities/blend-video",
  "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": 3600,
    "usd": "3.60",
    "charged": 3600,
    "refunded": 0
  },
  "input": {
    "top_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "bottom_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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
object {url, content_type, file_name, file_size}ਇਨਪੁੱਟ ਮਿਲਾ ਕੇ ਬਣਾਈ ਗਈ ਵੀਡੀਓ।

ਹੋਰ ਮਾਡਲ: ਵੀਡੀਓ ਤੋਂ ਵੀਡੀਓ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/workflow-utilities/blend-video.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt