Dubbing

sarvam-dubbing

$0.40 per source minute for each target language. Billed per second.

The call is Pascal’s. Send Authorization: Bearer with a Pascal key, and Pascal’s body: model, the file or the text, and params. Inside params, a Pascal name and the provider’s own name are both accepted. If both are sent and they disagree, the request is rejected. The provider’s SDK and host are not this API. The API request fee is not charged. A studio call needs a Creator plan or an API balance.

Native waveform: A media file, a source language, and at least one target language.. Live price and availability are on GET /v1/models/sarvam-dubbing.

  • editor_flow is rejected. The rate stays $0.40 per source minute for each target.
  • Odia is od or or. Both are the same. Speech stores od-IN and dubbing stores or-IN.
  • The watermark is off unless disable_watermark is false. Speakers default to detect.
  • Media must be 1 hour or less.

Parameters

FieldTypeDescription
params.target_languageRequiredstring or arrayOne code, or a list. en, hi, bn, gu, kn, ml, mr, pa, ta, te, as, or the -IN form. Odia is od or or. Both are the same, and dubbing stores or-IN. target_langs is the same field. Each language is billed.
params.source_languageRequiredstringThis model does not detect the source. auto is rejected. The same codes as the target. src_lang is the same field. The source cannot also be a target.
params.num_speakers
Default -1
integerDetects how many people are speaking. 1 to 10 picks a count. Omitted means -1. This does not change the price. A preset voice needs 1.
params.voice_cloning
Default true
booleanOn keeps each speaker. Off uses one preset voice, and then voice_id is required.
params.voice_idstringOne preset: shubh, rahul, rohan, amit, dev, ratan, manan, sumit, ritu, priya, pooja, simran, kavya, ishita, shreya. Required when voice_cloning is false.
params.disable_watermark
Default true
booleanThe watermark is off. Set false to put it on the video. Audio is never watermarked.

Example

curl https://api.pascalai.co/v1/jobs \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "sarvam-dubbing",
  "content_type": "audio/wav",
  "content_length": 64000,
  "filename": "clip.wav",
  "params": {
    "source_language": "en-IN",
    "target_language": "hi-IN"
  }
}'

curl -X PUT "$UPLOAD_URL" \
  -H "Content-Type: audio/wav" \
  --data-binary @input.wav

curl -X POST https://api.pascalai.co/v1/jobs/$JOB_ID/uploaded \
  -H "Authorization: Bearer $PASCAL_API_KEY"

curl https://api.pascalai.co/v1/jobs/$JOB_ID \
  -H "Authorization: Bearer $PASCAL_API_KEY"