API & MCP

Everything a person can do on Subtitle Studio, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Subtitle Studio

Parses SRT, WebVTT, ASS/SSA (basic) and YouTube SBV subtitles and converts between them. Shift all times, re-sync by two reference points (fixes drifting subtitles), fix overlaps with a minimum gap, wrap or merge lines, remove hearing-impaired tags like [music] or (sighs), and get a reading-speed (characters per second) report and validation errors with line numbers.

Inputs of Subtitle Studio
FieldTypeDefaultDescription
texttextarea—Subtitle text. Paste SRT, WebVTT, ASS/SSA or SBV, or upload a file below.
filefile—Subtitle file. Max 2 MB. UTF-8, UTF-16 (with BOM) or Windows-1252. Used instead of the text when given.
inputFormatselect (auto, srt, vtt, ass, sbv)"auto"Input format
outputFormatselect (same, srt, vtt, ass, sbv)"same"Output format
shiftMsinteger0Shift all times. Positive = later, negative = earlier. 1000 ms = 1 s.
syncCueAinteger—Sync point 1: cue number. Two-point sync fixes subtitles that drift (e.g. 25 vs 23.976 fps). Give two cues and when they should start.
syncTimeAtext—Sync point 1: should start at
syncCueBinteger—Sync point 2: cue number
syncTimeBtext—Sync point 2: should start at
removeHibooleanfalseRemove hearing-impaired tags ([music], (sighs), speaker labels like JOHN:, ♪ lines)
mergeLinesbooleanfalseMerge multi-line cues into one line when they fit the maximum line length
maxLineLengthinteger0Maximum line length. 0 = no wrapping. 42 is a common limit for TV/streaming subtitles.
maxLinesinteger2Maximum lines per cue. Longer cues are split into several cues, with time shared by text length.
fixOverlapsbooleanfalseFix overlapping cues (shorten the earlier cue)
minGapMsinteger0Minimum gap between cues. Used with "Fix overlapping cues". 83 ms ≈ 2 frames at 24 fps.
maxCpsnumber17Reading speed limit for the report. Cues faster than this are listed. 15–20 characters per second are common guidelines.

Example request

Clean an SRT: remove [music] tags, wrap at 42, fix overlaps, export WebVTT

curl -X POST https://subtitlestudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"1\n00:00:01,000 --> 00:00:03,200\n[MUSIC PLAYING]\nHello there!\n\n2\n00:00:03,000 --> 00:00:05,500\nJOHN: (sighs) This line is quite a bit longer than forty-two characters and needs wrapping.\n\n3\n00:00:06,000 --> 00:00:06,400\nToo fast to read comfortably.\n","outputFormat":"vtt","removeHi":true,"maxLineLength":42,"fixOverlaps":true,"minGapMs":80}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "subtitle-studio": { "type": "http", "url": "https://subtitlestudio.usefulweb.site/mcp" }
  }
}