> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt.
> For full documentation content in one file, see https://docs.sarvam.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# Create Dubbing Job

POST https://api.sarvam.ai/dubbing/jobs
Content-Type: application/json

## Creative Agents - Dubbing

Create a dubbing job that translates a source video or audio file into one or more Indian languages, with optional voice cloning, watermark control, and translation-style (register) control.

**Base URL:** `https://api.sarvam.ai/dubbing`.
**Auth:** send your key in the `api-subscription-key` header, not `Authorization: Bearer`.

This call only creates the job. It does not accept the media file. The response returns `data.job_id` and a short-lived signed `data.upload_url`. After that:
1. `PUT` the raw media bytes to `upload_url` with headers `Content-Type: <mime>` (e.g. `video/mp4`) and `x-ms-blob-type: BlockBlob`.
2. `POST /jobs/{job_id}/start` to begin the pipeline.

A single job dubs into every language in `target_langs`, so you don't need a separate job per language.

Reference: https://docs.sarvam.ai/api-reference/creative-agents-dubbing/create-dub

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: ''
  version: 1.0.0
paths:
  /jobs:
    post:
      operationId: create
      summary: Create Dubbing Job
      description: >-
        ## Creative Agents - Dubbing


        Create a dubbing job that translates a source video or audio file into
        one or more Indian languages, with optional voice cloning, watermark
        control, and translation-style (register) control.


        **Base URL:** `https://api.sarvam.ai/dubbing`.

        **Auth:** send your key in the `api-subscription-key` header, not
        `Authorization: Bearer`.


        This call only creates the job. It does not accept the media file. The
        response returns `data.job_id` and a short-lived signed
        `data.upload_url`. After that:

        1. `PUT` the raw media bytes to `upload_url` with headers `Content-Type:
        <mime>` (e.g. `video/mp4`) and `x-ms-blob-type: BlockBlob`.

        2. `POST /jobs/{job_id}/start` to begin the pipeline.


        A single job dubs into every language in `target_langs`, so you don't
        need a separate job per language.
      tags:
        - dubbing
      parameters:
        - name: api-subscription-key
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sarvam_Creative_API_CreateDubbingJobResponse
        '401':
          description: Unauthorized. Send a valid `api-subscription-key`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
        '422':
          description: >-
            Unprocessable Entity. The body is invalid; check enum values and
            required fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Sarvam_Creative_API_CreateDubbingJobRequest'
servers:
  - url: https://api.sarvam.ai/dubbing
    description: Creative
components:
  schemas:
    Sarvam_Creative_API_DubbingLanguage:
      type: string
      enum:
        - en-IN
        - hi-IN
        - bn-IN
        - gu-IN
        - kn-IN
        - ml-IN
        - mr-IN
        - or-IN
        - pa-IN
        - ta-IN
        - te-IN
        - as-IN
      description: >-
        Supported BCP-47 language code for dubbing. Note: Odia is `or-IN` for
        the dubbing service.
      title: Sarvam_Creative_API_DubbingLanguage
    Sarvam_Creative_API_DubbingExportOption:
      type: string
      enum:
        - video
        - audio
        - srt
      description: Format auto-produced per target language at job-creation time.
      title: Sarvam_Creative_API_DubbingExportOption
    Sarvam_Creative_API_DubbingPacePreset:
      type: string
      enum:
        - slow
        - moderate
        - normal
        - fast
      description: >-
        Speech pace preset used when `voice_cloning` is false. Defaults to
        `normal`.
      title: Sarvam_Creative_API_DubbingPacePreset
    Sarvam_Creative_API_DubbingRegister:
      type: string
      enum:
        - formal
        - common-indic
        - classic-colloquial
        - modern-colloquial
        - academic
        - auto
      description: >-
        Translation-style / tone register. Matches content tone, not topic.
        Defaults to auto-detection by genre when omitted.
      title: Sarvam_Creative_API_DubbingRegister
    Sarvam_Creative_API_CreateDubbingJobRequest:
      type: object
      properties:
        src_lang:
          $ref: '#/components/schemas/Sarvam_Creative_API_DubbingLanguage'
          description: Source language of the input media (BCP-47).
        target_langs:
          type: array
          items:
            $ref: '#/components/schemas/Sarvam_Creative_API_DubbingLanguage'
          description: >-
            One or more target languages to dub into. A single job dubs into all
            of them.
        export_options:
          type: array
          items:
            $ref: '#/components/schemas/Sarvam_Creative_API_DubbingExportOption'
          default:
            - video
          description: Which formats to auto-produce per target language.
        voice_cloning:
          type: boolean
          default: true
          description: >-
            Clone the original speaker's voice. Set `false` to use a preset
            `voice_id` instead.
        voice_id:
          type:
            - string
            - 'null'
          description: >-
            Preset (prebuilt) voice to use when `voice_cloning` is `false`.
            Single speaker only.
        pace_preset:
          oneOf:
            - $ref: '#/components/schemas/Sarvam_Creative_API_DubbingPacePreset'
            - type: 'null'
          description: Speech pace preset, used when `voice_cloning` is false.
        num_speakers:
          type:
            - integer
            - 'null'
          default: 1
          description: Number of speakers in the source audio.
        disable_watermark:
          type: boolean
          default: false
          description: Set `true` for a watermark-free export.
        register:
          oneOf:
            - $ref: '#/components/schemas/Sarvam_Creative_API_DubbingRegister'
            - type: 'null'
          description: Translation-style / tone register.
        editor_flow:
          type: boolean
          default: false
          description: >-
            Keep `false` for API integrations so exports fire automatically once
            TTS finishes. When `true`, auto-export is suppressed: the pipeline
            completes but `export-status` stays empty.
        job_name:
          type:
            - string
            - 'null'
          description: >-
            Human-readable label to identify the job later. Recommended (e.g.
            the source file's name).
      required:
        - src_lang
        - target_langs
      title: Sarvam_Creative_API_CreateDubbingJobRequest
    Sarvam_Creative_API_CreateDubbingJobData:
      type: object
      properties:
        job_id:
          type: string
          description: Unique identifier for the created dubbing job.
        upload_url:
          type:
            - string
            - 'null'
          description: >-
            Short-lived signed URL. `PUT` the raw media bytes here with headers
            `Content-Type: <mime>` and `x-ms-blob-type: BlockBlob` before
            starting the job.
        srt_upload_url:
          type:
            - string
            - 'null'
          description: Signed URL to upload a source SRT file, when applicable.
        expires_in_hours:
          type:
            - integer
            - 'null'
          description: How long the signed upload URL(s) remain valid, in hours.
        processing_started:
          type: boolean
          default: false
          description: Whether processing has already begun for this job.
        voice_cloning:
          type: boolean
          default: true
        voice_id:
          type:
            - string
            - 'null'
        pace_preset:
          type:
            - string
            - 'null'
        model_tier:
          type:
            - string
            - 'null'
          description: >-
            Echo of the requested quality tier (`plus`/`lite`), or null when the
            service default was used.
      title: Sarvam_Creative_API_CreateDubbingJobData
    Sarvam_Creative_API_CreateDubbingJobResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status, e.g. `success`.
        message:
          type: string
        data:
          $ref: '#/components/schemas/Sarvam_Creative_API_CreateDubbingJobData'
      title: Sarvam_Creative_API_CreateDubbingJobResponse
    Sarvam_Model_API_ErrorCode:
      type: string
      enum:
        - invalid_request_error
        - internal_server_error
        - unprocessable_entity_error
        - insufficient_quota_error
        - invalid_api_key_error
        - authentication_error
        - not_found_error
        - rate_limit_exceeded_error
      title: Sarvam_Model_API_ErrorCode
    Sarvam_Model_API_ErrorDetails:
      type: object
      properties:
        request_id:
          type:
            - string
            - 'null'
        message:
          type: string
          description: Message describing the error
        code:
          $ref: '#/components/schemas/Sarvam_Model_API_ErrorCode'
          description: >-
            Error code for the specific error that has occurred. Refer to the
            error code documentation for more details.
      required:
        - request_id
        - message
        - code
      title: Sarvam_Model_API_ErrorDetails
    Sarvam_Model_API_ErrorMessage:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Sarvam_Model_API_ErrorDetails'
          description: Error details
      required:
        - error
      title: Sarvam_Model_API_ErrorMessage
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-subscription-key

```

## Examples



**Request**

```json
{
  "src_lang": "en-IN",
  "target_langs": [
    "hi-IN",
    "ta-IN",
    "te-IN"
  ],
  "export_options": [
    "video",
    "audio",
    "srt"
  ],
  "voice_cloning": true,
  "num_speakers": 1,
  "disable_watermark": true,
  "register": "modern-colloquial",
  "job_name": "segment1"
}
```

**Response**

```json
{
  "status": "success",
  "message": "Upload job created successfully",
  "data": {
    "job_id": "dub_5cb7faa6",
    "upload_url": "https://api.sarvam.ai/dubbing/uploads/dub_5cb7faa6?sig=...",
    "processing_started": false,
    "voice_cloning": true
  }
}
```

**SDK Code**

```typescript
import { SarvamAIClient } from "sarvamai";

async function main() {
    const client = new SarvamAIClient({
        apiSubscriptionKey: "YOUR_API_KEY_HERE",
    });
    await client.dubbing.create({
        source_language_code: "en-IN",
        target_language_codes: [
            "hi-IN",
            "ta-IN",
            "te-IN",
        ],
        export_options: [
            "video",
            "audio",
            "srt",
        ],
        voice_cloning: true,
        num_speakers: 1,
        disable_watermark: true,
        register: "modern-colloquial",
        job_name: "segment1",
    });
}
main();

```

```python
from sarvamai import SarvamAI

client = SarvamAI(
    api_subscription_key="YOUR_API_KEY_HERE",
)

client.dubbing.create(
    source_language_code="en-IN",
    target_language_codes=[
        "hi-IN",
        "ta-IN",
        "te-IN"
    ],
    export_options=[
        "video",
        "audio",
        "srt"
    ],
    voice_cloning=True,
    num_speakers=1,
    disable_watermark=True,
    register="modern-colloquial",
    job_name="segment1",
)

```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.sarvam.ai/dubbing/jobs"

	payload := strings.NewReader("{\n  \"src_lang\": \"en-IN\",\n  \"target_langs\": [\n    \"hi-IN\",\n    \"ta-IN\",\n    \"te-IN\"\n  ],\n  \"export_options\": [\n    \"video\",\n    \"audio\",\n    \"srt\"\n  ],\n  \"voice_cloning\": true,\n  \"num_speakers\": 1,\n  \"disable_watermark\": true,\n  \"register\": \"modern-colloquial\",\n  \"job_name\": \"segment1\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("api-subscription-key", "<apiSubscriptionKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.sarvam.ai/dubbing/jobs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["api-subscription-key"] = '<apiSubscriptionKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"src_lang\": \"en-IN\",\n  \"target_langs\": [\n    \"hi-IN\",\n    \"ta-IN\",\n    \"te-IN\"\n  ],\n  \"export_options\": [\n    \"video\",\n    \"audio\",\n    \"srt\"\n  ],\n  \"voice_cloning\": true,\n  \"num_speakers\": 1,\n  \"disable_watermark\": true,\n  \"register\": \"modern-colloquial\",\n  \"job_name\": \"segment1\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.sarvam.ai/dubbing/jobs")
  .header("api-subscription-key", "<apiSubscriptionKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"src_lang\": \"en-IN\",\n  \"target_langs\": [\n    \"hi-IN\",\n    \"ta-IN\",\n    \"te-IN\"\n  ],\n  \"export_options\": [\n    \"video\",\n    \"audio\",\n    \"srt\"\n  ],\n  \"voice_cloning\": true,\n  \"num_speakers\": 1,\n  \"disable_watermark\": true,\n  \"register\": \"modern-colloquial\",\n  \"job_name\": \"segment1\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.sarvam.ai/dubbing/jobs', [
  'body' => '{
  "src_lang": "en-IN",
  "target_langs": [
    "hi-IN",
    "ta-IN",
    "te-IN"
  ],
  "export_options": [
    "video",
    "audio",
    "srt"
  ],
  "voice_cloning": true,
  "num_speakers": 1,
  "disable_watermark": true,
  "register": "modern-colloquial",
  "job_name": "segment1"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'api-subscription-key' => '<apiSubscriptionKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.sarvam.ai/dubbing/jobs");
var request = new RestRequest(Method.POST);
request.AddHeader("api-subscription-key", "<apiSubscriptionKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"src_lang\": \"en-IN\",\n  \"target_langs\": [\n    \"hi-IN\",\n    \"ta-IN\",\n    \"te-IN\"\n  ],\n  \"export_options\": [\n    \"video\",\n    \"audio\",\n    \"srt\"\n  ],\n  \"voice_cloning\": true,\n  \"num_speakers\": 1,\n  \"disable_watermark\": true,\n  \"register\": \"modern-colloquial\",\n  \"job_name\": \"segment1\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "api-subscription-key": "<apiSubscriptionKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "src_lang": "en-IN",
  "target_langs": ["hi-IN", "ta-IN", "te-IN"],
  "export_options": ["video", "audio", "srt"],
  "voice_cloning": true,
  "num_speakers": 1,
  "disable_watermark": true,
  "register": "modern-colloquial",
  "job_name": "segment1"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.sarvam.ai/dubbing/jobs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```