SDKs
Sync Labs provides official lip sync SDK libraries for Python and TypeScript. Both SDKs wrap the Sync Labs 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 Labs 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 generation creation, send an Idempotency-Key on the first attempt and preserve it and the payload across retries. Use backoff and honor Retry-After; do not blindly retry an unkeyed create after a timeout or 5xx response. The idempotency guide includes raw HTTP examples you can use independently of your installed SDK version. See the Python SDK Guide and TypeScript SDK Guide for error handling.
For the complete list of methods, parameters, and response types, see the API Reference.

