Translations
Translation jobs convert an existing transcript into a selected target language while preserving segment ids and timestamps. You do not send transcript segments in the request body — the worker loads the active transcript for the canvas cut.
Create: start translation with POST /v1/translate after creating a canvas and a named version (Create a canvas version). Send canvasId, canvasVersionId (omit = latest cut), and required canvasVideoId from the pool. That POST writes the result onto the canvas. Pass overwrite: true to replace the current result instead of adding another. Poll GET /v1/jobs/:jobId, then use the endpoints below for the stored result. Pass targetLanguage on the generate body.
The Translation object
- translationIdstring
- Stable translation identifier (trl_…).
- jobIdstring
- Translation job that generated this record.
- workspaceIdstring
- Owning workspace.
- projectIdstring
- Owning project.
- transcriptionIdstring
- Source transcript used for translation.
- transcriptionJobIdstring | null, optional
- Original transcription job id for the source transcript when available.
- sourceLanguagestring
- Source language code used for translation. May be auto when source language was inferred.
- targetLanguagestring
- Requested target language code, for example ta, es, ja, or en-US.
- languageKeystring
- Normalized target language key used for lookup and transcript cache storage.
- sourceLayerstring
- Transcript layer used as translation input:
current,glossary, orraw. - textstring
- Full translated plain text generated by joining translated segments.
- segmentsarray
- Full translated segment array stored in the Translation collection. Speaker and voice metadata are copied from the source transcript when available so dubbing can reuse them.
- segments[].idstring
- Original source segment id. Usually matches the transcription segment id, for example seg_0.
- segments[].startnumber
- Original source segment start time in seconds. Used for subtitle alignment.
- segments[].endnumber
- Original source segment end time in seconds. Used for subtitle alignment.
- segments[].textstring
- Translated segment text shown in the UI. This is the primary translated text field consumers should display.
- segments[].sourceTextstring
- Original source segment text used as input for this translation segment.
- segments[].translatedTextstring
- Translated text returned by the translation engine. This currently mirrors text and is retained with quality metadata.
- segments[].speakerstring | null, optional
- Speaker label copied from the source transcript segment when available, for example SPEAKER_00.
- segments[].voiceIdstring | null, optional
- Perchat voice ID copied from the source transcript segment when available.
- segments[].translationQualitystring
- Translation quality label generated by the translation service, for example good or needs_review.
- segments[].translationReasonstring
- Optional explanation for the translation quality result. Empty string means no issue was reported.
- segments[].timingRiskboolean
- True when the translated text may be too long for the original segment duration.
- segments[].durationSecnumber | null, optional
- Segment duration in seconds, normally calculated from end - start.
- segments[].maxSpeakableCharsnumber | null, optional
- Estimated maximum characters that can be comfortably spoken within the original duration.
- segments[].translatedCharCountnumber | null, optional
- Character count of the translated segment text.
- segments[].wordsarray, optional
- Source word-level timing copied from the transcript when available. These are source words and timings, not translated word timings.
- segments[].words[].wordstring
- Source word text from the transcript word timing array.
- segments[].words[].startnumber
- Source word start time in seconds.
- segments[].words[].endnumber
- Source word end time in seconds.
- segments[].words[].scorenumber
- Source word confidence score when available from transcription.
- segments[].words[].speakerstring | null, optional
- Speaker label copied from the source word timing when available.
- srtstring
- Generated SubRip subtitle output for the translated text.
- vttstring
- Generated WebVTT subtitle output for the translated text.
- textPreviewstring
- Short preview of the translated text.
- segmentCountinteger
- Number of translated segments.
- durationSecnumber | null, optional
- Duration from the final translated segment end time.
- translationBackendstring
- Translation backend used by the worker. Currently openai.
- modelstring | null, optional
- Model used by the translation backend, for example gpt-4o.
- vendorUsageobject | null, optional
- Provider usage metadata captured from the translation provider response.
- vendorUsage.providerstring
- Provider used for translation, currently openai.
- vendorUsage.modelstring
- Model reported for provider usage.
- vendorUsage.inputTokensinteger
- Total input/prompt tokens consumed.
- vendorUsage.outputTokensinteger
- Total output/completion tokens generated.
- vendorUsage.requestCountinteger
- Number of provider requests made by the translation service.
- vendorUsage.segmentCountinteger
- Number of translated segments processed.
- vendorUsage.rateUsdPerMInputTokensnumber | null, optional
- Input token rate if enriched by platform billing metadata. Currently null from the translation worker.
- vendorUsage.rateUsdPerMOutputTokensnumber | null, optional
- Output token rate if enriched by platform billing metadata. Currently null from the translation worker.
- vendorUsage.estimatedCostUsdnumber | null, optional
- Estimated cost if calculated by platform billing metadata. Currently null from the translation worker.
- createdAttimestamp
- Record creation time.
- updatedAttimestamp
- Last update time.
List translations for a transcript
/v1/transcriptions/{transcriptionId}/translationsRequires permission
translation:read
Parameters
- transcriptionIdstring
- Transcript id.
Returns
See the the translation object for attribute details.
Get translated segments for a language
/v1/transcriptions/{transcriptionId}/translations/{targetLanguage}Requires permission
translation:read
Parameters
- transcriptionIdstring
- Transcript id.
- targetLanguagestring
- Target language or locale, for example ta or ta-IN.
Returns
See the the translation object for attribute details.
Update translated segment text
/v1/transcriptions/{transcriptionId}/translations/{targetLanguage}/segmentsTranslation record.Requires permission
translation:update
Parameters
- transcriptionIdstring
- Transcript id.
- targetLanguagestring
- Target language to edit.
- updates[].segmentIdstring
- Translated segment id.
- updates[].textstring
- New translated text. Cannot be empty.
Returns
See the the translation object for attribute details.
Create a translated segment
/v1/transcriptions/{transcriptionId}/translations/{targetLanguage}/segmentsRequires permission
translation:update
Parameters
- transcriptionIdstring
- Transcript id.
- targetLanguagestring
- Target language to edit.
- textstring
- Translated segment text.
- startnumber
- Segment start in seconds.
- endnumber
- Segment end in seconds; must be greater than start.
Returns
See the the translation object for attribute details.
Delete a translated segment
/v1/transcriptions/{transcriptionId}/translations/{targetLanguage}/segments/{segmentId}Requires permission
translation:update
Parameters
- transcriptionIdstring
- Transcript id.
- targetLanguagestring
- Target language.
- segmentIdstring
- Translated segment id.
Returns
See the the translation object for attribute details.
Retrieve a full Translation record
/v1/translations/{translationId}Requires permission
translation:read
Parameters
- translationIdstring
- Translation id.
Returns
See the the translation object for attribute details.