Dža ko lil

Auto-Captioner

Integriruj

Modelosko id 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"

Kava mangipen: $0.10 100 API krediti Phir les kate

Lel API klidin
Utility Video ko Video #captioning#video

Thovel lavipendutne captionura andro videjo, reguliripasa la ranga, fontosko, baripasko thaj pozicijakoro

Utility · Dada (JSON)

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul video_url
Čhiv jekh fajl, vaj

Videoqo URL vaš audio-in kerdo .mp4 fajlo maj cera 400 MB.

Lučhe text_case · txt_color · txt_font · font_size · stroke_width · refresh_interval · left_align · top_align
text_case standardno default

Kiden 'default' te mukhen subtitle casing sar kerdino e speech recognition-eça. Vaš paruvipe, kiden 'upper' vaš uppercase teksto vaj 'lower' vaš lowercase teksto.

standardno white

Čhutin e tekstoski ranga ande hexadecimal notation, RGB tuple vaj rangaqo nav.

standardno Standard

Čhutin e caption-eqi typeface ande URL savo sikavel ko .ttf fajlo vaj built-in font: 'Arial', 'Standard', 'Garamond', 'Times New Roman', vaj 'Georgia'.

standardno 24

Tekstosko barimos e generirime caption-eqo.

standardno 1

Tekstosko stroke thickness, merime ande pixels.

standardno 1.5

Kontrolisarel kiti caption-qi tekstosko si jekhe data ande lesqi display intervala, merime ande sekunda: maj lungo te avel vidime, maj but teksto sikavel jekhe data.

standardno center

Čhutin e teksto horizontalno float-eça maškar 0.0 thaj 1.0, vaj kid 'left', 'center', vaj 'right'.

standardno center

Čhutin e teksto vertikalno float-eça maškar 0.0 thaj 1.0, vaj kid 'top', 'center', vaj 'bottom'.

POST /run/auto-caption?wait=20 hesab → $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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Auto-Captioner

Transkribiril audio andar jek .mp4 `video_url` (tele 400MB) thaj čhinel e captionura andro videjo. Šaj te stilisaras len la `txt_color`, `txt_font`, `font_size`, `stroke_width`, thaj `text_case` parametronenca. E pozicija vajdelpe la `left_align` thaj `top_align` parametronca. `refresh_interval` maškar 0.5 thaj 3 sekundura setisarel kiti vrama ačhen e captionura pe ekrano.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
video_urltrubul video
Tipurl · video
Videoqo URL vaš audio-in kerdo .mp4 fajlo maj cera 400 MB.
txt_coloropcionalno
Tipstring
standardnowhite
Čhutin e tekstoski ranga ande hexadecimal notation, RGB tuple vaj rangaqo nav.
txt_fontopcionalno
Tipstring
standardnoStandard
Čhutin e caption-eqi typeface ande URL savo sikavel ko .ttf fajlo vaj built-in font: 'Arial', 'Standard', 'Garamond', 'Times New Roman', vaj 'Georgia'.
font_sizeopcionalno
Tipinteger
standardno24
Tekstosko barimos e generirime caption-eqo.
stroke_widthopcionalno
Tipinteger
standardno1
Tekstosko stroke thickness, merime ande pixels.
left_alignopcionalno
Tipstring | number
standardnocenter
Čhutin e teksto horizontalno float-eça maškar 0.0 thaj 1.0, vaj kid 'left', 'center', vaj 'right'.
top_alignopcionalno
Tipstring | number
standardnocenter
Čhutin e teksto vertikalno float-eça maškar 0.0 thaj 1.0, vaj kid 'top', 'center', vaj 'bottom'.
refresh_intervalopcionalno
Tipnumber
standardno1.5
0.5 – 3
Kontrolisarel kiti caption-qi tekstosko si jekhe data ande lesqi display intervala, merime ande sekunda: maj lungo te avel vidime, maj but teksto sikavel jekhe data.
text_caseopcionalno
Tipenum
standardnodefault
defaultupperlower
Kiden 'default' te mukhen subtitle casing sar kerdino e speech recognition-eça. Vaš paruvipe, kiden 'upper' vaš uppercase teksto vaj 'lower' vaš lowercase teksto.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
video_url
string (video URL)URL savo sikavel ko caption-irime .mp4 video.

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/auto-caption.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt