Peke ki ngā ihirangi

Auto-Captioner

Whakauru

id tauira auto-caption
# 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/auto-caption?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"

Tēnei tono: $ 0.10 100 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Utility Ataata ki te Ataata #captioning#video

Ka tāpiri tapanga e hāngai ana ki te kōrero ki tētahi ataata, me te tae, momotuhi, rahi me te tūnga ka taea te whakarite

Utility · Raraunga (JSON)

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ō tētahi kōnae .mp4 kei roto he ororongo, he iti iho i te 400 MB.

Arā atu text_case · txt_color · txt_font · font_size · stroke_width · refresh_interval · left_align · top_align
text_case taunoa default

Kōwhiria 'default' hei waiho i te whakamahinga pūriki o ngā hauraro kia rite ki tā te āhukahuka kōrero i whakaputa. Hei whakarerekē, kōwhiria 'upper' mō te pūriki matua, 'lower' rānei mō te pūriki iti.

taunoa white

Tautuhia te tae kuputuhi mā te tuhi hautekaumāono, te tupua RGB, te ingoa tae rānei.

taunoa Standard

Tautuhia te momo pū kei roto i ngā tapanga mā te URL ki tētahi kōnae .ttf, ki tētahi pū hanga-i roto rānei: 'Arial', 'Standard', 'Garamond', 'Times New Roman', 'Georgia'.

taunoa 24

Te rahi kuputuhi mō ngā tapanga kua whakaputaina.

taunoa 1

Te mātotoru o te tapa kuputuhi, kua inehia ki ngā pika.

taunoa 1.5

Ka whakahaere i te nui o te kuputuhi tapanga ka puta tahi i roto i tōna wā whakaatu, kua inehia ki ngā hēkona: mā te pupuri roa ake ka kitea he kuputuhi nui ake i te wā kotahi.

taunoa center

Tiaratia te kuputuhi whakapae mā te tau hautanga i waenga i te 0.0 me te 1.0, kōwhiria rānei te tūnga kua whakaingoatia 'left', 'center', 'right'.

taunoa center

Tiaratia te kuputuhi poutū mā te tau hautanga i waenga i te 0.0 me te 1.0, kōwhiria rānei te tūnga kua whakaingoatia 'top', 'center', 'bottom'.

POST /run/auto-caption?wait=20 utu → $ 0.10
# 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/auto-caption?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ō Auto-Captioner

Ka tuhi oro mai i tētahi `video_url` .mp4 (kei raro i te 400MB), ā, ka tahuna ngā tapanga ki roto i te ataata. Whakaritea te kāhua mā `txt_color`, `txt_font`, `font_size`, `stroke_width`, me `text_case`. Mā `left_align` me `top_align` e tautuhi te tūnga. Mā `refresh_interval` 0.5 ki te 3 hēkona e tautuhi te roa o te noho o ngā tapanga ki te mata.

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ō tētahi kōnae .mp4 kei roto he ororongo, he iti iho i te 400 MB.
txt_colorkōwhiringa
Momostring
Taunoawhite
Tautuhia te tae kuputuhi mā te tuhi hautekaumāono, te tupua RGB, te ingoa tae rānei.
txt_fontkōwhiringa
Momostring
TaunoaStandard
Tautuhia te momo pū kei roto i ngā tapanga mā te URL ki tētahi kōnae .ttf, ki tētahi pū hanga-i roto rānei: 'Arial', 'Standard', 'Garamond', 'Times New Roman', 'Georgia'.
font_sizekōwhiringa
Momointeger
Taunoa24
Te rahi kuputuhi mō ngā tapanga kua whakaputaina.
stroke_widthkōwhiringa
Momointeger
Taunoa1
Te mātotoru o te tapa kuputuhi, kua inehia ki ngā pika.
left_alignkōwhiringa
Momostring | number
Taunoacenter
Tiaratia te kuputuhi whakapae mā te tau hautanga i waenga i te 0.0 me te 1.0, kōwhiria rānei te tūnga kua whakaingoatia 'left', 'center', 'right'.
top_alignkōwhiringa
Momostring | number
Taunoacenter
Tiaratia te kuputuhi poutū mā te tau hautanga i waenga i te 0.0 me te 1.0, kōwhiria rānei te tūnga kua whakaingoatia 'top', 'center', 'bottom'.
refresh_intervalkōwhiringa
Momonumber
Taunoa1.5
0.5 – 3
Ka whakahaere i te nui o te kuputuhi tapanga ka puta tahi i roto i tōna wā whakaatu, kua inehia ki ngā hēkona: mā te pupuri roa ake ka kitea he kuputuhi nui ake i te wā kotahi.
text_casekōwhiringa
Momoenum
Taunoadefault
defaultupperlower
Kōwhiria 'default' hei waiho i te whakamahinga pūriki o ngā hauraro kia rite ki tā te āhukahuka kōrero i whakaputa. Hei whakarerekē, kōwhiria 'upper' mō te pūriki matua, 'lower' rānei mō te pūriki iti.
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": "auto-caption",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video_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"
  }
}
Ō 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_url
string (video URL)URL e tohu ana ki te ataata .mp4 whai tapanga.

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