{
  "openapi": "3.0.1",
  "info": {
    "title": "Deepgram Speech to Text: Key Terms, Redaction, Raw JSON",
    "description": "Speech to text on Deepgram Nova-3 or Nova-2 with the options exposed: key terms, numerals, redaction, word confidence and extra API parameters, with the raw JSON in the row. Unofficial, not affiliated with Deepgram. $0.006 per audio minute.",
    "version": "0.1",
    "x-build-id": "QEjKbhDT1zuLrK90I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blitzdata~deepgram-speech-to-text/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blitzdata-deepgram-speech-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/blitzdata~deepgram-speech-to-text/runs": {
      "post": {
        "operationId": "runs-sync-blitzdata-deepgram-speech-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/blitzdata~deepgram-speech-to-text/run-sync": {
      "post": {
        "operationId": "run-sync-blitzdata-deepgram-speech-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "Audio or video URLs",
            "type": "array",
            "description": "Links to audio or video files, one per line. A link must open the file itself. Every link gives one dataset row; a link that fails gives an error row and is not charged.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "ISO code of the spoken language (en, nl, es, ...), or 'auto' to detect it. Giving the code is more accurate when you know it. The row reports which one was used in 'language_source'.",
            "default": "auto"
          },
          "model": {
            "title": "Speech model",
            "enum": [
              "nova-3",
              "nova-2"
            ],
            "type": "string",
            "description": "Which speech-to-text model transcribes the audio. Nova-3 is the best default; Nova-2 is the previous generation. The price per minute is the same.",
            "default": "nova-3"
          },
          "keyterms": {
            "title": "Key terms",
            "type": "array",
            "description": "Names, brands and jargon the speech model should get right, one per line (for example a product name). Up to 100 terms; each helps recognition of that exact word. Billed as an add-on: $0.003 per audio minute on runs that use it.",
            "items": {
              "type": "string"
            }
          },
          "numerals": {
            "title": "Write numbers as digits",
            "type": "boolean",
            "description": "Convert spoken numbers to digits, so 'twenty twenty six' becomes 2026.",
            "default": false
          },
          "redact": {
            "title": "Redact",
            "type": "array",
            "description": "Remove sensitive data from the transcript, one category per line: pci (card numbers), pii (names, addresses, identifiers) or numbers. Redacted spans are replaced by a tag such as [CREDIT_CARD_NUMBER]. Billed as an add-on: $0.003 per audio minute on runs that use it.",
            "items": {
              "type": "string"
            }
          },
          "diarize": {
            "title": "Label the speakers",
            "type": "boolean",
            "description": "Work out who speaks when and label every segment, subtitle line and word with Speaker 1, Speaker 2 and so on. Useful for interviews, podcasts and panels. No extra charge.",
            "default": false
          },
          "word_confidence": {
            "title": "Word confidence",
            "type": "boolean",
            "description": "Return a confidence score from 0 to 1 on every word in the 'words' list, so low-confidence passages can be reviewed by hand.",
            "default": false
          },
          "deepgram_params": {
            "title": "Extra Deepgram parameters",
            "type": "object",
            "description": "Extra query parameters passed to the speech API as they are, for example {\"paragraphs\": true, \"utt_split\": 0.8}. Parameters that change billing or break the output format are ignored."
          },
          "output_formats": {
            "title": "Output formats",
            "type": "array",
            "description": "Which text formats to put in every row, one per line: text, segments, srt, vtt, markdown. Leave empty for all of them. Fewer formats make smaller rows.",
            "items": {
              "type": "string"
            }
          },
          "max_duration_seconds": {
            "title": "Max audio length (seconds)",
            "minimum": 10,
            "maximum": 14400,
            "type": "integer",
            "description": "Skip anything longer than this, so one long upload cannot run up the bill. The default is 2 hours (7200); 4 hours (14400) is the most one item can be; longer items are always refused. Skipped items return an error row and are not charged.",
            "default": 7200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}