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
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
Create or update a text-to-speech session and its speech cards. The first call with a new sessionId (a UUID you choose) creates the session. Each card has a UUID you choose; send the whole list of cards every time, in reading order. A card must be saved before you can generate its speech. Saving is free, but changing the text, language or voice of a COMPLETED card clears its audio, and generating it again is charged again. A card that is generating keeps its text and is not deleted by a save. Returns the session as saved, with its new revision: pass it as baseRevision next time.
Permission: playground.tts:update. An API key acts with the role of the member who created it.
Path Parameters
ID of the text-to-speech session. You choose it (a UUID) on the first Save a session.
Bodyrequiredapplication/json
Every card of the session, in reading order. New IDs create cards; known IDs update them. Changing the text, language or voice of a COMPLETED card clears its audio. Cards left out are deleted only when you send baseRevision, and a card that is generating is never deleted or re-worded by a save.
Show child attributes
A UUID you create for the card. Keep it: you pass it as cardId to Generate speech, and send it again on later saves.
Name of the card (the clip).
Text the card speaks, up to 5,000 characters.
BCP-47 code of the speech, such as hi-IN.
The voice the card speaks with.
Show child attributes
Provider the voice belongs to.
The provider's voice ID (for a cloned voice, its providerVoiceId).
Display name of the voice.
Gender of the voice.
Type of the voice, for display.
Tone of delivery. Default Neutral.
Pronunciation rules for this card, up to 100: each match in the text is spoken as its alias.
Show child attributes
Text to look for in the card, up to 200 characters.
What to say instead, up to 200 characters.
Playback speed, from 0.5 to 2 (default 1). Applied when the clip is saved to assets; it does not change the generated audio, so changing it costs nothing.
Volume, from 0 to 1.5 (default 1). Applied when the clip is saved to assets, like playbackRate.
Name of the session. Default Untitled.
ElevenLabs tuning per voice, keyed <provider>:<voiceId>: voiceConsistency (0, 0.5 or 1), voiceMatch (0 to 1), styleEmphasis (0 to 1) and enhancedVoiceMatch (boolean). Every card that uses the voice shares it. Values out of range are adjusted.
The revision of the session you last read or saved. The save applies only if the session is still at that revision; otherwise it returns 409 with the current session. Send it on every save after the first; without it, no card is ever deleted.
Responses
200The session as saved.
Session ID for text to speech; the clip ID for a voice clone or lip-sync.
True for a text-to-speech session.
Name of the session or job.
What kind of process it is.
Overall status: RUNNING if any clip is, else FAILED if any failed, else COMPLETED if any is done, else TERMINATED if any was stopped, else DRAFT.
Number of clips.
For a session, when it was last changed; otherwise when the job was created.
The clips: the cards of a session in reading order, or the one clip of a job.
Show child attributes
ID of the clip: the card ID for text to speech, the process ID for a voice clone or lip-sync.
What produced the clip.
Name of the clip.
DRAFT (saved, not generated yet), RUNNING, COMPLETED, FAILED or TERMINATED (stopped by the user). A clip stuck in RUNNING far past its time limit is reported as FAILED.
When the clip was created.
BCP-47 code of the clip.
Length of the generated audio or video in seconds.
For a voice clone or lip-sync: the ID of the cloned voice or lip-sync job. Null for text to speech.
For text to speech, the card as saved: text, voice, emotion, pronunciations, playbackRate and volume. For a voice clone or lip-sync, internal details that may change; do not depend on them.
Short-lived link (about 15 minutes) to play the generated audio or video, when status is COMPLETED. To download, use a download URL route.
Text to speech only. none: never saved to assets. current: saved and matches the current audio. stale: saved, but generated again since.
Text to speech only. How many versions were saved to assets (0 = never).
BCP-47 code shared by every clip; null when they differ.
Total length of the clips in seconds.
Text to speech only. ElevenLabs tuning per voice, keyed <provider>:<voiceId>: voiceConsistency (0, 0.5 or 1), voiceMatch (0 to 1), styleEmphasis (0 to 1) and enhancedVoiceMatch (boolean). Every card that uses the voice shares it. Values out of range are adjusted.
Text to speech only. The revision of the session; send it as baseRevision on your next save.
Members assigned to the process. Only in List processes.
Show child attributes
Member ID.
Name of the member.
Profile picture URL of the member.
400A field failed validation, for example a card `id` that is not a UUID, a name over 255 characters or a card text over 5,000 characters.
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.
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.
404The resource does not exist, or you cannot see it.
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.
409The session changed since `baseRevision` (another save landed first). Nothing was saved. The body carries the current `session`: apply your changes to it and save again with its `revision`.
HTTP status code.
Always Conflict.
Always TTS_SESSION_STALE.
What happened.
The session as it is now. Apply your changes to it and save again with its revision.
Show child attributes
Session ID for text to speech; the clip ID for a voice clone or lip-sync.
True for a text-to-speech session.
Name of the session or job.
What kind of process it is.
Overall status: RUNNING if any clip is, else FAILED if any failed, else COMPLETED if any is done, else TERMINATED if any was stopped, else DRAFT.
Number of clips.
For a session, when it was last changed; otherwise when the job was created.
The clips: the cards of a session in reading order, or the one clip of a job.
Show child attributes
ID of the clip: the card ID for text to speech, the process ID for a voice clone or lip-sync.
What produced the clip.
Name of the clip.
DRAFT (saved, not generated yet), RUNNING, COMPLETED, FAILED or TERMINATED (stopped by the user). A clip stuck in RUNNING far past its time limit is reported as FAILED.
When the clip was created.
BCP-47 code of the clip.
Length of the generated audio or video in seconds.
For a voice clone or lip-sync: the ID of the cloned voice or lip-sync job. Null for text to speech.
For text to speech, the card as saved: text, voice, emotion, pronunciations, playbackRate and volume. For a voice clone or lip-sync, internal details that may change; do not depend on them.
Short-lived link (about 15 minutes) to play the generated audio or video, when status is COMPLETED. To download, use a download URL route.
Text to speech only. none: never saved to assets. current: saved and matches the current audio. stale: saved, but generated again since.
Text to speech only. How many versions were saved to assets (0 = never).
BCP-47 code shared by every clip; null when they differ.
Total length of the clips in seconds.
Text to speech only. ElevenLabs tuning per voice, keyed <provider>:<voiceId>: voiceConsistency (0, 0.5 or 1), voiceMatch (0 to 1), styleEmphasis (0 to 1) and enhancedVoiceMatch (boolean). Every card that uses the voice shares it. Values out of range are adjusted.
Text to speech only. The revision of the session; send it as baseRevision on your next save.
Members assigned to the process. Only in List processes.
Show child attributes
Member ID.
Name of the member.
Profile picture URL of the member.
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/video-process/session/3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c' \
--request PUT \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "Product update narration",
"cards": [
{
"id": "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
"name": "Intro",
"text": "Welcome to our quarterly product update.",
"language": "hi-IN",
"voice": {
"provider": "elevenlabs",
"voiceId": "JBFqnCBsd6RMkjVDRZzb",
"name": "George",
"gender": "male",
"voiceType": "premade"
},
"emotion": "Neutral",
"pronunciations": [
{
"match": "Vitra",
"alias": "Veetra"
}
],
"playbackRate": 1,
"volume": 1
}
],
"voiceSettings": {
"elevenlabs:JBFqnCBsd6RMkjVDRZzb": {
"voiceConsistency": 0.5,
"voiceMatch": 0.75,
"styleEmphasis": 0,
"enhancedVoiceMatch": true
}
},
"baseRevision": "2026-10-04T09:30:00.123Z"
}'{
"id": "3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c",
"isSession": true,
"name": "Product update narration",
"type": "tts",
"status": "COMPLETED",
"language": "hindi_india",
"clipCount": 3,
"totalDurationSeconds": 12.6,
"createdAt": "2026-10-04T09:30:00.000Z",
"clips": [
{
"id": "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
"type": "tts",
"name": "Intro",
"status": "COMPLETED",
"language": "hi-IN",
"durationSeconds": 4.2,
"refId": null,
"metadata": {
"text": "Welcome to our quarterly product update.",
"voice": {
"provider": "elevenlabs",
"voiceId": "JBFqnCBsd6RMkjVDRZzb",
"name": "George",
"gender": "male",
"voiceType": "premade"
},
"emotion": "Neutral",
"pronunciations": [],
"playbackRate": 1,
"volume": 1
},
"outputUrl": "{{STORAGE_BASE_URL}}/playground/tts/8d7c6b5a/output.wav?X-Amz-Expires=900&X-Amz-Signature=…",
"saveState": "none",
"savedVersion": 0,
"createdAt": "2026-10-04T09:30:00.000Z"
}
],
"voiceSettings": {
"elevenlabs:JBFqnCBsd6RMkjVDRZzb": {
"voiceConsistency": 0.5,
"voiceMatch": 0.75,
"styleEmphasis": 0,
"enhancedVoiceMatch": true
}
},
"revision": "2026-10-04T09:30:00.123Z",
"assignees": [
{
"memberId": "7f6e5d4c-3b2a-4190-8f7e-6d5c4b3a2918",
"name": "Asha Rao",
"image": null
}
]
}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.