---
title: "Add Subtitles"
method: POST
path: "/api/subtitle"
---

# Add Subtitles

`POST /api/subtitle`

## Request body

- SubtitleRequest
  - `job_id` string, required
  - `clip_index` integer, required
  - `position` string
  - `font_size` integer
  - `font_name` string
  - `font_color` string
  - `border_color` string
  - `border_width` integer
  - `bg_color` string
  - `bg_opacity` number
  - `style` string
  - `highlight_color` string
  - `effect` string
  - `base_opacity` number
  - `uppercase` boolean
  - `input_filename` string, nullable
  - `words` CaptionWordIn[], nullable
    - `text` string, required
    - `startMs` integer, required
    - `endMs` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openshorts/apis/fastapi.md) · [All operations](https://skmtc.dev/openshorts/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openshorts/fastapi/revisions/8085a0ce516b/schema)
