Skip to main content
POST
/
v3
/
video-translations
/
proofreads
Create Proofread Session
curl --request POST \
  --url https://api.heygen.com/v3/video-translations/proofreads \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "video": {
    "type": "<string>",
    "url": "<string>"
  },
  "output_languages": [
    "<string>"
  ],
  "title": "<string>",
  "brand_voice_id": "<string>",
  "brand_glossary_id": "<string>",
  "speaker_num": 123,
  "folder_id": "<string>",
  "enable_video_stretching": false,
  "disable_music_track": false,
  "enable_speech_enhancement": false,
  "srt": {
    "type": "<string>",
    "url": "<string>"
  },
  "mode": "speed",
  "keep_the_same_format": false
}
'
import requests

url = "https://api.heygen.com/v3/video-translations/proofreads"

payload = {
"video": {
"type": "<string>",
"url": "<string>"
},
"output_languages": ["<string>"],
"title": "<string>",
"brand_voice_id": "<string>",
"brand_glossary_id": "<string>",
"speaker_num": 123,
"folder_id": "<string>",
"enable_video_stretching": False,
"disable_music_track": False,
"enable_speech_enhancement": False,
"srt": {
"type": "<string>",
"url": "<string>"
},
"mode": "speed",
"keep_the_same_format": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video: {type: '<string>', url: '<string>'},
output_languages: ['<string>'],
title: '<string>',
brand_voice_id: '<string>',
brand_glossary_id: '<string>',
speaker_num: 123,
folder_id: '<string>',
enable_video_stretching: false,
disable_music_track: false,
enable_speech_enhancement: false,
srt: {type: '<string>', url: '<string>'},
mode: 'speed',
keep_the_same_format: false
})
};

fetch('https://api.heygen.com/v3/video-translations/proofreads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.heygen.com/v3/video-translations/proofreads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video' => [
'type' => '<string>',
'url' => '<string>'
],
'output_languages' => [
'<string>'
],
'title' => '<string>',
'brand_voice_id' => '<string>',
'brand_glossary_id' => '<string>',
'speaker_num' => 123,
'folder_id' => '<string>',
'enable_video_stretching' => false,
'disable_music_track' => false,
'enable_speech_enhancement' => false,
'srt' => [
'type' => '<string>',
'url' => '<string>'
],
'mode' => 'speed',
'keep_the_same_format' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.heygen.com/v3/video-translations/proofreads"

payload := strings.NewReader("{\n \"video\": {\n \"type\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"output_languages\": [\n \"<string>\"\n ],\n \"title\": \"<string>\",\n \"brand_voice_id\": \"<string>\",\n \"brand_glossary_id\": \"<string>\",\n \"speaker_num\": 123,\n \"folder_id\": \"<string>\",\n \"enable_video_stretching\": false,\n \"disable_music_track\": false,\n \"enable_speech_enhancement\": false,\n \"srt\": {\n \"type\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"mode\": \"speed\",\n \"keep_the_same_format\": false\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.heygen.com/v3/video-translations/proofreads")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"video\": {\n \"type\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"output_languages\": [\n \"<string>\"\n ],\n \"title\": \"<string>\",\n \"brand_voice_id\": \"<string>\",\n \"brand_glossary_id\": \"<string>\",\n \"speaker_num\": 123,\n \"folder_id\": \"<string>\",\n \"enable_video_stretching\": false,\n \"disable_music_track\": false,\n \"enable_speech_enhancement\": false,\n \"srt\": {\n \"type\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"mode\": \"speed\",\n \"keep_the_same_format\": false\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.heygen.com/v3/video-translations/proofreads")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video\": {\n \"type\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"output_languages\": [\n \"<string>\"\n ],\n \"title\": \"<string>\",\n \"brand_voice_id\": \"<string>\",\n \"brand_glossary_id\": \"<string>\",\n \"speaker_num\": 123,\n \"folder_id\": \"<string>\",\n \"enable_video_stretching\": false,\n \"disable_music_track\": false,\n \"enable_speech_enhancement\": false,\n \"srt\": {\n \"type\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"mode\": \"speed\",\n \"keep_the_same_format\": false\n}"

response = http.request(request)
puts response.read_body
{
  "data": {
    "proofread_ids": [
      "<string>"
    ]
  }
}
{
"error": {
"code": "invalid_parameter",
"message": "'video_url' is required.",
"param": "video_url",
"doc_url": null
}
}
{
"error": {
"code": "authentication_failed",
"message": "Invalid or expired API key. Verify your x-api-key header.",
"param": null,
"doc_url": null
}
}
{
"error": {
"code": "request_in_progress",
"message": "A request with this Idempotency-Key is already in progress. Retry shortly.",
"param": null,
"doc_url": null
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the duration specified in the Retry-After header.",
"param": null,
"doc_url": null
}
}

Authorizations

x-api-key
string
header
required

HeyGen API key. Obtain from your HeyGen dashboard.

Headers

Idempotency-Key
string

Optional client-supplied key for safely retrying mutations. Subsequent calls within 24 hours that share this key replay the original response — even if the request body differs slightly (a warning is logged). A retry that arrives while the original is still in flight gets a 409 request_in_progress. Keys must be 1–255 characters from [A-Za-z0-9_:.-]; a UUID is a safe default. Scope is per-endpoint and per-resource: the same key on a different route or path parameter is independent.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9_\-:.]{1,255}$

Body

application/json

Request body for POST /v3/video-translations/proofreads.

video
AssetUrl · object
required

Asset input via publicly accessible HTTPS URL.

output_languages
string[]
required

Target language codes. Use one for single proofread, multiple for batch.

Minimum array length: 1
title
string
required

Title for the proofread job

brand_voice_id
string | null

Brand glossary ID for custom term translations. Legacy field name for brand_glossary_id — both are accepted and resolve to the same workspace record. Discover IDs via GET /v3/brand-glossaries.

brand_glossary_id
string | null

Brand glossary ID for custom term translations (e.g. translate 'Reformer' as 'Pilates equipment', not 'political activist'). Alias for the legacy brand_voice_id field. Discover IDs via GET /v3/brand-glossaries.

speaker_num
integer | null

Number of speakers (improves speaker separation)

folder_id
string | null

Project/folder ID to organize proofread into

enable_video_stretching
boolean
default:false

Allow dynamic duration adjustment

disable_music_track
boolean
default:false

Remove background music

enable_speech_enhancement
boolean
default:false

Enhance speech quality

srt
AssetUrl · object

Asset input via publicly accessible HTTPS URL.

mode
enum<string>
default:speed

Translation quality mode: 'speed' (faster) or 'precision' (higher quality)

Available options:
speed,
precision
keep_the_same_format
boolean
default:false

Preserve the source video's encoding specs (resolution, bitrate)

Response

Successful response

data
CreateProofreadResponse · object

Response for POST /v3/video-translations/proofreads.