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

Save a session

Generate speech

Get a session

Get session download URLs

Auth Required

Links to download the generated audio of every card in a session, valid for 5 minutes. Each call is recorded in your organization's audit log.

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

Path Parameters

sessionIdstring · uuidrequired

ID of the text-to-speech session. You choose it (a UUID) on the first Save a session.

Example: 3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c

Responses

200The download links.
application/json
urlsSessionExportUrlDto[]required

A download link for every card that has audio, in reading order. Empty when no card has been generated.

Show child attributes
cardIdstring · uuidrequired

ID of the card.

Example: 8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d
urlstringrequired

Link to download the audio of the card, valid for 5 minutes. The audio is as generated, without playbackRate or volume applied.

Example: {{STORAGE_BASE_URL}}/playground/tts/8d7c6b5a/output.wav?X-Amz-Expires=300&X-Amz-Signature=…
400Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).
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 session with this ID in your organization (`Session 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
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
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/video-process/session/{sessionId}/export-urls
curl '{{API_BASE_URL}}/v1/galaxy/playground/video-process/session/3f2a9c1e-7b4d-4e8a-9c6f-1d2e3f4a5b6c/export-urls' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY'
{
  "urls": [
    {
      "cardId": "8d7c6b5a-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
      "url": "{{STORAGE_BASE_URL}}/playground/tts/8d7c6b5a/output.wav?X-Amz-Expires=300&X-Amz-Signature=…"
    }
  ]
}

Save a session to assets

Rename a session

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