Synthesia's AI video engine, available programmatically

Embed interactive avatars directly in your product, dub at scale, and generate video from your own data.

Give your agent a face that listens and responds

Start a session and the avatar joins your LiveKit room, ready to talk. Pick a card to try one. Read the docs

World-class interactive avatars. In a blind test of 609 conversations against HeyGen, Tavus and Anam, Synthesia scored highest on 5 of 6 dimensions. Read how we tested

JavaScript
await fetch('https://developers.synthesia.io/api/interactive-avatars/sessions', {
  method: 'POST',
  headers: {
    Authorization: process.env.SYNTHESIA_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    avatarIds: ['av_6c9edb85a2f947e5'],
    livekitUrl: 'wss://your-app.livekit.cloud',
    livekitToken: process.env.LIVEKIT_TOKEN,
  }),
});

Dub the footage you already have

Send a video URL and get it back in other languages, in the speaker's own voice, lip-synced. Read the docs

JavaScript
await fetch('https://developers.synthesia.io/api/localizations/from-media-url', {
  method: 'POST',
  headers: {
    Authorization: process.env.SYNTHESIA_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    title: 'Product onboarding',
    mediaUrl: 'https://my-bucket.s3.amazonaws.com/onboarding.mp4',
    sourceLanguage: 'en-US',
    targetLanguages: ['es-ES', 'fr-FR'],
  }),
});

Render finished video straight from your data

Send a script and an avatar, take the webhook, and download the .mp4. Read the docs

Rendered by the request in the Code view.

JavaScript
await fetch('https://api.synthesia.io/v2/videos', {
  method: 'POST',
  headers: {
    Authorization: process.env.SYNTHESIA_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    title: 'Product launch recap',
    input: [{
      scriptText:
        'This video came from one <sub alias="A P I">API</sub> call. ' +
        '<break time="1s"/> ' +
        'Send a script and an avatar, and Synthesia renders the rest.',
      avatar: 'anna_costume1_cameraA',
      background: 'off_white',
    }],
  }),
});

Check a video for Synthesia identifiers

Check for C2PA Content Credentials and look for an invisible watermark if the credentials cannot be verified. Read the docs

Node.js
// Save as verify.mjs and run: node verify.mjs video.mp4
import { openAsBlob } from 'node:fs';
import { setTimeout } from 'node:timers/promises';

const api = 'https://api.synthesia.io/watermarking/videos';
const video = await openAsBlob(process.argv[2], { type: 'video/mp4' });

async function request(url, options) {
  const response = await fetch(url, options);
  if (!response.ok) throw new Error('Request failed: ' + response.status);
  return response;
}

const created = await request(api, {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ contentType: video.type, contentLength: video.size }),
});
const { id, accessToken, upload } = await created.json();

const form = new FormData();
for (const [key, value] of Object.entries(upload.fields)) form.append(key, value);
form.append('file', video, 'video.mp4');
await request(upload.url, { method: upload.method, body: form });

const url = api + '/' + id;
const headers = { Authorization: 'Bearer ' + accessToken };
const submitted = await request(url + '/submit', { method: 'POST', headers });
let check = await submitted.json();
while (check.state !== 'complete' && check.state !== 'failed') {
  await setTimeout(2000);
  const status = await request(url, { headers });
  check = await status.json();
}
if (check.state === 'failed') {
  console.error(check.error);
  process.exitCode = 1;
} else {
  console.log(check.result);
}

Let your coding agent handle integration

Install the Synthesia skill and your agent scaffolds the LiveKit agent, the API keys, and the room setup.

$ npx skills add synthesia-interactive-avatar

Then just ask

"Add an interactive avatar to our real-time support bot."

Skill scaffolds agent.py, token server, and embeds in minutes