This endpoint allows you to add a new video to an existing project. The video will be uploaded to the pipeline for processing.
Path Parameters
The unique identifier of the project.
Request Body
Type of video processing (e.g., ‘dubbing’, ‘voiceover’, ‘audio_description’).
Artifact ID of the original video (must be uploaded beforehand).
Source language code (e.g., ‘en’, ‘ru’).
Array of target language codes (e.g., [‘es-ES’, ‘fr-FR’]).
Artifact ID of the background audio (optional).
internationalMixWavArtifactId
Artifact ID of the international mix audio (optional).
Artifact ID of the vocals HITL audio (optional).
Additional remarks about the video (optional).
Pipeline configuration options (see below, all fields optional):- shouldAutomateTranscription: boolean
- shouldAutomateTranslation: boolean
- shouldAutomateVoiceSelection: boolean
If you automate transcription, you won’t be able to edit the generated transcription in the future. The transcription phase will be skipped, and the result of the AI’s work will be used.
curl -X POST \
https://studio.dubformer.ai/api/v1/projects/proj_5f83a14b2ec1b/videos/create \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "New Marketing Video",
"workflowType": "dubbing",
"originalVideoArtifactId": "artifact_1234567890",
"sourceLanguage": "en",
"targetLanguages": ["es-ES", "fr-FR"],
"pipelineOptions": {
"shouldAutomateTranscription": true,
"shouldAutomateTranslation": true,
"shouldAutomateVoiceSelection": false
},
"remark": "Optional comment"
}'
Response
Unique identifier of the created video.
URL to the created video resource.
Status of the video (e.g., ‘new’).
Type of the video processing (e.g., ‘dubbing’).
Array of target language codes.
Duration of the video in seconds (if available).
Additional remarks about the video (if any).
ISO timestamp of creation.
ISO timestamp of last update.
{
"id": "vid_7a92c36d4fe3c",
"videoUrl": "https://studio.dubformer.ai/api/v1/projects/proj_5f83a14b2ec1b/videos/vid_7a92c36d4fe3c",
"name": "New Marketing Video",
"status": "new",
"workflowType": "dubbing",
"srcLang": "en",
"dstLangs": ["es-ES", "fr-FR"],
"videoDuration": 123.45,
"remark": "Optional comment",
"createdAt": "2024-06-30T12:00:00.000Z",
"updatedAt": "2024-06-30T12:00:00.000Z"
}
{
"error": "Bad Request"
}