Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Scribe v2

Model id: elevenlabs/scribe_v2. ElevenLabs Scribe v2 is a high-accuracy speech-to-text model for recorded audio in 90+ languages, with automatic language detection, speaker labels for up to 32 speaker

This documentation is valid for the following list of our models:

  • elevenlabs/scribe_v2

Model Overview

ElevenLabs Scribe v2 is a high-accuracy speech-to-text model for recorded audio in 90+ languages, with automatic language detection, speaker labels for up to 32 speakers, word-level timestamps and tags for sounds such as (laughter).

How to make the first API call

1️⃣ Required setup (don’t skip this) ▪ Create an account: Sign up on the AI/ML API website (if you don’t have one yet). ▪ Generate an API key: In your account dashboard, create an API key and make sure it’s enabled in the UI.

2️ Copy the code example At the bottom of this page, pick the snippet for your preferred programming language (Python / Node.js) and copy it into your project.

3️ Update the snippet for your use case ▪ Insert your API key: replace <YOUR_AIMLAPI_KEY> with your real AI/ML API key. ▪ Select a model: set the model field to the model you want to call. ▪ Provide input: fill in the request input field(s) shown in the example.

4️ (Optional) Tune the request See the API schema below for optional generation settings.

5️ Run your code Run the updated code in your development environment.

API Schema

post
Body
modelstring · enumRequiredPossible values:
urlstring · uriOptional

URL of the input audio file. Provide either url or audio — exactly one is required, not both.

Example: https://example.com/audio/sample.mp3
audiostring · binaryOptional

The audio file to transcribe. Provide either url or audio — exactly one is required, not both.

language_codestringOptional

The language of the audio as an ISO-639-1 or ISO-639-3 code, for example "en" or "heb". Omit it to detect the language automatically.

Example: en
diarizebooleanOptional

Label which speaker says each word (speaker_0, speaker_1, …).

num_speakersinteger · min: 1 · max: 32Optional

The maximum number of speakers in the audio, from 1 to 32. Helps speaker labelling; by default the model decides.

timestamps_granularitystring · enumOptional

Timing detail in the answer: "word" (the default) or "character" timings for every word, or "none".

Possible values:
tag_audio_eventsbooleanOptional

Tag non-speech sounds such as (laughter) or (applause) in the transcript. On by default.

no_verbatimbooleanOptional

Leave out filler words, false starts and non-speech sounds.

temperaturenumber · max: 2 · nullableOptional

Randomness of the transcription, from 0 to 2. By default the model picks it (usually 0).

seedinteger · max: 2147483647 · nullableOptional

Best-effort deterministic sampling: repeated requests with the same seed and parameters should return the same transcript.

Responses
200

Successful response.

application/json
generation_idstringRequired
post/v1/stt/create
curl --request POST \
  --url 'https://api.aimlapi.com/v1/stt/create' \
  --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{"model": "elevenlabs/scribe_v2"}'
200

Successful response.

{
  "generation_id": "text"
}

Code Example

Response

Last updated

Was this helpful?