AI Subtitle

Run speech recognition on video, generate subtitles automatically, optionally translate them into another language, and optionally burn the subtitles into the video.

Create Task

Basic Information

ItemValue
Request MethodPOST
Request Path/task/video_ai_subtitle
Content-Typeapplication/json
AuthenticationRaw API key in the Authorization header

Request Body

ParameterTypeRequiredDefaultDescription
file_idstringYes-Uploaded video file ID
languagestringYes-Subtitle source language code. See the full supported list below
translate_languagestringNo-Subtitle target language code for translation. It uses the same supported set as language
need_renderbooleanNofalseWhether to burn subtitles into the video
need_purebooleanNofalseWhether to remove existing subtitles before generating new ones
lingual_typestringNo"bilingual"monolingual or bilingual. See the gallery below for examples
subtitle_typestringNo"default"Subtitle style preset: default, outline, cinema_yellow, immersive_box, wide_spacing, deep_shadow, or boxed. See the gallery below for examples
subtitle_colorstringNo"雅黑"Subtitle color preset. Current public docs include values such as 雅黑, 淡绿, 森林绿, 湖蓝, 道奇蓝, 钢蓝, 浅粉红, 深紫, 珊瑚橙, 橙红, and 土豪金

Supported Language Codes

language and translate_language share the same supported language set, AI Subtitle supports these 11 languages:

Language codeLanguage name
zh-CHTTraditional Chinese
zh-CHSSimplified Chinese
zh-CNChinese
ja-JPJapanese
en-USEnglish
es-ESSpanish
ru-RURussian
ko-KRKorean
fr-FRFrench
pt-PTPortuguese
vi-VNVietnamese

Tip: When lingual_type is bilingual, explicitly pass translate_language and make sure it also comes from the list above.

Subtitle Style Gallery

The gallery below covers all 7 currently supported subtitle_type presets, with examples for:

  • monolingual and bilingual
  • 1080x1920, 1920x1080, 2160x3840, 3840x2160, 480x848, and 848x480

Use the matching subtitle_type parameter value shown in each style section.

Default

default

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Default subtitle style example, Bilingual / bilingual, 480x848
480x848
Default subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Default subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Default subtitle style example, Bilingual / bilingual, 848x480
848x480
Default subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Default subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Default subtitle style example, Monolingual / monolingual, 480x848
480x848
Default subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Default subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Default subtitle style example, Monolingual / monolingual, 848x480
848x480
Default subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Default subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Outline

outline

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Outline subtitle style example, Bilingual / bilingual, 480x848
480x848
Outline subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Outline subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Outline subtitle style example, Bilingual / bilingual, 848x480
848x480
Outline subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Outline subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Outline subtitle style example, Monolingual / monolingual, 480x848
480x848
Outline subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Outline subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Outline subtitle style example, Monolingual / monolingual, 848x480
848x480
Outline subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Outline subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Cinema Yellow

cinema_yellow

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Cinema Yellow subtitle style example, Bilingual / bilingual, 480x848
480x848
Cinema Yellow subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Cinema Yellow subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Cinema Yellow subtitle style example, Bilingual / bilingual, 848x480
848x480
Cinema Yellow subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Cinema Yellow subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Cinema Yellow subtitle style example, Monolingual / monolingual, 480x848
480x848
Cinema Yellow subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Cinema Yellow subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Cinema Yellow subtitle style example, Monolingual / monolingual, 848x480
848x480
Cinema Yellow subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Cinema Yellow subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Immersive Box

immersive_box

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Immersive Box subtitle style example, Bilingual / bilingual, 480x848
480x848
Immersive Box subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Immersive Box subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Immersive Box subtitle style example, Bilingual / bilingual, 848x480
848x480
Immersive Box subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Immersive Box subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Immersive Box subtitle style example, Monolingual / monolingual, 480x848
480x848
Immersive Box subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Immersive Box subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Immersive Box subtitle style example, Monolingual / monolingual, 848x480
848x480
Immersive Box subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Immersive Box subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Wide Spacing

wide_spacing

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Wide Spacing subtitle style example, Bilingual / bilingual, 480x848
480x848
Wide Spacing subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Wide Spacing subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Wide Spacing subtitle style example, Bilingual / bilingual, 848x480
848x480
Wide Spacing subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Wide Spacing subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Wide Spacing subtitle style example, Monolingual / monolingual, 480x848
480x848
Wide Spacing subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Wide Spacing subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Wide Spacing subtitle style example, Monolingual / monolingual, 848x480
848x480
Wide Spacing subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Wide Spacing subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Deep Shadow

deep_shadow

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Deep Shadow subtitle style example, Bilingual / bilingual, 480x848
480x848
Deep Shadow subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Deep Shadow subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Deep Shadow subtitle style example, Bilingual / bilingual, 848x480
848x480
Deep Shadow subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Deep Shadow subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Deep Shadow subtitle style example, Monolingual / monolingual, 480x848
480x848
Deep Shadow subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Deep Shadow subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Deep Shadow subtitle style example, Monolingual / monolingual, 848x480
848x480
Deep Shadow subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Deep Shadow subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Boxed

boxed

Each style includes 12 example images

Bilingual / bilingual

Portrait / portrait

Boxed subtitle style example, Bilingual / bilingual, 480x848
480x848
Boxed subtitle style example, Bilingual / bilingual, 1080x1920
1080x1920
Boxed subtitle style example, Bilingual / bilingual, 2160x3840
2160x3840

Landscape / landscape

Boxed subtitle style example, Bilingual / bilingual, 848x480
848x480
Boxed subtitle style example, Bilingual / bilingual, 1920x1080
1920x1080
Boxed subtitle style example, Bilingual / bilingual, 3840x2160
3840x2160

Monolingual / monolingual

Portrait / portrait

Boxed subtitle style example, Monolingual / monolingual, 480x848
480x848
Boxed subtitle style example, Monolingual / monolingual, 1080x1920
1080x1920
Boxed subtitle style example, Monolingual / monolingual, 2160x3840
2160x3840

Landscape / landscape

Boxed subtitle style example, Monolingual / monolingual, 848x480
848x480
Boxed subtitle style example, Monolingual / monolingual, 1920x1080
1920x1080
Boxed subtitle style example, Monolingual / monolingual, 3840x2160
3840x2160

Optional content Object

You can pass extra context through content to improve subtitle accuracy.

ParameterTypeDescription
content.video_titlestringVideo title
content.video_infostringSummary or description of the video

Request Example

curl -X POST https://api.ai-mcn.tv:10000/task/video_ai_subtitle \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "537489015178246",
    "language": "zh-CN",
    "translate_language": "en-US",
    "need_render": true,
    "lingual_type": "bilingual",
    "subtitle_type": "outline",
    "subtitle_color": "雅黑"
  }'

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "task_type": "video_ai_subtitle",
    "status": "queued"
  }
}

Query Task Result

Basic Information

ItemValue
Request MethodGET
Request Path/task/video_ai_subtitle/{task_id}
AuthenticationRaw API key in the Authorization header

Output Result (output_result)

ParameterTypeDescription
file_idstringVideo file ID with rendered subtitles, returned only when need_render: true
subtitle_file_idstringSubtitle file ID in SRT format

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "status": "completed",
    "progress": 100,
    "output_result": {
      "file_id": "537489015178248",
      "subtitle_file_id": "537489015178249"
    },
    "create_time": "2026-04-05T08:00:00Z",
    "update_time": "2026-04-05T08:01:30Z"
  }
}

Error Codes

Error CodeHTTP StatusDescriptionResolution
6013400Missing file_id or languageAdd the required fields
6015400Unsupported language codeUse one of the supported language codes listed above
6004404File not foundVerify the file_id
6502401Authentication failedCheck the Authorization header
6202402Insufficient balanceRecharge in the Dashboard