{
  "openapi": "3.0.1",
  "info": {
    "title": "Auto Captions & Subtitle Generator for TikTok, Reels, Shorts",
    "description": "Add animated word-by-word captions to any video with Whisper AI. TikTok, Reels and Shorts styles, 18 animations, 26 fonts, batch videos and SRT/VTT/ASS export. Works with OpenAI or OpenRouter.",
    "version": "3.0",
    "x-build-id": "f7bRYB4gYWuoYZMKb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ingeniela~auto-captions-subtitle-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ingeniela-auto-captions-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/ingeniela~auto-captions-subtitle-generator/runs": {
      "post": {
        "operationId": "runs-sync-ingeniela-auto-captions-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/ingeniela~auto-captions-subtitle-generator/run-sync": {
      "post": {
        "operationId": "run-sync-ingeniela-auto-captions-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",
        "properties": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Direct links to video or audio files (MP4, MOV, WebM, MKV, MP3, WAV, M4A...). Dropbox and Google Drive share links are converted automatically. Add as many as you like: each one becomes a row in the results.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "videoUrl": {
            "title": "Video URL (legacy)",
            "type": "string",
            "description": "Single video URL. Kept for older API integrations; use Video URLs instead."
          },
          "transcriptionProvider": {
            "title": "Transcription service",
            "enum": [
              "auto",
              "openai",
              "openrouter"
            ],
            "type": "string",
            "description": "Where the speech is transcribed. Both run Whisper with word-level timestamps. Leave Automatic unless you add both keys.",
            "default": "auto"
          },
          "openaiApiKey": {
            "title": "OpenAI API key (optional)",
            "type": "string",
            "description": "Optional. Your own OpenAI key (platform.openai.com). OpenAI bills you for Whisper and the per-minute transcription fee is not charged."
          },
          "openrouterApiKey": {
            "title": "OpenRouter API key (optional)",
            "type": "string",
            "description": "Optional. Your own OpenRouter key (openrouter.ai/keys) instead of OpenAI. Same Whisper model and price through OpenRouter credits. Leave both keys empty to use the built-in transcription (billed per minute)."
          },
          "transcriptionModel": {
            "title": "Transcription model (advanced)",
            "type": "string",
            "description": "Leave empty for Whisper (whisper-1 on OpenAI, openai/whisper-1 on OpenRouter). Another OpenRouter model only works if it returns word timestamps."
          },
          "language": {
            "title": "Spoken language",
            "enum": [
              "",
              "en",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "ru",
              "uk",
              "tr",
              "ar",
              "hi",
              "id",
              "vi",
              "ja",
              "ko",
              "zh",
              "sv"
            ],
            "type": "string",
            "description": "Setting the language avoids wrong auto-detection on short clips and improves accuracy.",
            "default": ""
          },
          "vocabularyHint": {
            "title": "Vocabulary hint",
            "type": "string",
            "description": "Brand names, product names or unusual words, spelled the way you want them (e.g. 'Pepfine, Trybello Hair Helper, niacinamida'). Whisper uses this as a spelling guide. (Used by OpenAI; OpenRouter ignores it, so also add word replacements.)"
          },
          "wordReplacements": {
            "title": "Word replacements",
            "type": "object",
            "description": "Fix words the transcription keeps getting wrong: {\"wrong\": \"Right\"}. Whole words only, case-insensitive. Example: {\"pepfain\": \"Pepfine\"}."
          },
          "stylePreset": {
            "title": "Style preset",
            "enum": [
              "custom",
              "tiktok_viral",
              "energetic_pop",
              "youtube_professional",
              "minimalist",
              "professional_business"
            ],
            "type": "string",
            "description": "Pick a ready-made look, or 'Custom' to use the font, color, position and animation settings below. A preset overrides those settings.",
            "default": "custom"
          },
          "fontSelection": {
            "title": "Font Source",
            "enum": [
              "preset",
              "upload"
            ],
            "type": "string",
            "description": "Choose between pre-installed fonts or upload your own custom TTF font file",
            "default": "preset"
          },
          "fontName": {
            "title": "Font Family",
            "enum": [
              "Montserrat",
              "Impact",
              "Open Sans",
              "Bebas Neue",
              "Poppins",
              "Oswald",
              "Anton",
              "Bangers",
              "Righteous",
              "Alfa Slab One",
              "Barlow",
              "Raleway",
              "Lato",
              "Roboto",
              "Arial",
              "Helvetica",
              "Permanent Marker",
              "Pacifico",
              "Dancing Script",
              "Satisfy",
              "Ubuntu",
              "Playfair Display",
              "Merriweather",
              "Futura",
              "Georgia",
              "Times New Roman",
              "Courier New",
              "Garamond",
              "Baskerville",
              "Proxima Nova",
              "Avenir",
              "Gill Sans",
              "BBH Sans Hegarty",
              "Comic Sans MS",
              "Verdana"
            ],
            "type": "string",
            "description": "Font for the captions. Commercial fonts (Arial, Helvetica, Impact, Futura, Avenir...) are rendered with a free look-alike.",
            "default": "Montserrat"
          },
          "fontTtfUrl": {
            "title": "Custom Font URL",
            "type": "string",
            "description": "Direct URL to your .ttf or .otf font file (only used if 'Upload Custom TTF Font' is selected above)."
          },
          "fontSize": {
            "title": "Font Size (px)",
            "minimum": 12,
            "maximum": 100,
            "type": "integer",
            "description": "Caption size. With 'Same size on any resolution' on (default), 28-40 works for TikTok/Reels and 22-30 for YouTube.",
            "default": 28
          },
          "bold": {
            "title": "Bold Text",
            "minimum": 0,
            "maximum": 1,
            "type": "integer",
            "description": "Make text bold for better readability",
            "default": 1
          },
          "primaryColour": {
            "title": "Text Color",
            "enum": [
              "&HFFFFFF&",
              "&H00FFFF&",
              "&H0000FF&",
              "&HFF0000&",
              "&H00FF00&",
              "&HFFFF00&",
              "&HFF00FF&",
              "&H000000&"
            ],
            "type": "string",
            "description": "Main color of the caption text",
            "default": "&HFFFFFF&"
          },
          "highlightColour": {
            "title": "Highlight Color",
            "enum": [
              "&H00FFFF&",
              "&H0000FF&",
              "&HFF0000&",
              "&H00FF00&",
              "&HFFFF00&",
              "&HFF00FF&",
              "&HFFFFFF&"
            ],
            "type": "string",
            "description": "Color for highlighted/emphasized words (only used with 'Word-by-Word Highlight' animation)",
            "default": "&H00FFFF&"
          },
          "outline": {
            "title": "Outline Width (px)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Thickness of text outline/stroke. Higher values = more visible on any background. Recommended: 2-4",
            "default": 2
          },
          "outlineColour": {
            "title": "Outline Color",
            "enum": [
              "&H000000&",
              "&HFFFFFF&",
              "&H0000FF&",
              "&HFF0000&",
              "&H00FF00&"
            ],
            "type": "string",
            "description": "Color of the text outline/stroke. Black works best for light text, white for dark text",
            "default": "&H000000&"
          },
          "borderStyle": {
            "title": "Caption Background Style",
            "enum": [
              "1",
              "3"
            ],
            "type": "string",
            "description": "Choose how captions appear over video. Outline is cleaner, Background Box is more readable",
            "default": "1"
          },
          "shadow": {
            "title": "Drop Shadow Depth (px)",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Add depth to text with a shadow effect. Only works with 'Outline + Drop Shadow' style",
            "default": 0
          },
          "verticalPosition": {
            "title": "Vertical Position (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Where captions appear vertically. 0% = very bottom, 15% = slightly above bottom (recommended), 50% = middle, 100% = top",
            "default": 15
          },
          "alignment": {
            "title": "Text Alignment",
            "enum": [
              "bottom_left",
              "bottom_center",
              "bottom_right",
              "middle_left",
              "middle_center",
              "middle_right",
              "top_left",
              "top_center",
              "top_right"
            ],
            "type": "string",
            "description": "Horizontal and vertical alignment of captions on screen",
            "default": "bottom_center"
          },
          "wordsPerSegment": {
            "title": "Words Per Caption Segment",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum words shown together. A caption also ends early at the end of a sentence or a pause. 2-3 for TikTok/Reels, 6-10 for YouTube, 0 = Whisper's natural sentences.",
            "default": 3
          },
          "maxWordsPerLine": {
            "title": "Max Words Per Line",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum words on one line before breaking to next line. Set to 0 for automatic line breaking, or 2-4 for short punchy lines",
            "default": 0
          },
          "textCase": {
            "title": "Text Case Style",
            "enum": [
              "normal",
              "uppercase",
              "lowercase",
              "capitalize_first"
            ],
            "type": "string",
            "description": "Transform how text appears. UPPERCASE is popular for social media captions",
            "default": "normal"
          },
          "animationStyle": {
            "title": "Caption Animation",
            "enum": [
              "none",
              "word_highlight",
              "pop",
              "fade",
              "zoom_in",
              "bounce",
              "slide_up",
              "slide_down",
              "slide_left",
              "slide_right",
              "wiggle",
              "rotate_in",
              "blur_focus",
              "wave",
              "glow_pulse",
              "rainbow",
              "flash",
              "typewriter",
              "karaoke"
            ],
            "type": "string",
            "description": "Choose how captions appear and animate. 'Word-by-Word Highlight' and 'Pop' are popular for social media",
            "default": "none"
          },
          "translateTo": {
            "title": "Translate captions to",
            "enum": [
              "",
              "en",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "nl",
              "pl",
              "tr",
              "ru",
              "uk",
              "ar",
              "hi",
              "id",
              "ja",
              "ko",
              "zh"
            ],
            "type": "string",
            "description": "Captions in another language, timed to the original speech. One small AI call per video with your OpenAI/OpenRouter key, or the built-in one (US$0.01 per video).",
            "default": ""
          },
          "keywords": {
            "title": "Color keywords",
            "type": "boolean",
            "description": "AI picks the words that carry the message (numbers, key nouns, strong verbs) and colors them.",
            "default": false
          },
          "keywordColour": {
            "title": "Keyword color",
            "type": "string",
            "description": "#RRGGBB. Empty = green (pink if your highlight is green)."
          },
          "emojis": {
            "title": "Add emojis",
            "type": "boolean",
            "description": "AI adds a fitting emoji next to some captions (about one every two lines), in a clean one-color style.",
            "default": false
          },
          "removeSilences": {
            "title": "Remove silences (jump cuts)",
            "type": "boolean",
            "description": "Cuts pauses longer than the value below before captioning, for a faster, tighter video.",
            "default": false
          },
          "silenceMinSeconds": {
            "title": "Cut pauses longer than (seconds)",
            "enum": [
              "0.4",
              "0.6",
              "0.8",
              "1.0",
              "1.5"
            ],
            "type": "string",
            "description": "Shorter = more cuts. A little breathing room is kept on each side of every cut.",
            "default": "0.6"
          },
          "reframe": {
            "title": "Make it vertical (9:16)",
            "enum": [
              "none",
              "vertical-blur",
              "vertical-crop"
            ],
            "type": "string",
            "description": "Turns a horizontal video into 1080×1920 for TikTok, Reels and Shorts. Vertical videos are left as they are.",
            "default": "none"
          },
          "textModel": {
            "title": "AI model for extras (optional)",
            "type": "string",
            "description": "Empty = anthropic/claude-haiku-5.5 on OpenRouter or gpt-6-luna-pro on OpenAI."
          },
          "burnCaptions": {
            "title": "Burn captions into video",
            "type": "boolean",
            "description": "On: get an MP4 with the captions drawn on it, plus subtitle files. Off: only SRT, VTT, ASS and transcript files (faster, works with audio files).",
            "default": true
          },
          "relativeFontSize": {
            "title": "Same size on any resolution",
            "type": "boolean",
            "description": "Font size, outline and position scale with the video, so a value of 36 looks the same on 720p, 1080p or 4K. Turn off to use raw video pixels (older behaviour).",
            "default": true
          },
          "testMode": {
            "title": "Style preview only",
            "type": "boolean",
            "description": "Make one preview image of a frame with sample captions (about 10 seconds, no transcription). Use it to tune the style before captioning the full video.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}