Peke ki ngā ihirangi

Workflow Utilities Scale Video

Whakauru

id tauira workflow-utilities/scale-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/workflow-utilities/scale-video?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tae atu ki te $ 3.60 mō ia whakahaerenga ka utua mō te whakamahinga tūturu, ka whakahokia te toenga Whakahaerehia ki tēnei whārangi

Tikina he kī API
Utility · Ataata

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana video_url
Whakataka he kōnae,

Tukua te ataata hei whakatauine, hei whakarahi anō rānei mā te URL, me whakamahi ngā rahinga taurua mō te teitei me te whānui kia tutuki ai ngā whakaritenga pūwetewaehere ataata.

Arā atu mode · pad_color · codec · preset · width · height · crf
mode taunoa stretch

Tikanga whakarahi anō: mā `stretch` ka whakahau i ngā rahinga tonoa, ā, tērā pea ka whakarerekē i te ōwehenga āhuatanga. Mā `pad` me `crop` ka pupuri i te ōwehenga āhuatanga: mā `pad` ka uru te ataata ki ngā rahinga tonoa, ā, ka whakakī i te wāhi kore ki te tae kua kōwhiria. Mā `crop` ka whakakī i ngā rahinga tonoa, kātahi ka tapahia te pokapū kia ōrite te rahinga tika.

pad_color taunoa black

Tae mō te whakakī i te aratau `pad`; kāore ngā aratau kē e whakamahi.

codec taunoa libx264

Kōwhiria te pūwetewaehere: whakamahia libx265 (H.265/HEVC) mō te kōpeketanga pai ake, ko libx264 (H.264) mō te hototahi whānui.

preset taunoa fast

Tautuhinga tatūkē e whakahaere ana i te tere pūwetewaehere. Mā te kōwhiri i tētahi tatūkē pōturi ake ka pai ake te kōpeketanga, engari ka roa ake te pūwetewaehere.

Te whānui putanga i roto i ngā pika, ka taea te whakamahi takitahi, me te teitei rānei; me whakarite kia kotahi te rahinga neke atu. Mēnā ko te whānui anake, ka tatau aunoa te teitei me te kore whakarerekē i te ōwehenga āhuatanga.

Te teitei putanga i roto i ngā pika, ka taea te whakamahi takitahi, me te whānui rānei; me whakarite kia kotahi te rahinga neke atu. Mēnā ko te teitei anake, ka tatau aunoa te whānui me te kore whakarerekē i te ōwehenga āhuatanga.

taunoa 18

Tauwehe Auau Pūmau e whakahaere ana i te kounga puta noa i te awhe 0–51; ko te 18 te āhua kore-ngaro mō te nuinga o ngā ihirangi. Mā te whakaheke i te tautuhinga ka pai ake te kounga, engari ka nui ake te rahi o te kōnae.

POST /run/workflow-utilities/scale-video?wait=20 utu → $ 3.60
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/workflow-utilities/scale-video?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Workflow Utilities Scale Video

Ka whakarahi anō i tētahi ataata ki te `width` whāinga (kei te 7680 te mōrahi) me/rānei `height` (kei te 4320 te mōrahi); ki te kotahi anake ka tukuna, ka whai te mea kē i te ōwehenga āhuatanga. Ka taea e `mode` te whakaroa, te whakakī (me tētahi tae kua kōwhiria), te tapahi rānei. Whakaekea mā libx264, libx265 rānei, me tētahi tatūkē tere mai i te ultrafast ki te slow, ā, ko `crf` mai i te 0 ki te 51. Ka whakahoki i ngā rahi taketake me ngā rahi hou.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
video_urle hiahiatia ana video
Momourl · video
Tukua te ataata hei whakatauine, hei whakarahi anō rānei mā te URL, me whakamahi ngā rahinga taurua mō te teitei me te whānui kia tutuki ai ngā whakaritenga pūwetewaehere ataata.
widthkōwhiringa
Momointeger | null
2 – 7,680
Te whānui putanga i roto i ngā pika, ka taea te whakamahi takitahi, me te teitei rānei; me whakarite kia kotahi te rahinga neke atu. Mēnā ko te whānui anake, ka tatau aunoa te teitei me te kore whakarerekē i te ōwehenga āhuatanga.
heightkōwhiringa
Momointeger | null
2 – 4,320
Te teitei putanga i roto i ngā pika, ka taea te whakamahi takitahi, me te whānui rānei; me whakarite kia kotahi te rahinga neke atu. Mēnā ko te teitei anake, ka tatau aunoa te whānui me te kore whakarerekē i te ōwehenga āhuatanga.
modekōwhiringa
Momoenum
Taunoastretch
stretchpadcrop
Tikanga whakarahi anō: mā `stretch` ka whakahau i ngā rahinga tonoa, ā, tērā pea ka whakarerekē i te ōwehenga āhuatanga. Mā `pad` me `crop` ka pupuri i te ōwehenga āhuatanga: mā `pad` ka uru te ataata ki ngā rahinga tonoa, ā, ka whakakī i te wāhi kore ki te tae kua kōwhiria. Mā `crop` ka whakakī i ngā rahinga tonoa, kātahi ka tapahia te pokapū kia ōrite te rahinga tika.
pad_colorkōwhiringa
Momoenum
Taunoablack
blackwhiteredgreenbluegray
Tae mō te whakakī i te aratau `pad`; kāore ngā aratau kē e whakamahi.
codeckōwhiringa
Momoenum
Taunoalibx264
libx264libx265
Kōwhiria te pūwetewaehere: whakamahia libx265 (H.265/HEVC) mō te kōpeketanga pai ake, ko libx264 (H.264) mō te hototahi whānui.
presetkōwhiringa
Momoenum
Taunoafast
ultrafastfastmediumslow
Tautuhinga tatūkē e whakahaere ana i te tere pūwetewaehere. Mā te kōwhiri i tētahi tatūkē pōturi ake ka pai ake te kōpeketanga, engari ka roa ake te pūwetewaehere.
crfkōwhiringa
Momointeger
Taunoa18
0 – 51
Tauwehe Auau Pūmau e whakahaere ana i te kounga puta noa i te awhe 0–51; ko te 18 te āhua kore-ngaro mō te nuinga o ngā ihirangi. Mā te whakaheke i te tautuhinga ka pai ake te kounga, engari ka nui ake te rahi o te kōnae.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "workflow-utilities/scale-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": {
    "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
    },
    "original_width": 1929,
    "original_height": 1082,
    "scaled_width": 1920,
    "scaled_height": 1080
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
video
object {url, content_type, file_name, file_size}Ataata i muri i te whakatauine, i te whakarahi anō rānei.
original_width
integerTe whānui o te ataata taketake, ka inehia ki ngā pika.
original_height
integerTe teitei o te ataata taketake, ka inehia ki ngā pika.
scaled_width
integerTe whānui o te ataata putanga, ka inehia ki ngā pika.
scaled_height
integerTe teitei o te ataata putanga, ka inehia ki ngā pika.

Ētahi atu tauira: Ataata ki te Ataata

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/workflow-utilities/scale-video.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt