> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reap.video/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Dubbing

> Create AI-powered voice dubbing for videos in different languages

> **For AI agents:** a documentation index is at [/llms.txt](https://docs.reap.video/llms.txt). Every page is also available as markdown, just append `.md` to the URL.

## Overview

Transform your video content with AI-powered voice dubbing. This endpoint creates natural-sounding voiceovers in different languages while preserving the original speaker's tone and emotion. Perfect for localizing content for global audiences.

## Rate Limiting

This endpoint allows **10 requests per minute per API key**. Each endpoint has its own budget, so this allowance is not shared with the rest of the API — see [Rate limiting](https://docs.reap.video/api-reference/2_authentication.md#rate-limiting).

> [!NOTE]
>
> Use the [Get Dubbing Languages](https://docs.reap.video/api-reference/get-dubbing-languages.md) endpoint to retrieve all supported language codes.

## Video Requirements

> [card] Duration
>
> **Minimum:** 3 seconds\
> **Maximum:** 10 minutes

> [card] File Size
>
> **Maximum:** 2 GB

> [card] Format
>
> MP4 or MOV with clear audio

> [card] Content Type
>
> Works best with clear speech and dialogue

## Plan Limits

| Plan | Concurrent Projects |
| - | - |
| Creator | 3 |
| Studio | 10 |

Higher-tier plans allow you to process more videos simultaneously.

> [!NOTE]
>
> The Automation API requires an active subscription. [View pricing](https://reap.video/pricing) to compare plans.

## Response

**id** `string`

Unique project identifier

**title** `string`

Project title (usually the filename)

**thumbnail** `string`

URL to the project thumbnail image

**billedDuration** `number`

Minutes billed for this project: the processed part, rounded to the nearest minute (at least 1)

**status** `string`

Current processing status ("processing", "completed", "failed")

**projectType** `string`

Type of project ("dubbing")

**source** `string`

Source of the original video ("Upload")

**language** `string`

Source language of the original video

**dubbingLanguage** `string`

Target language for dubbing

**metadata** `object`

Video metadata including duration, resolution, format, etc.

**urls** `object`

Object containing project URLs and assets

**createdAt** `integer`

Unix timestamp when the project was created

**updatedAt** `integer`

Unix timestamp when the project was last updated

## Example Request

```bash cURL theme={"system"}
curl -X POST "https://public.reap.video/api/v1/automation/create-dubbing" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "uploadId": "65f1a2b3c4d5e6f7a8b9c0d1",
    "sourceLanguage": "en-US",
    "targetLanguage": "es-MX"
  }'
```

```javascript JavaScript theme={"system"}
const response = await fetch('https://public.reap.video/api/v1/automation/create-dubbing', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    uploadId: '65f1a2b3c4d5e6f7a8b9c0d1',
    sourceLanguage: 'en-US',
    targetLanguage: 'es-MX'
  })
});

const project = await response.json();
console.log('Dubbing project created:', project.id);
console.log('Status:', project.status);
```

```python Python theme={"system"}
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}

data = {
    'uploadId': '65f1a2b3c4d5e6f7a8b9c0d1',
    'sourceLanguage': 'en-US',
    'targetLanguage': 'es-MX'
}

response = requests.post(
    'https://public.reap.video/api/v1/automation/create-dubbing',
    headers=headers,
    json=data
)

project = response.json()
print(f"Dubbing project created: {project['id']}")
print(f"Status: {project['status']}")
```

```php PHP theme={"system"}
<?php
$ch = curl_init('https://public.reap.video/api/v1/automation/create-dubbing');
$data = [
    'uploadId' => '65f1a2b3c4d5e6f7a8b9c0d1',
    'sourceLanguage' => 'en-US',
    'targetLanguage' => 'es-MX'
];
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_KEY',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$project = json_decode($response, true);
echo 'Dubbing project created: ' . $project['id'] . "\n";
echo 'Status: ' . $project['status'] . "\n";
?>
```

```go Go theme={"system"}
package main
import (
    "bytes"
    "encoding/json"
    "fmt"
    "io/ioutil"
    "net/http"
)
func main() {
    url := "https://public.reap.video/api/v1/automation/create-dubbing"
    data := map[string]interface{}{
        "uploadId": "65f1a2b3c4d5e6f7a8b9c0d1",
        "sourceLanguage": "en-US",
        "targetLanguage": "es-MX",
    }
    payload, _ := json.Marshal(data)
    req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))
    req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
    req.Header.Set("Content-Type", "application/json")
    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```java Java theme={"system"}
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
public class CreateDubbingExample {
    public static void main(String[] args) throws Exception {
        URL url = new URL("https://public.reap.video/api/v1/automation/create-dubbing");
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("POST");
        conn.setRequestProperty("Authorization", "Bearer YOUR_API_KEY");
        conn.setRequestProperty("Content-Type", "application/json");
        conn.setDoOutput(true);
        String jsonInputString = "{" +
            "\"uploadId\": \"65f1a2b3c4d5e6f7a8b9c0d1\"," +
            "\"sourceLanguage\": \"en-US\"," +
            "\"targetLanguage\": \"es-MX\"}";
        try(OutputStream os = conn.getOutputStream()) {
            byte[] input = jsonInputString.getBytes("utf-8");
            os.write(input, 0, input.length);
        }
        BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), "utf-8"));
        StringBuilder response = new StringBuilder();
        String responseLine;
        while ((responseLine = br.readLine()) != null) {
            response.append(responseLine.trim());
        }
        System.out.println("Dubbing project: " + response.toString());
    }
}
```

## Example Response

**200 OK**

```json theme={"system"}
{
  "id": "65f1a2b3c4d5e6f7a8b9c0d1",
  "title": "presentation.mp4",
  "thumbnail": "https://cdn.reap.video/thumbnails/65f1a2b3c4d5e6f7a8b9c0d1.jpg",
  "billedDuration": 8,
  "status": "processing",
  "projectType": "dubbing",
  "source": "Upload",
  "genre": "talking",
  "topics": [],
  "clipDurations": [],
  "selectedStart": 0,
  "selectedEnd": 450.5,
  "exportResolution": 720,
  "exportOrientation": "landscape",
  "captionsPreset": null,
  "enableCaptions": false,
  "enableEmojis": false,
  "enableHighlights": false,
  "language": "en-US",
  "dubbingLanguage": "es-MX",
  "translateTranscription": false,
  "translationLanguages": [],
  "transcriptionScript": "native",
  "metadata": {
    "duration": 450.5,
    "width": 1920,
    "height": 1080,
    "fps": 30,
    "format": "mp4",
    "size": 89234567,
    "bitrate": 1500000
  },
  "urls": {
    "videoFile": "https://storage.reap.video/studios/65cf.../videos/65f1.../video.mp4?X-Amz-Signature=...",
    "audioFile": "https://storage.reap.video/studios/65cf.../videos/65f1.../audio.mp3?X-Amz-Signature=...",
    "transcription": "https://storage.reap.video/studios/65cf.../videos/65f1.../transcription.json?X-Amz-Signature=..."
  },
  "createdAt": 1710345600,
  "updatedAt": 1710345600
}
```

**400 Bad Request**

```json theme={"system"}
{
  "detail": "Missing upload ID."
}
```

**400 Invalid Source Language**

```json theme={"system"}
{
  "detail": "Invalid source language. Supported languages: en-US, es-ES, fr-FR, ..."
}
```

**400 Invalid Target Language**

```json theme={"system"}
{
  "detail": "Invalid target language. Supported languages: en-US, es-ES, fr-FR, ..."
}
```

**404 Not Found**

```json theme={"system"}
{
  "detail": "Upload not found."
}
```

**401 Unauthorized**

```json theme={"system"}
{
  "detail": "Unauthorized - Invalid or missing API key"
}
```

**429 Too Many Requests**

```json theme={"system"}
{
  "detail": "Maximum concurrent projects reached. Please wait for the current projects to complete."
}
```

**500 Internal Server Error**

```json theme={"system"}
{
  "detail": "Failed to create project. Please contact support."
}
```

## Processing Workflow

**1. Audio Extraction**

Extract and analyze the audio track from your video

**2. Speech Recognition**

Transcribe the original speech with precise timing

**3. Language Translation**

Translate the transcription to the target language

**4. Voice Synthesis**

Generate natural-sounding speech in the target language

**5. Audio Synchronization**

Sync the new audio with the original video timing

**6. Final Rendering**

Combine dubbed audio with original video

## Language Pair Quality

Different language pairs have varying quality levels:

> [card] Premium Quality
>
> **English ↔ Spanish, French, German, Portuguese**\
> Highest quality voice models and cultural adaptation

> [card] High Quality
>
> **English ↔ Italian, Dutch, Japanese, Korean**\
> Excellent voice quality with good cultural nuances

> [card] Good Quality
>
> **English ↔ Chinese, Arabic, Hindi, Russian**\
> Good voice quality, suitable for most content types

> [card] Standard Quality
>
> **Other language pairs**\
> Standard quality, continuously improving

## Monitoring Progress

Monitor the dubbing project using these endpoints:

1. **[Get Project Status](https://docs.reap.video/api-reference/get-project-status.md)** - Quick status check
2. **[Get Project Details](https://docs.reap.video/api-reference/get-project-details.md)** - Full project information
3. **[Get Project Clips](https://docs.reap.video/api-reference/get-project-clips.md)** - Retrieve finished dubbed video

## Best Practices

> [!TIP]
>
> **Dubbing Optimization Tips:**
>
> * Use high-quality source audio for better results
> * Choose appropriate regional language variants for your target audience
> * Test with shorter clips first to evaluate voice quality
> * Consider the cultural context of your target language
> * Ensure clear speech in the original video for best results

## Common Use Cases

> [card] Global Content Platforms
>
> Automatically localize content libraries for international audiences

> [card] E-Learning Providers
>
> Scale course content to new markets without re-recording

> [card] Enterprise Communications
>
> Dub internal videos for multinational teams

> [card] Media Localization Services
>
> Offer AI dubbing as a service to your clients

## Next Steps

After creating a dubbing project:

1. Monitor progress with [Get Project Status](https://docs.reap.video/api-reference/get-project-status.md)
2. Retrieve the dubbed video with [Get Project Clips](https://docs.reap.video/api-reference/get-project-clips.md)
3. Use the dubbed content in your applications or download for distribution


## OpenAPI

````yaml POST /automation/create-dubbing
openapi: 3.1.0
info:
  title: Reap Automation API
  description: AI-powered video processing automation API
  version: 1.0.0
servers:
  - url: https://public.reap.video/api/v1
security:
  - bearerAuth: []
paths:
  /automation/create-dubbing:
    post:
      summary: Create Dubbing
      description: Create AI-powered voice dubbing for videos in different languages
      operationId: createDubbing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDubbingRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationProject'
components:
  schemas:
    CreateDubbingRequest:
      type: object
      required:
        - uploadId
        - sourceLanguage
        - targetLanguage
      properties:
        uploadId:
          type: string
          description: Upload ID from a previously uploaded file
        sourceLanguage:
          type: string
          description: Language code of the original video content (e.g. en-US, es-ES)
        targetLanguage:
          type: string
          description: Language code for the dubbing target (e.g. fr-FR, de-DE)
    AutomationProject:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        thumbnail:
          type: string
        billedDuration:
          type: number
        status:
          type: string
          enum:
            - queued
            - prepped
            - draft
            - processing
            - finalizing
            - completed
            - invalid
            - expired
            - failed
            - error
        projectType:
          type: string
          enum:
            - clipping
            - captions
            - reframe
            - dubbing
            - transcription
            - editor
        source:
          type: string
          enum:
            - Upload
            - Youtube
            - Vimeo
            - TwitchVod
            - Twitter
            - RumbleEmbed
            - Generic
        genre:
          $ref: '#/components/schemas/VideoGenre'
        topics:
          type: array
          items:
            type: string
        clipDurations:
          type: array
          items:
            type: array
            items:
              type: integer
        selectedStart:
          type: number
          nullable: true
          minimum: 0
        selectedEnd:
          type: number
          nullable: true
          minimum: 0
        exportResolution:
          type: integer
        exportOrientation:
          $ref: '#/components/schemas/VideoOrientation'
        captionsPreset:
          type: string
          nullable: true
        enableCaptions:
          type: boolean
        enableEmojis:
          type: boolean
        enableHighlights:
          type: boolean
        language:
          type: string
          nullable: true
        dubbingLanguage:
          type: string
          nullable: true
        translateTranscription:
          type: boolean
        translationLanguages:
          type: array
          items:
            type: string
        transcriptionScript:
          $ref: '#/components/schemas/TranscriptionScript'
        metadata:
          $ref: '#/components/schemas/VideoFileMeta'
        urls:
          $ref: '#/components/schemas/ProjectUrls'
        createdAt:
          type: integer
        updatedAt:
          type: integer
    VideoGenre:
      type: string
      enum:
        - talking
        - screenshare
        - gaming
      default: talking
    VideoOrientation:
      type: string
      enum:
        - landscape
        - portrait
        - square
    TranscriptionScript:
      type: string
      enum:
        - native
        - roman
      default: native
    VideoFileMeta:
      type: object
      properties:
        width:
          type: integer
        height:
          type: integer
        aspectRatio:
          type: string
        size:
          type: number
        bitrate:
          type: number
        fps:
          type: number
        duration:
          type: number
        rotation:
          type: integer
        resolution:
          type: integer
        codec:
          type: string
        codecFullName:
          type: string
        codecTag:
          type: string
        format:
          type: string
        formatFullName:
          type: string
    ProjectUrls:
      type: object
      description: >-
        Presigned URLs for the project's assets. URLs expire — always use the
        most recent API response. The transcription_* subtitle/text exports are
        only present on transcription projects.
      properties:
        videoFile:
          type: string
          description: Presigned URL of the processed source video
        audioFile:
          type: string
          description: Presigned URL of the extracted audio track
        transcription:
          type: string
          description: >-
            Presigned URL of the word-level transcript JSON (the translated
            version when translation ran). Lets API consumers audit content
            without video playback.
        transcription_srt:
          type: string
          description: SRT subtitles — transcription projects only
        transcription_vtt:
          type: string
          description: WebVTT subtitles — transcription projects only
        transcription_csv:
          type: string
          description: CSV transcript — transcription projects only
        transcription_txt:
          type: string
          description: Plain-text transcript — transcription projects only
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.