> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ElevenLabs Scribe v2

> The ElevenLabs Scribe v2 API transcribes audio or video up to 120 minutes into text with word timestamps, speaker labels, audio event tags and keyterms.

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the result through the unified [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) endpoint.

ElevenLabs Scribe v2 is ElevenLabs' speech-to-text model; ElevenLabs lists 90+ supported languages. The ElevenLabs Scribe v2 API takes one audio file or video with sound and returns the transcript with word-level timestamps, speaker labels and tagged sound events such as laughter. Use it for subtitles, meeting and interview notes, searchable media archives and voice-data pipelines.

## Models

* **elevenlabs/stt/scribe-v2** — ElevenLabs Scribe v2 speech to text for audio or video up to 120 minutes.

## Features

* Automatic language detection, or a fixed `language_code`.
* Word-level start and end times in seconds.
* Speaker diarization with a `speaker_id` on every word.
* Audio event tags for non-speech sounds.
* Keyterm prompting for up to 100 names or terms.

## Required parameters

* `audio_url` (string): Audio file or video with an audio track, up to 100 MB and 120 minutes, as a publicly accessible HTTP(S) URL.

## Optional parameters

* `language_code` (string): ISO 639-1 or ISO 639-3 code, such as `en` or `eng`. Omit it to detect the language.
* `tag_audio_events` (boolean): Tag sounds such as laughter or applause. Default `true`.
* `diarize` (boolean): Label words by speaker. Default `true`.
* `keyterms` (string\[]): Up to 100 terms, each up to 50 characters, to spell correctly.

## Output

A finished task returns the transcript in two places:

* `data.output` in [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) and the callback payload: `text` (full transcript), `text_truncated`, `language_code` (detected language as ISO 639-3, such as `spa`), `language_probability` and `transcript_url`.
* `data.files[0]`: the same `transcript.json` file (`file_type: other`, `content_type: application/json`).

```json Finished status response theme={"dark"}
{
  "code": 200,
  "data": {
    "task_id": "IPS7Y2J0Y6MZGLME",
    "status": "finished",
    "files": [
      {
        "file_url": "https://cdn.vidgo.ai/apis/models/elevenlabs/stt/scribe-v2/v1/01/transcript.json",
        "file_type": "other",
        "format": "json",
        "content_type": "application/json",
        "file_name": "transcript.json"
      }
    ],
    "output": {
      "text": "Primero calentamos el comal sin aceite. Los chiles chilhuacle se tuestan apenas unos segundos por lado. …",
      "text_truncated": false,
      "language_code": "spa",
      "language_probability": 1.0,
      "transcript_url": "https://cdn.vidgo.ai/apis/models/elevenlabs/stt/scribe-v2/v1/01/transcript.json"
    },
    "created_time": "2026-11-25T17:07:21",
    "error_message": null,
    "progress": 100
  }
}
```

`transcript.json` lists every word with `start` and `end` in seconds, `type` (`word`, `spacing` or `audio_event`) and `speaker_id`:

```json transcript.json theme={"dark"}
{
  "text": "Primero calentamos el comal sin aceite. …",
  "language_code": "spa",
  "language_probability": 1.0,
  "words": [
    {
      "text": "Primero",
      "start": 0.12,
      "end": 0.52,
      "type": "word",
      "speaker_id": "speaker_0"
    },
    {
      "text": " ",
      "start": 0.52,
      "end": 0.6,
      "type": "spacing",
      "speaker_id": "speaker_0"
    },
    {
      "text": "calentamos",
      "start": 0.6,
      "end": 1.18,
      "type": "word",
      "speaker_id": "speaker_0"
    }
  ]
}
```

## Examples

* **Spanish recording with keyterms**: `language_code: es`, diarization and event tagging on, and three regional terms in `keyterms`.
* **Auto-detected language from a video**: only `audio_url` pointing to an MP4, with a `callback_url`.

## Notes

* The media is measured at submission. Files over 100 MB or 120 minutes, files that cannot be downloaded or read, and videos with no audio track return 400.
* Credits are charged at submission on the media duration rounded up to whole seconds (at least 1 second). A non-empty `keyterms` list uses a higher per-minute rate; an empty list is ignored. A failed task is refunded in full. See the [pricing page](https://vidgo.ai/apis/api-pricing) for current rates.
* Unknown fields in `input`, a `language_code` outside 2–3 letters, more than 100 keyterms or a keyterm longer than 50 characters return 400.


## OpenAPI

````yaml api-manual/music-series/elevenlabs-stt-scribe-v2.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - ElevenLabs Scribe v2
  description: >-
    The ElevenLabs Scribe v2 API transcribes audio or video up to 120 minutes
    into text with word timestamps, speaker labels, audio event tags and
    keyterms.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - ElevenLabs Scribe v2
      summary: Submit ElevenLabs Scribe v2 Task
      operationId: submitElevenLabsScribeV2Task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              keyterms:
                summary: Spanish recording with keyterms
                value:
                  model: elevenlabs/stt/scribe-v2
                  input:
                    audio_url: >-
                      https://cdn.vidgo.ai/apis/models/elevenlabs/stt/scribe-v2/v1/01/input-audio.mp3
                    language_code: es
                    tag_audio_events: true
                    diarize: true
                    keyterms:
                      - chilhuacle
                      - mole negro
                      - comal
              auto:
                summary: Auto-detect language from a video
                value:
                  model: elevenlabs/stt/scribe-v2
                  input:
                    audio_url: https://example.com/meeting.mp4
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: >-
            Task submission result. A task ID identifies asynchronous work;
            generation may still be running.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: elevenlabs/stt/scribe-v2
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for completion or failure notifications.
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - audio_url
          additionalProperties: false
          properties:
            audio_url:
              type: string
              format: uri
              description: >-
                Audio file (MP3, WAV, M4A, AAC, FLAC, OGG, WebM and similar) or
                a video with an audio track (MP4, MOV, MKV, WebM), up to 100 MB
                and 120 minutes.


                Use a publicly accessible HTTP(S) download URL.
            language_code:
              type: string
              minLength: 2
              maxLength: 3
              description: >-
                ISO 639-1 or ISO 639-3 language code, such as `en` or `eng`.
                Omit it to detect the language automatically.
            tag_audio_events:
              type: boolean
              default: true
              description: >-
                Tag non-speech sounds such as laughter or applause in the
                transcript.
            diarize:
              type: boolean
              default: true
              description: >-
                Label each word with the speaker who said it (`speaker_0`,
                `speaker_1` …).
            keyterms:
              type: array
              maxItems: 100
              items:
                type: string
                minLength: 1
                maxLength: 50
              description: >-
                Up to 100 words or phrases, each up to 50 characters, that the
                model should spell correctly, such as names or jargon. A
                non-empty list uses the keyterm rate.
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-example-001
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T10:30:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: audio_url is required
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Use `Authorization: Bearer VIDGO_API_KEY`. Create a key in **Dashboard →
        API Key** (https://vidgo.ai/apis/dashboard/api-key).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.