{
  "openapi": "3.0.1",
  "info": {
    "title": "Subtitle Generator — AI Captions, SRT, VTT & Burned-In MP4",
    "description": "AI subtitle generator for your own video and audio files: auto captions as SRT, VTT and ASS files, plus an MP4 with the captions burned in (720p or 1080p, word-by-word highlight for Reels, TikTok and Shorts). 99 languages, readable lines. No API key. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "d5tR12Ii2CEoqlrFk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~subtitle-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-subtitle-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/steadyscrape~subtitle-generator/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-subtitle-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/steadyscrape~subtitle-generator/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-subtitle-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mediaUrls"
        ],
        "properties": {
          "mediaUrls": {
            "title": "Video or audio links",
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "description": "Direct links to your own files: mp4, mov, webm, mkv, m4v, mp3, m4a, wav and anything else FFmpeg reads (a Dropbox, S3, Google Cloud Storage or CDN link to the file itself). A YouTube, TikTok or Instagram page is not a file: it comes back as a free row that says so.",
            "items": {
              "type": "string"
            }
          },
          "captionedVideo": {
            "title": "Captioned video (burned-in subtitles)",
            "enum": [
              "none",
              "720p",
              "1080p"
            ],
            "type": "string",
            "description": "Also returns an MP4 with the captions burned into the picture, ready to post on Reels, Shorts, TikTok or LinkedIn. Up to 720p or up to 1080p on the short side (a smaller video is never upscaled; a vertical video stays vertical), charged per started minute of video at its own price. \"No\" returns the subtitle files only.",
            "default": "none"
          },
          "captionStyle": {
            "title": "Caption style",
            "enum": [
              "classic",
              "boxed",
              "highlight"
            ],
            "type": "string",
            "description": "How the captions look in the MP4 and in the ASS file. Classic: white letters with a dark outline, as on TV. Boxed: letters on a dark band, readable on any picture. Highlight: big bold words, the one being spoken in the highlight colour, the short-form video look.",
            "default": "classic"
          },
          "layout": {
            "title": "Subtitle layout",
            "enum": [
              "standard",
              "shortForm"
            ],
            "type": "string",
            "description": "Standard: subtitles of one or two lines, cut at sentences and pauses, as on TV and streaming. Short-form: a few words at a time on one line, changing with the voice, as on Reels, Shorts and TikTok (pair it with the Highlight style).",
            "default": "standard"
          },
          "language": {
            "title": "Language",
            "pattern": "^\\s*(([aA][uU][tT][oO]|[hH][aA][wW]|[yY][uU][eE]|[aA][fF]|[aA][mM]|[aA][rR]|[aA][sS]|[aA][zZ]|[bB][aA]|[bB][eE]|[bB][gG]|[bB][nN]|[bB][oO]|[bB][rR]|[bB][sS]|[cC][aA]|[cC][sS]|[cC][yY]|[dD][aA]|[dD][eE]|[eE][lL]|[eE][nN]|[eE][sS]|[eE][tT]|[eE][uU]|[fF][aA]|[fF][iI]|[fF][oO]|[fF][rR]|[gG][lL]|[gG][uU]|[hH][aA]|[hH][eE]|[hH][iI]|[hH][rR]|[hH][tT]|[hH][uU]|[hH][yY]|[iI][dD]|[iI][nN]|[iI][sS]|[iI][tT]|[iI][wW]|[jJ][aA]|[jJ][iI]|[jJ][vV]|[jJ][wW]|[kK][aA]|[kK][kK]|[kK][mM]|[kK][nN]|[kK][oO]|[lL][aA]|[lL][bB]|[lL][nN]|[lL][oO]|[lL][tT]|[lL][vV]|[mM][gG]|[mM][iI]|[mM][kK]|[mM][lL]|[mM][nN]|[mM][rR]|[mM][sS]|[mM][tT]|[mM][yY]|[nN][bB]|[nN][eE]|[nN][lL]|[nN][nN]|[nN][oO]|[oO][cC]|[pP][aA]|[pP][lL]|[pP][sS]|[pP][tT]|[rR][oO]|[rR][uU]|[sS][aA]|[sS][dD]|[sS][iI]|[sS][kK]|[sS][lL]|[sS][nN]|[sS][oO]|[sS][qQ]|[sS][rR]|[sS][uU]|[sS][vV]|[sS][wW]|[tT][aA]|[tT][eE]|[tT][gG]|[tT][hH]|[tT][kK]|[tT][lL]|[tT][rR]|[tT][tT]|[uU][kK]|[uU][rR]|[uU][zZ]|[vV][iI]|[yY][iI]|[yY][oO]|[zZ][hH])([-_][A-Za-z0-9]{1,8})*)?\\s*$",
            "type": "string",
            "description": "\"auto\" detects it from the first 90 seconds. Give a code (en, es, de, fr, pt, it, nl, ja, zh, ar, hi, ru… any of Whisper's 99) when you know it: it avoids a wrong guess on files that open with music or another language.",
            "default": "auto"
          },
          "translateToEnglish": {
            "title": "Translate to English",
            "type": "boolean",
            "description": "Whisper writes the subtitles in English instead of the spoken language, in the same pass: English captions for a video in any of its 99 languages. Not available with quality \"best\".",
            "default": false
          },
          "quality": {
            "title": "Quality",
            "enum": [
              "fast",
              "balanced",
              "best"
            ],
            "type": "string",
            "description": "fast: Whisper base, about 8× real time per 4 GB of memory, fine for clear speech. balanced: Whisper small, about 2.4×, good in most languages. best: Whisper large-v3-turbo, about 1.2×, the most accurate, for accents, noise and proper names. Each is charged at its own price per audio minute.",
            "default": "balanced"
          },
          "maxMinutesPerFile": {
            "title": "Minutes per file",
            "minimum": 0,
            "type": "integer",
            "description": "Subtitles only the first minutes of each file; 0 does the whole file. A file cut short says so in its row, its captioned video stops there too, and you pay only for the minutes done.",
            "default": 0
          },
          "wordTimestamps": {
            "title": "Word timestamps",
            "type": "boolean",
            "description": "Each cue in the row lists its words with their start and end times, for your own karaoke or animated captions. The files are the same either way.",
            "default": false
          },
          "maxCharsPerLine": {
            "title": "Characters per line",
            "minimum": 10,
            "maximum": 80,
            "type": "integer",
            "description": "The longest a line may be. 42 is the broadcast and streaming standard; Chinese, Japanese and Korean characters count as two. A single word longer than a line is never cut.",
            "default": 42
          },
          "maxLines": {
            "title": "Lines per subtitle",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Standard layout: how many lines a subtitle may have. A subtitle uses a second line only when one is not enough, and the lines are balanced. Short-form captions are always one line.",
            "default": 2
          },
          "wordsPerCaption": {
            "title": "Words per short-form caption",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Short-form layout: the most words shown at once (1 to 3 is the Reels and TikTok look).",
            "default": 3
          },
          "maxCueSeconds": {
            "title": "Longest time on screen (seconds)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "A subtitle is never shown longer than this; a longer sentence is cut into several.",
            "default": 7
          },
          "minGapMilliseconds": {
            "title": "Gap between subtitles (milliseconds)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "The pause left between two subtitles, so the eye sees one change into the next. Gaps shorter than half a second are closed down to this, so subtitles do not blink on and off.",
            "default": 80
          },
          "font": {
            "title": "Font",
            "enum": [
              "auto",
              "Open Sans",
              "Open Sans Extrabold",
              "Roboto",
              "Roboto Black",
              "Roboto Condensed",
              "Lato",
              "Lato Black",
              "Poppins",
              "Poppins ExtraBold",
              "Anton",
              "Noto Sans",
              "DejaVu Sans",
              "Liberation Sans"
            ],
            "type": "string",
            "description": "\"auto\" takes the style's font (Open Sans Bold for Classic and Boxed, Poppins ExtraBold for Highlight). Letters a font lacks (Chinese, Japanese, Arabic, Hindi…) are drawn from Noto and WenQuanYi fonts.",
            "default": "auto"
          },
          "fontSize": {
            "title": "Font size",
            "minimum": 12,
            "maximum": 300,
            "type": "integer",
            "description": "Empty takes the style's size, made smaller when the longest line would not fit across the picture (a vertical video gets smaller letters). Otherwise the height in pixels as on a 1080-pixel short side, whatever the video's size (12 to 300)."
          },
          "captionPosition": {
            "title": "Position",
            "enum": [
              "bottom",
              "center",
              "top"
            ],
            "type": "string",
            "description": "Where the captions sit in the picture.",
            "default": "bottom"
          },
          "textColor": {
            "title": "Text colour",
            "pattern": "^\\s*(#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[wW][hH][iI][tT][eE]|[bB][lL][aA][cC][kK]|[rR][eE][dD]|[gG][rR][eE][eE][nN]|[bB][lL][uU][eE]|[yY][eE][lL][lL][oO][wW]|[oO][rR][aA][nN][gG][eE]|[pP][iI][nN][kK]|[pP][uU][rR][pP][lL][eE]|[cC][yY][aA][nN]|[gG][rR][aA][yY]|[gG][rR][eE][yY])\\s*$",
            "type": "string",
            "description": "As #RRGGBB (#FFFFFF is white) or a name: white, yellow, cyan…",
            "default": "#FFFFFF"
          },
          "highlightColor": {
            "title": "Highlight colour",
            "pattern": "^\\s*(#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[wW][hH][iI][tT][eE]|[bB][lL][aA][cC][kK]|[rR][eE][dD]|[gG][rR][eE][eE][nN]|[bB][lL][uU][eE]|[yY][eE][lL][lL][oO][wW]|[oO][rR][aA][nN][gG][eE]|[pP][iI][nN][kK]|[pP][uU][rR][pP][lL][eE]|[cC][yY][aA][nN]|[gG][rR][aA][yY]|[gG][rR][eE][yY])\\s*$",
            "type": "string",
            "description": "Highlight style: the colour of the word being spoken.",
            "default": "#FFD400"
          },
          "uppercase": {
            "title": "Capital letters",
            "type": "boolean",
            "description": "Writes the burned captions and the ASS file in capitals, a common short-form look. The SRT and VTT keep the spoken casing.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}