SDKs
Sync provides official lip sync SDK libraries for Python and TypeScript. Both SDKs wrap the Sync API and give you typed methods for creating generations, polling status, and retrieving results — so you can add video lip sync integration to your app in minutes.
Installation
Python
Requires Python 3.8+.
TypeScript
Requires Node.js 18+.
Authentication
Both SDKs read your API key from the SYNC_API_KEY environment variable automatically. Set it before running your code:
You can create an API key from the API Keys page in your dashboard. See the Authentication guide for more details and security best practices.
Quick Start
The example below creates a lip sync generation and polls until the result is ready.
Python
TypeScript
For a full walkthrough with error handling, see the Quickstart guide.
When should I use the SDK vs the raw API?
Use the SDK when you want typed methods, automatic authentication, and less boilerplate. Use the raw REST API when you need full control over HTTP requests, work in a language without an official SDK, or want to minimize dependencies.
Feature comparison
Both SDKs cover the full Sync API surface with equivalent functionality:
Error handling overview
Both SDKs raise typed exceptions for API errors. Wrap your calls in try/except (Python) or try/catch (TypeScript) and inspect the status code to decide how to respond:
For production systems, implement retry logic with exponential backoff for 429 and 5xx errors. See the Python SDK Guide and TypeScript SDK Guide for code examples.
For the complete list of methods, parameters, and response types, see the API Reference.

