שפּרינגען צו אינהאַלט

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) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Workflow Utilities Blend Video

פֿאַראייניקט אַן אויבערשטן און אַ אונטערשטן ווידעא אין איינעם מיט אַ מיש־מאָדע ווי overlay, multiply, difference אָדער screen־נוסח (23 מאָדעס אין גאַנצן, דער נאָרמאַלער איז overlay). `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, אַ data: URI ביז 10 MB, אָדער דעם 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/yi/developers/models/workflow-utilities/blend-video.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt