Peke ki ngā ihirangi

Workflow Utilities Auto Subtitle

Whakauru

id tauira workflow-utilities/auto-subtitle
# 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/auto-subtitle?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Ngā kōnae pēnei i te tauira: $ 0.005 5 whiwhinga API ka inea ō kōnae i mua i te whakahaere 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,

URL ataata mō te tāpiri hauraro aunoa.

Arā atu font_weight · position · language · font_name · font_color · highlight_color · stroke_color · background_color · font_size · stroke_width · background_opacity · y_offset · words_per_subtitle · enable_animation
font_weight taunoa bold

Taumaha tuhinga; ko bold, ko black rānei te āhua TikTok noa.

position taunoa bottom

Te whakatakotoranga o ngā hauraro i te tuaka poutū.

taunoa en

Kaitohu reo tuhi ā-waha, pērā i 'en', 'es', 'fr', 'de', 'it', 'pt', 'nl', 'ja', 'zh', 'ko'. Ka whakaaetia hoki he kaitohu ISO 3-pūāhua pērā i 'eng', 'spa', 'fra'.

taunoa Montserrat

Ingoa momotuhi i kōwhiria mai i fonts.google.com; ka whakaaetia ngā Momotuhi Google katoa, tae atu ki 'Montserrat', 'Poppins', 'BBH Sans Hegarty'.

taunoa white

Tae mō ngā kupu hauraro kāore i te hohe.

taunoa purple

Tae miramira āhua karaoke mō te kupu e kōrerohia ana.

taunoa black

Tae mō te taitapa, mō te rārangi rānei o te tuhinga.

taunoa none

Tae o te papamuri kei muri i te tuhinga; mā 'none' me 'transparent' ka mono te papamuri.

taunoa 100

Rahi momotuhi hauraro; ka whakamahi te āhua TikTok i te tuhinga nui ake.

taunoa 3

Te whānui o te taitapa, o te rārangi rānei o te tuhinga, ka inehia ki ngā pika; mā te 0 ka mono.

taunoa 0

Kōpā o te papamuri; ko te 0.0 he tino mārama, ko te 1.0 he tino kapi.

taunoa 75

Nekehanga poutū i roto i ngā pika; mā ngā uara tōrunga ka neke whakararo, mā ngā uara tōraro ka neke whakarunga.

taunoa 3

Te tepe tatau kupu hauraro; mā te 1 ka whakaatu kupu kotahi, mā te 2–3 he kīanga poto, mā te 8–12 he rerenga katoa mō ia wāhanga.

POST /run/workflow-utilities/auto-subtitle?wait=20 utu → $ 0.005
# 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/auto-subtitle?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.com/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 Auto Subtitle

Ka tuhi ā-kupu i te kōrero o tētahi ataata, ka tahu taitararoto me te miramira i te kupu e kōrerotia ana. Kei roto i ngā kōwhiringa āhua ko ngā ingoa Google Font, te rahi 20-150, te taumaha, ngā tae kuputuhi me te miramira, te tāhei, te tae papamuri me te puataata, me te tūnga runga, pokapū, raro rānei me te neke poutū. Ko `words_per_subtitle` mai i te 1 ki te 12, ā, ka taea te whakakā, te whakaweto rānei i tētahi whakakorikori peke. Ka whakahoki hoki i te tuhinga me ngā wā o ia kupu.

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
URL ataata mō te tāpiri hauraro aunoa.
languagekōwhiringa
Momostring
Taunoaen
Kaitohu reo tuhi ā-waha, pērā i 'en', 'es', 'fr', 'de', 'it', 'pt', 'nl', 'ja', 'zh', 'ko'. Ka whakaaetia hoki he kaitohu ISO 3-pūāhua pērā i 'eng', 'spa', 'fra'.
font_namekōwhiringa
Momostring
TaunoaMontserrat
Ingoa momotuhi i kōwhiria mai i fonts.google.com; ka whakaaetia ngā Momotuhi Google katoa, tae atu ki 'Montserrat', 'Poppins', 'BBH Sans Hegarty'.
font_sizekōwhiringa
Momointeger
Taunoa100
20 – 150
Rahi momotuhi hauraro; ka whakamahi te āhua TikTok i te tuhinga nui ake.
font_weightkōwhiringa
Momoenum
Taunoabold
normalboldblack
Taumaha tuhinga; ko bold, ko black rānei te āhua TikTok noa.
font_colorkōwhiringa
Momoenum
Taunoawhite
whiteblackredgreenblueyelloworangepurplepinkbrowngraycyanmagenta
Tae mō ngā kupu hauraro kāore i te hohe.
highlight_colorkōwhiringa
Momoenum
Taunoapurple
whiteblackredgreenblueyelloworangepurplepinkbrowngraycyanmagenta
Tae miramira āhua karaoke mō te kupu e kōrerohia ana.
stroke_widthkōwhiringa
Momointeger
Taunoa3
0 – 10
Te whānui o te taitapa, o te rārangi rānei o te tuhinga, ka inehia ki ngā pika; mā te 0 ka mono.
stroke_colorkōwhiringa
Momoenum
Taunoablack
blackwhiteredgreenblueyelloworangepurplepinkbrowngraycyanmagenta
Tae mō te taitapa, mō te rārangi rānei o te tuhinga.
background_colorkōwhiringa
Momoenum
Taunoanone
blackwhiteredgreenblueyelloworangepurplepinkbrowngraycyanmagentanonetransparent
Tae o te papamuri kei muri i te tuhinga; mā 'none' me 'transparent' ka mono te papamuri.
background_opacitykōwhiringa
Momonumber
Taunoa0
0 – 1
Kōpā o te papamuri; ko te 0.0 he tino mārama, ko te 1.0 he tino kapi.
positionkōwhiringa
Momoenum
Taunoabottom
topcenterbottom
Te whakatakotoranga o ngā hauraro i te tuaka poutū.
y_offsetkōwhiringa
Momointeger
Taunoa75
-200 – 200
Nekehanga poutū i roto i ngā pika; mā ngā uara tōrunga ka neke whakararo, mā ngā uara tōraro ka neke whakarunga.
words_per_subtitlekōwhiringa
Momointeger
Taunoa3
1 – 12
Te tepe tatau kupu hauraro; mā te 1 ka whakaatu kupu kotahi, mā te 2–3 he kīanga poto, mā te 8–12 he rerenga katoa mō ia wāhanga.
enable_animationkōwhiringa
Momoboolean
Taunoatrue
Whakahohe ana i te korikori hauraro me tētahi pānga tomokanga pekepeke.
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/auto-subtitle",
  "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": 5,
    "usd": "0.005",
    "charged": 5,
    "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
    },
    "transcription": "string",
    "subtitle_count": 1,
    "words": [
      {}
    ],
    "transcription_metadata": {}
  },
  "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"
  }
}
Ō 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 kei roto ngā hauraro i whakaputaina aunoa.
transcription
stringTe tuhinga katoa o te tuhi ā-waha.
subtitle_count
integerTe tatau o ngā wāhanga hauraro kua whakaputaina.
words
array of object | nullNgā raraunga wā mō ngā kupu takitahi i tukuna e te ratonga tuhi ā-waha.
transcription_metadata
object | nullHe raraunga tāpiri i tukuna e ElevenLabs mō te tuhi ā-waha, tae atu ki te reo, ngā wāhanga me ētahi atu taipitopito.

Ē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/auto-subtitle.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt