翻篇收录说明
翻篇网页快照

Synthesia API and Developer Platform

https://developers.synthesia.io/

最近抓取:2026-12-03 23:05:01(北京时间)

最近内容变化:2026-12-01 11:04:55(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

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

正文摘录

Synthesia's AI video engine, available programmaticallyEmbed interactive avatars directly in your product, dub at scale, and generate video from your own data.Get started Read the docsDemoCodeGive your agent a face that listens and respondsStart a session and the avatar joins your LiveKit room, ready to talk. Pick a card to try one. Read the docs coming soonEmotional RollercoasterAsk me to act angry, sad, or thrilledAI AdvisorAsk me how to use AI in your daily workflowPractice giving feedbackRole-play a tough performance review with meSales ConciergeAsk me anything about building videos in SynthesiaPlay a GameGuess which animal I'm thinking ofSpace AlienDiscover the Solar System 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 JavaScriptCopyawait 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 haveSend a video URL and get it back in other languages, in the speaker's own voice, lip-synced. Read the docs OriginalGermanFrenchSpanish OriginalGermanFrenchSpanish OriginalGermanFrenchSpanish JavaScriptCopyawait 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 dataSend a script and an avatar, take the webhook, and download the .mp4. Read the docs Rendered by the request in the Code view.JavaScriptCopyawait 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 identifiersCheck for C2PA Content Credentials and look for an invisible watermark if the credentials cannot be verified. Read the docs Node.jsCopy// 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); } Interactive AvatarsLocalizationVideo creationVideo VerificationLet your coding agent handle integrationInstall the Synthesia skill and your agent scaffolds the LiveKit agent, the API keys, and the room setup.$ npx skills add synthesia-interactive-avatarCopyThen just ask"Add an interactive avatar to our real-time support bot." Skill scaffolds agent.py, token server, and embeds in minutes