Authentication

API keys are used to authenticate your requests to the Sync API. You can create an API key in the API Keys page.

All API requests must include an API key in the x-api-key header.

$x-api-key: your-api-key

Sample Request

You can run the following sample request to generate a lipsynced video rightaway. Be sure to replace <apiKey> with your actual API key.

$curl -X POST https://api.sync.so/v2/generate \
> -H "x-api-key: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "model": "lipsync-2",
> "input": [
> {
> "type": "video",
> "url": "https://assets.sync.so/docs/example-video.mp4"
> },
> {
> "type": "audio",
> "url": "https://assets.sync.so/docs/example-audio.wav"
> }
> ]
>}'