Audio

Create Model Transcription

Changed on

Transcribe audio with heygen-asr-1. Accepts WAV or MP3 as inline base64 up to 16 MiB or an accessible uploaded audio asset ID up to 32 MiB. Raw URL inputs are rejected. Asset access and contents are checked on each retry; changed audio with the same Idempotency-Key returns 409. Requires a non-trial API key with assets:write. Audio must decode to at most 30 minutes. Requires Idempotency-Key: identical retries return the stored result; a different request with the same key or a pending request returns 409. Charges API credits for decoded audio duration, rounded up to the wallet's smallest unit; failed calls are refunded. Returns the transcript and charged usage synchronously.

post/v3/models/audio/transcriptions

Request

  • Base URL
    https://api.heygen.com
  • URL
    https://api.heygen.com/v3/models/audio/transcriptions
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

model'heygen-asr-1' required

Transcription model to run.

languagestring nullable

Supported ISO 639-1 or ISO 639-3 language code; detected when omitted.

diarizeboolean

Include recording-level speaker labels.

Response

Successful response

Changes