Voice & Lip-sync API
Download OpenAPI DocumentText to speech, voice cloning, lip-sync and video processing for any clip.
Generate speech from text, clone voices from audio samples, and lip-sync videos to new speech. New here? Read Voice & Lip-sync for the whole flow.
Every request
Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.
Text to speech works in sessions of speech cards. Save the cards with Save a session, start each card with Generate speech, then poll Get a session until the card is done. Voice cloning creates a voice from samples with Clone a voice; once it is ready, use it in a speech card. Lip-sync re-times the lips in a video to new audio: Start a lip-sync, then poll Get a lip-sync job.
Work runs in the background, so every call returns straight away. Endpoints that charge credits say so on their page, with the current price; without enough credits they return 402 and nothing is created. See Credits.
List processes shows the history of all three in one list.
Lip-sync
Re-time the lips in a video to new speech, such as a dub. Pick a model, check the price, start the job and poll it until the video is ready.
- POST/v1/galaxy/playground/lip-sync/upload/presign
- GET/v1/galaxy/playground/lip-sync/models
- POST/v1/galaxy/playground/lip-sync/quote
- POST/v1/galaxy/playground/lip-sync
- GET/v1/galaxy/playground/lip-sync
- GET/v1/galaxy/playground/lip-sync/{id}
- POST/v1/galaxy/playground/lip-sync/{id}/retry
- POST/v1/galaxy/playground/lip-sync/{id}/download-url
- POST/v1/galaxy/playground/lip-sync/{id}/save-to-assets
Get a lip-sync upload URL
List lip-sync models
The lip-sync models of the vendors enabled for your organization. Use a model whose available is true as model when you price or start a lip-sync. Each model has its own price; see Start a lip-sync.
Permission: playground.lip_sync:read. An API key acts with the role of the member who created it.
Responses
200The models.
Model ID. Pass it as model.
Name of the model, with its vendor and output quality.
Vendor the model renders on.
True when your organization can use the model: a key for its vendor is set (your organization's, its parent's or the platform's).
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/galaxy/playground/lip-sync/models' \
--header 'x-api-key: YOUR_API_KEY'[
{
"value": "lipsync-2",
"label": "lipsync-2 · Sync Labs · HD",
"provider": "syncso",
"available": true
}
]Price a lip-sync
Start a lip-sync
List lip-sync jobs
Get a lip-sync job
Re-run a lip-sync
Get a lip-sync download URL
Save a lip-sync to assets
Text to speech
A session holds speech cards: each card is one piece of text, a language and a voice. Save the cards, generate each one, then read or download the audio.
- PUT/v1/galaxy/playground/video-process/session/{sessionId}
- POST/v1/galaxy/playground/tts/generate
- GET/v1/galaxy/playground/video-process/session/{sessionId}
- POST/v1/galaxy/playground/video-process/session/{sessionId}/export-urls
- POST/v1/galaxy/playground/tts/sessions/{id}/save-to-assets
- PATCH/v1/galaxy/playground/video-process/session/{sessionId}
Save a session
Generate speech
Get a session
Get session download URLs
Save a session to assets
Rename a session
Voice cloning
Create a voice from audio samples of one speaker. Once it is ready, use its provider and providerVoiceId in a speech card.
Get a voice sample upload URL
Clone a voice
List cloned voices
Get a cloned voice
Retry a voice clone
Processes
One history of every text-to-speech session, voice clone and lip-sync job in your organization, with routes to read, download, rename or delete a single clip.