{
  "openapi": "3.0.1",
  "info": {
    "title": "Speech to Text - Transcribe Audio & Video to SRT, VTT",
    "description": "Speech to text for audio and video files: transcribe MP3, MP4, WAV, MOV and more from a link, upload or key-value store to text, SRT or VTT subtitles and timestamped JSON. Silence is never sent or charged. AI billed separately in your account. $0.005 per audio minute.",
    "version": "0.1",
    "x-build-id": "NI8aOKAq1NMXTIoSe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quietworkslab~audio-video-to-text/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quietworkslab-audio-video-to-text",
        "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/quietworkslab~audio-video-to-text/runs": {
      "post": {
        "operationId": "runs-sync-quietworkslab-audio-video-to-text",
        "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/quietworkslab~audio-video-to-text/run-sync": {
      "post": {
        "operationId": "run-sync-quietworkslab-audio-video-to-text",
        "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": {
          "fileUrls": {
            "title": "File links",
            "type": "array",
            "description": "Direct links to audio or video files (MP3, M4A, WAV, FLAC, OGG, OPUS, WEBM, MP4, MOV, MKV and more) that you have the right to use, one per line. Not web pages or streaming sites: the link must return the file itself. Up to 100 links per run, each downloaded once (up to 2 GB and the run's free disk, within 10 minutes). Links that need a login, and private or local network addresses, are refused; a link that fails is not charged. Leave empty (with no store and no uploads) to try the built-in sample.",
            "items": {
              "type": "string"
            }
          },
          "keyValueStoreId": {
            "title": "Key-value store",
            "type": "string",
            "description": "Optional. A key-value store in your account that holds audio or video files. Every record that is audio or video is transcribed; JSON, images and other records are skipped. When this Actor runs after another Actor from its Integrations tab, set it to {{resource.defaultKeyValueStoreId}}. Uploaded files that are in this store are read with it, once."
          },
          "keyPrefix": {
            "title": "Only keys starting with",
            "type": "string",
            "description": "Optional. Read only the records of the key-value store whose key starts with this text, for example meeting- or 2026-11-. Empty = all records."
          },
          "uploadedFiles": {
            "title": "Upload files",
            "type": "array",
            "description": "Optional. Upload audio or video files here. This field takes only files stored in your Apify account; put links to files on other websites into \"File links\". If your account keeps its storages private (the default), this Actor, which runs with limited permissions, may not open the uploads: the run then names the store they are in. Choose that store in \"Key-value store\" and start again."
          },
          "language": {
            "title": "Language",
            "pattern": "^(|auto|AUTO|Auto|[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})?)$",
            "type": "string",
            "description": "auto (default): the AI hears which language is spoken. Or an ISO 639 code of the main language, for example en, ja, es, de, fr, pt-br, as a hint. The transcript is always in the spoken language (never translated).",
            "default": "auto"
          },
          "vocabulary": {
            "title": "Names and terms (spelling hints)",
            "maxLength": 500,
            "type": "string",
            "description": "Optional, up to 500 characters. Names, brands and jargon the speakers use, so the AI spells them right, for example: Quiet Works Lab, Apify, SRT, Kubernetes. It is sent to the AI with each part of the audio as a spelling hint only, never as an instruction."
          },
          "outputFormats": {
            "title": "Output files",
            "uniqueItems": true,
            "type": "array",
            "description": "Which files to save in the run's key-value store for each transcribed file (their links are in the dataset row). Default: all four. The dataset row always has the text; it has the segments too when \"Timestamped JSON segments\" is chosen.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "srt",
                "vtt",
                "segments"
              ],
              "enumTitles": [
                "Plain text (.txt)",
                "SRT subtitles (.srt)",
                "WebVTT subtitles (.vtt)",
                "Timestamped JSON segments (.json)"
              ]
            },
            "default": [
              "text",
              "srt",
              "vtt",
              "segments"
            ]
          },
          "japaneseCleanup": {
            "title": "Japanese clean-up",
            "type": "boolean",
            "description": "Checked (default): no spaces between Japanese characters or next to Japanese punctuation, half-width katakana to full width (the same spacing rules as Japanese Text Normalizer by Quiet Works Lab). Text in other languages is not changed.",
            "default": true
          },
          "maxMinutesPerFile": {
            "title": "Most minutes per file",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "The AI model is billed to your Apify account separately (see Pricing), and the maximum cost per run you set does not limit it. A longer file is transcribed up to this point and its row says truncated. Default 60, up to 600.",
            "default": 60
          },
          "maxMinutesPerRun": {
            "title": "Most minutes per run",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Most minutes of audio in one run, over all files (only the speech parts are sent to the AI, so it hears at most this much). When it is reached, the file in work is cut there and the run stops (PARTIAL). Empty = 120 minutes on a paid Apify plan, 15 minutes on the Free plan (where the AI price is 10 times higher). Retries are counted too, against a hard limit of twice this amount that is never passed."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}