DubSync

Dub videos into another language, review required minutes, track progress, and retrieve translated results with your DubSync account.

Hosted MCP Server

npx add-mcp 'https://dubsync.me/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

From upload to dubbed media

Upload audio or video, review a quote, approve a translation, and retrieve the result. Audio produces FLAC. Video produces a dubbed MP4 with a separate FLAC download when retained. Saved subtitles are available as SRT and VTT in the translation language.

REST example ↓

A connection for your assistant

Connect an MCP client to /mcp with OAuth. Discover languages, inspect your projects, see how many minutes a translation needs, and approve it before it starts.

Import supported ChatGPT audio or video attachments up to 128 MiB with your permission. Other clients can send file bytes through the resumable HTTP API. Translation requires a separate approval.

Connection details ↓

Upload, review, approve and download

Set DUBSYNC_ORIGIN to https://dubsync.me and inject DUBSYNC_API_KEY into your server environment. The example needs uploads:write, projects:read and projects:write.

Upload a small audio or video file

Choose clip.wav with audio/wav, or clip.mp4 with video/mp4. Files can be up to 1 GB and 150 minutes. For files larger than this example’s 6 MiB, send consecutive 6 MiB chunks and a shorter final chunk.

# Requires curl and jq. Use a named, server-side API key.
# This example sends one final TUS chunk, so choose a file up to 6 MiB.
file=clip.wav
mime=audio/wav
size=$(wc -c < "$file" | tr -d ' ')
test "$size" -gt 0 && test "$size" -le 6291456 || exit 1
# Save this operation key and all returned IDs for recovery.
operation=$(uuidgen)
upload=$(curl --fail-with-body "$DUBSYNC_ORIGIN/api/public/v1/uploads" \
  -H "Authorization: Bearer $DUBSYNC_API_KEY" \
  -H "Content-Type: application/json" -H "Idempotency-Key: $operation-upload" \
  --data "$(jq -nc --arg name "$file" --arg mime "$mime" --argjson size "$size" \
    '{fileName:$name,mimeType:$mime,sizeBytes:$size}')")
asset=$(printf '%s' "$upload" | jq -r .assetId)
url=$(printf '%s' "$upload" | jq -r .uploadUrl)
curl --fail-with-body -X PATCH "$url" \
  -H "Authorization: Bearer $DUBSYNC_API_KEY" -H "Tus-Resumable: 1.0.0" \
  -H "Upload-Offset: 0" -H "Content-Type: application/offset+octet-stream" \
  --data-binary "@$file"
curl --fail-with-body "$url/complete" \
  -H "Authorization: Bearer $DUBSYNC_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $operation-complete" --data '{"protocol":"tus"}'

If completion returns 202 with preparing:true, wait and repeat the same completion request with the same key. After an interrupted PATCH, use HEAD on the upload URL to read Upload-Offset and resume there. Keep every request’s input and key unchanged on retry.

Review the required paid minutes

# Continue once completion returns preparing:false.
curl --fail-with-body "$DUBSYNC_ORIGIN/api/public/v1/quotes" \
  -H "Authorization: Bearer $DUBSYNC_API_KEY" -H "Content-Type: application/json" \
  --data "$(jq -nc --arg asset "$asset" '{sourceAssetId:$asset,targetLanguage:"es"}')"

Show full.requiredSeconds as minutes and seconds. A positive full.deficitSeconds means the account needs more paid minutes before translation.

Start after approval and retrieve the files

# Run only after the user approves this source, Spanish translation,
# AI processing, quoted paid minutes, and content and speaker rights.
printf 'Type TRANSLATE after reviewing the quote and confirming rights: '
IFS= read -r confirmation
test "$confirmation" = TRANSLATE || exit 1
created=$(curl --fail-with-body "$DUBSYNC_ORIGIN/api/public/v1/projects" \
  -H "Authorization: Bearer $DUBSYNC_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $operation-translate" \
  --data "$(jq -nc --arg asset "$asset" \
    '{sourceAssetId:$asset,targetLanguage:"es",consentAccepted:true}')")
project=$(printf '%s' "$created" | jq -r '.projectId|@uri')
while :; do
  status=$(curl --fail-with-body "$DUBSYNC_ORIGIN/api/public/v1/projects/$project/status" \
    -H "Authorization: Bearer $DUBSYNC_API_KEY") || exit 1
  printf '%s' "$status" | jq -e '.resultReady == true' >/dev/null && break
  if printf '%s' "$status" | jq -e \
    '.billingRequired or .recoveryRequired or .sourceUploadRequired or (.actionRequired != null) or (.error != null)' >/dev/null; then
    printf '%s' "$status" | jq '{projectUrl,error}'
    exit 1
  fi
  sleep 3
done
# Retrieve primary downloads once the result is ready.
result=$(curl --fail-with-body "$DUBSYNC_ORIGIN/api/public/v1/projects/$project/result" \
  -H "Authorization: Bearer $DUBSYNC_API_KEY")
# Use one returned export ID to read its saved SRT/VTT and FLAC link.
export_id=$(printf '%s' "$result" | jq -er '.exports[0].id')
curl --fail-with-body --get \
  "$DUBSYNC_ORIGIN/api/public/v1/projects/$project/result-files" \
  --data-urlencode "exportId=$export_id" -H "Authorization: Bearer $DUBSYNC_API_KEY"

Poll with a delay. If status requests billing, recovery or a new source upload, open its projectUrl to continue. Download links expire. Retrieve fresh links when needed, and keep private media and credentials out of public logs.

Connect over MCP

Endpoint

https://dubsync.me/mcp

Transport

Streamable HTTP with MCP 2026-07-28 and the 2025 handshake

Authorization

OAuth authorization code with PKCE (S256)

Discovery

Protected resource metadata

In a compatible ChatGPT workspace, add the MCP endpoint and select OAuth with dynamic client registration. Client availability and workspace policies apply.

Ask for a quote first. For a supported attachment, dub_import_file needs upload permission. If preparation is pending, call dub_complete_upload with the returned assetId and exact completionKey. After translation, use dub_get_project_result for primary downloads and dub_get_project_files for one export’s subtitles and original audio.

Access you can control

Keys have explicit permissions and expiry. Connected apps ask for consent. You can revoke either from Developer settings.

The API uses the paid minutes in your account. Purchases and subscription changes happen on the site.

Build from the contract

The OpenAPI document describes authentication, scopes, request bodies, upload headers, result files and error responses. Use the deployment’s own origin for API and OAuth endpoints.