v1.0.0OpenAPI 3.1.1

Voice & Lip-sync API

Download OpenAPI Document

Text 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.

Server
{{API_BASE_URL}}
Your API environment
Authentication RequiredApiKeyAuth
Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys.
x-api-key:
Client Libraries
Shell

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

Auth Required

Copy the lip-synced video of a COMPLETED job into your organization's assets. Without folderId it goes to the playground/lip-sync/output folder. Every call saves a new version.

Permission: playground.lip_sync:create. An API key acts with the role of the member who created it.

Path Parameters

idstring · uuidrequired

ID of the lip-sync job.

Example: 2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a

Bodyrequiredapplication/json

folderIdstring

Drive folder to save into. Pass the organization id for the drive root ("My Drive"). Must belong to the caller’s organization and sit outside system folders (the feature’s own default folder is allowed). Omit to use the default folder.

Example: 123e4567-e89b-12d3-a456-426614174000

Responses

200The video was saved to assets.
application/json
assetIdstring · uuidrequired

ID of the new file in your assets.

Example: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
alreadySavedbooleanrequired

Always false: every save files a new version. Kept so the response shape stays the same.

Example: false
versionnumberrequired

Version number of this save. Version 1 is named <name>.mp4, later ones <name>_v2.mp4, _v3, …

Example: 1
versionedbooleanrequired

True when an earlier version is still in assets, so this save added a new version.

Example: false
400The job has no video yet (`This lip-sync has no generated video to save yet.`), or `folderId` is not a folder you can save into: a project or task folder (`Files can only be saved into folders in the organization drive`) or a system folder (`"<name>" is a system folder — files can't be saved into it`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
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.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
404No lip-sync job with this ID in your organization (`Lip-sync job not found`). Or no folder with this `folderId` (`Folder not found`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
429Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
500The video could not be read or saved (`Could not read the generated video. Please try again.`, `This video is too large to save to assets.`).
application/json
statusCodeintegerrequired

HTTP status code, repeated in the body.

Example: 404
messagestring | string[]required

What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.

Example: Booking not found
errorstring

Short name of the status.

Example: Not Found
POST/v1/galaxy/playground/lip-sync/{id}/save-to-assets
curl '{{API_BASE_URL}}/v1/galaxy/playground/lip-sync/2c4e6a8b-0d1f-4a3c-9e5b-7d9f1b3c5e7a/save-to-assets' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "folderId": "123e4567-e89b-12d3-a456-426614174000"
}'
{
  "assetId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "alreadySaved": false,
  "version": 1,
  "versioned": false
}

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.

List processes

Get a process

Get a process download URL

Rename a process

Models

CreateLipSyncMultipartDto
CreateLipSyncUploadDto
CreateStagedUploadDto
CreateVoiceCloneMultipartDto
DocumentUploadUrlResponseDto
DownloadUrlResponseDto
GenerateSpeechDto
GenerateSpeechResponseDto
InsufficientCreditsErrorDto
LipSyncQuoteDto
LipSyncQuoteResponseDto
LipSyncResponseDto
PlaygroundIdResponseDto
PlaygroundLipSyncModelOptionDto
RenameSessionResponseDto
RenameVideoSessionDto
SaveLipSyncToAssetsResponseDto
SavePlaygroundOutputToAssetsDto
SaveTtsSessionToAssetsResponseDto
SessionCardDto
SessionCardPronunciationDto
SessionCardVoiceDto
SessionExportUrlDto
SessionExportUrlsResponseDto
StaleSessionErrorDto
UpsertSessionDto
VideoProcessAssigneeDto
VideoProcessDto
VideoProcessGroupDto
VideoProcessListDto
VoiceCloneResponseDto