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.
Requires Python 3.8+.
Requires Node.js 18+.
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.
The example below creates a lip sync generation and polls until the result is ready.
For a full walkthrough with error handling, see the Quickstart guide.
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.
Both SDKs cover the full Sync Labs API surface with equivalent functionality:
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.