OpenShorts Subtitle API

The Subtitle API from OpenShorts — 2 operation(s) for subtitle.

GitHub OpenAPI

Operations 2

POST /api/subtitle Add Subtitles #
POST /api/subtitle/remove Remove Subtitles #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/openshorts-app:openshorts-app-subtitle-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

openshorts-app-subtitle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Subtitle API
  version: 0.1.0
tags:
- name: Subtitle
paths:
  /api/subtitle:
    post:
      summary: Add Subtitles
      operationId: add_subtitles_api_subtitle_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubtitleRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Subtitle
  /api/subtitle/remove:
    post:
      summary: Remove Subtitles
      description: 'Point a clip back at its un-captioned original.


        Clips ship captioned by default now, so there has to be a way out — without

        this, a user who doesn''t want captions is stuck with them. No re-encode and

        no quota: the pipeline always keeps the clean file next to the derived

        ``subtitled__`` one, so removing is just choosing the other file.'
      operationId: remove_subtitles_api_subtitle_remove_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveSubtitlesRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Subtitle
components:
  schemas:
    SubtitleRequest:
      properties:
        job_id:
          type: string
          title: Job Id
        clip_index:
          type: integer
          title: Clip Index
        position:
          type: string
          title: Position
          default: bottom
        font_size:
          type: integer
          title: Font Size
          default: 16
        font_name:
          type: string
          title: Font Name
          default: Verdana
        font_color:
          type: string
          title: Font Color
          default: '#FFFFFF'
        border_color:
          type: string
          title: Border Color
          default: '#000000'
        border_width:
          type: integer
          title: Border Width
          default: 2
        bg_color:
          type: string
          title: Bg Color
          default: '#000000'
        bg_opacity:
          type: number
          title: Bg Opacity
          default: 0.0
        style:
          type: string
          title: Style
          default: classic
        highlight_color:
          type: string
          title: Highlight Color
          default: '#FFD700'
        effect:
          type: string
          title: Effect
          default: none
        base_opacity:
          type: number
          title: Base Opacity
          default: 1.0
        uppercase:
          type: boolean
          title: Uppercase
          default: false
        reveal:
          type: boolean
          title: Reveal
          default: false
        shadow:
          type: integer
          title: Shadow
          default: 0
        max_chars:
          anyOf:
          - type: integer
          - type: 'null'
          title: Max Chars
        max_duration:
          anyOf:
          - type: number
          - type: 'null'
          title: Max Duration
        preset:
          anyOf:
          - type: string
          - type: 'null'
          title: Preset
        input_filename:
          anyOf:
          - type: string
          - type: 'null'
          title: Input Filename
        words:
          anyOf:
          - items:
              $ref: '#/components/schemas/CaptionWordIn'
            type: array
          - type: 'null'
          title: Words
      type: object
      required:
      - job_id
      - clip_index
      title: SubtitleRequest
    RemoveSubtitlesRequest:
      properties:
        job_id:
          type: string
          title: Job Id
        clip_index:
          type: integer
          title: Clip Index
        input_filename:
          anyOf:
          - type: string
          - type: 'null'
          title: Input Filename
      type: object
      required:
      - job_id
      - clip_index
      title: RemoveSubtitlesRequest
    CaptionWordIn:
      properties:
        text:
          type: string
          title: Text
        startMs:
          type: integer
          title: Startms
        endMs:
          type: integer
          title: Endms
      type: object
      required:
      - text
      - startMs
      - endMs
      title: CaptionWordIn
      description: 'One user-edited caption word, clip-relative ms — the same shape the

        /transcript endpoint hands the subtitle modal.'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError