> 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.

# Start Job

POST https://api.sarvam.ai/dubbing/jobs/{job_id}/start

Start a dubbing job once the media file has been uploaded to the signed `upload_url` returned by `POST /jobs`. The job status then moves from `queued` to `in_progress`, and finally to `completed` or `failed`.

Keep `editor_flow` set to `false` (the default) when creating the job so exports auto-produce once the pipeline finishes.

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: ''
  version: 1.0.0
paths:
  /jobs/{job_id}/start:
    post:
      operationId: start
      summary: Start Dubbing Job
      description: >-
        Start a dubbing job once the media file has been uploaded to the signed
        `upload_url` returned by `POST /jobs`. The job status then moves from
        `queued` to `in_progress`, and finally to `completed` or `failed`.


        Keep `editor_flow` set to `false` (the default) when creating the job so
        exports auto-produce once the pipeline finishes.
      tags:
        - dubbing
      parameters:
        - name: job_id
          in: path
          description: The `job_id` returned by `POST /jobs`.
          required: true
          schema:
            type: string
        - 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_DubbingStartResponse'
        '401':
          description: Unauthorized. Send a valid `api-subscription-key`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sarvam_Model_API_ErrorMessage'
        '422':
          description: Unprocessable Entity
          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'
servers:
  - url: https://api.sarvam.ai/dubbing
    description: Creative
components:
  schemas:
    Sarvam_Creative_API_DubbingStartData:
      type: object
      properties:
        job_id:
          type: string
        status:
          type: string
          description: Job status after starting, e.g. `processing`.
        task_id:
          type:
            - string
            - 'null'
          description: Identifier of the submitted pipeline task.
      title: Sarvam_Creative_API_DubbingStartData
    Sarvam_Creative_API_DubbingStartResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status, e.g. `success`.
        message:
          type: string
          description: Human-readable confirmation that the dubbing pipeline has started.
        data:
          $ref: '#/components/schemas/Sarvam_Creative_API_DubbingStartData'
      title: Sarvam_Creative_API_DubbingStartResponse
    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



**Response**

```json
{
  "status": "success",
  "message": "Dubbing started successfully",
  "data": {
    "job_id": "dub_5cb7faa6",
    "status": "processing",
    "task_id": "task_9f3b21c7"
  }
}
```

**SDK Code**

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

async function main() {
    const client = new SarvamAIClient({
        apiSubscriptionKey: "YOUR_API_KEY_HERE",
    });
    await client.dubbing.start("dub_5cb7faa6");
}
main();

```

```python
from sarvamai import SarvamAI

client = SarvamAI(
    api_subscription_key="YOUR_API_KEY_HERE",
)

client.dubbing.start(
    job_id="dub_5cb7faa6",
)

```

```go
package main

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

func main() {

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

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

	req.Header.Add("api-subscription-key", "<apiSubscriptionKey>")

	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/dub_5cb7faa6/start")

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

request = Net::HTTP::Post.new(url)
request["api-subscription-key"] = '<apiSubscriptionKey>'

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/dub_5cb7faa6/start")
  .header("api-subscription-key", "<apiSubscriptionKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.sarvam.ai/dubbing/jobs/dub_5cb7faa6/start', [
  'headers' => [
    'api-subscription-key' => '<apiSubscriptionKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.sarvam.ai/dubbing/jobs/dub_5cb7faa6/start");
var request = new RestRequest(Method.POST);
request.AddHeader("api-subscription-key", "<apiSubscriptionKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["api-subscription-key": "<apiSubscriptionKey>"]

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

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()
```