Skip to main content
POST
/
v3
/
audio
/
transcriptions
Transcribe audio (STT)
curl --request POST \
  --url https://api.opper.ai/v3/audio/transcriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "audio": "<string>",
  "model": "<string>"
}
'
{
  "created": 123,
  "id": "<string>",
  "model": "<string>",
  "text": "<string>",
  "usage": {
    "cost": 123,
    "seconds": 123
  },
  "duration": 123,
  "language": "<string>",
  "segments": [
    {
      "end": 123,
      "start": 123,
      "text": "<string>",
      "speaker": "<string>"
    }
  ],
  "words": [
    {
      "end": 123,
      "start": 123,
      "word": "<string>"
    }
  ]
}
See the Audio guide for runnable examples.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Body

application/json
audio
string
required
model
string
required
diarize
boolean
language
string
parameters
object
prompt
string

Response

Successful response

created
integer
required
id
string
required
model
string
required
text
string
required
usage
object
required
duration
number
language
string
segments
object[]
words
object[]