Skip to main content
POST
Dub or redub a project
Starts a dub job: full re-voices every segment, changed_segments only outdated and not-dubbed ones, auto (default) picks full without a previous dub or when a full voiceover is needed. Text is voiced as written. A changed_segments dub merges unchanged clips from generateSegments without voicing or charging them again (estimateDub); if all changed segments have one, the shortest is voiced again at its speech price (minimum 1 minute). A first or full dub voices every segment. The video and outputs are rebuilt and a dub_completed version is recorded; segments edited during the dub stay outdated. When to use: after edits or voice changes, after generateSegments, or for a first dub after a skipped auto-dub: its charge opens the text. Side effects: Creates a dub job. v3 refuses a dub during a lip-sync on any channel. Cost: Spends max(1, round(s/60)) minutes (half to even), s = speech seconds voiced (every segment for full); free dubbing variants cost 0. Pass estimateDub’s total_minutes as expected_cost_minutes. A failed dub refunds its minutes, and the project’s first voiceover or merge failure also refunds its project credit (unless unlimited). Async: returns 202 and a dub Job (Location); wait with getJob wait_seconds=20 (poll hint 10 s); typically 5 min (p95 30 min). Idempotency: Idempotency-Key required; a same-key retry within 24 h returns the job’s current state; after a failed or canceled job, use a new key. Required scopes: dubbing:write, credits:spend Errors: demo_project_read_only (403), trial_project_dub_not_allowed (403), transcript_not_ready (409), voices_not_assigned (409), project_not_ready (409), dub_in_progress (409), lipsync_in_progress (409), segment_busy (409), segments_missing_translation (422), instant_clone_not_available (422), no_previous_dub (409), dub_up_to_date (409), cost_changed (409), insufficient_balance (402), too_many_concurrent_jobs (429)

Authorizations

Authorization
string
header
required

API key from Settings -> API keys, sent as Authorization: Bearer <key> (SDK environment variable RASK_API_KEY). Bound to one workspace and one acting user. Operations list the scopes they need (OpenAPI 3.1 scopes on a bearer scheme).

Scopes

dubbing:write
credits:spend

Headers

Idempotency-Key
string
required

Required. A unique key per logical request (SDKs send a bare UUIDv4; an RFC 9651 quoted string is accepted and unquoted); reuse it unchanged on retries. Kept 24 h per (workspace, acting user).

Required string length: 1 - 255
Pattern: ^[\x20-\x7E]+$

Path Parameters

project_id
string
required

Project id (from createProject or listProjects).

Maximum string length: 64

Body

application/json

Body of createDub.

expected_cost_minutes
integer<int32>
required

Cap on the minutes this request may spend (any minute pool). Send the estimate's total_minutes. A higher current price fails with 409 cost_changed and spends nothing; an equal or lower price is charged as is.

Required range: 0 <= x <= 100000
mode
enum<string>
default:auto

Dub mode.

Available options:
auto,
full,
changed_segments

Response

Accepted: Job.

Asynchronous work started through v3, and automatic follow-up work (auto-dub, on-screen auto-start, the stages of a localization run) on projects created through v3. Started by 202 responses (Location: /v3/jobs/{id}); wait with getJob wait_seconds. Finished jobs can be read for 90 days, then answer 404 job_not_found. Work started in the web app or API v2 has no job.

object
enum<string>
required

Always job.

Available options:
job
id
string
required

Job id.

workspace_id
string
required

Workspace that owns the job (and whose owner pays).

type
enum<string>
required

Job type. Open enum: new types are added over time.

  • media_import: registering uploaded or imported media (poll hint 3 s; cancelable)
  • project_processing: the project pipeline up to translation (poll hint 10 s)
  • translation: retranslating segments (poll hint 5 s)
  • segment_generation: paid voicing of chosen segments into downloadable clips (poll hint 5 s)
  • dub: dubbing or redubbing (poll hint 10 s)
  • lipsync: lip-sync (poll hint 30 s)
  • onscreen: on-screen text translation (poll hint 15 s; cancelable while queued)
  • localization: dub, lip-sync and on-screen as one run with child jobs (poll hint 15 s)
  • voice_clone: creating a voice clone (poll hint 10 s)
  • export: rendering an export (poll hint 15 s)
  • file_restore: restoring archived files (poll hint 300 s)
Available options:
media_import,
project_processing,
translation,
segment_generation,
dub,
lipsync,
onscreen,
localization,
voice_clone,
export,
file_restore
status
enum<string>
required

Job status. Monotonic: never goes backwards and never leaves a terminal state.

  • queued: accepted, not started
  • running: in progress
  • succeeded: finished; see result
  • failed: finished; see error
  • canceled: canceled, or its project was deleted (error.code = project_deleted)
Available options:
queued,
running,
succeeded,
failed,
canceled
progress
integer<int32> | null
required

0-100; null when the type has no honest progress.

Required range: 0 <= x <= 100
stage
enum<string> | null
required

Per-type stage; for a localization job, the running stage's.

Available options:
queued,
uploading,
transcribing,
separating_audio,
detecting_speakers,
matching_voices,
translating,
voicing,
merging,
downloading,
extracting_audio,
face_check,
waiting_for_worker,
rendering,
charging,
waiting_for_runner,
starting,
preparing,
checking,
publishing,
cloning,
restoring
queue_position
integer<int32> | null
required

Queue position (1 = next).

estimated_finish_at
string<date-time> | null
required

Estimated completion from the queue position and the type's typical duration (on-screen: the runner's ETA); null when terminal or unknown. An estimate, not a deadline.

overdue
boolean
required

True once the job runs past its type's overdue threshold: Rask is alerted. Keep waiting or check back later; do not start the same work again.

project_id
string | null
required

Project.

media_id
string | null
required

Media.

parent_job_id
string | null
required

The job that started this system job: the project_processing job of an auto-dub, the dub whose merge started an on-screen auto-start, the localization job of a stage, the project_processing job of a localization block, or the failed run a resumed localization job continues.

channel
enum<string>
required

Who started a job.

  • api: REST API v3
  • mcp: the Rask MCP server
  • system: automatic (auto-dub, on-screen auto-start, the stages of a localization run)
Available options:
api,
mcp,
system
params
object
required

Normalized request echo: a union on type (= Job.type).

details
object | null
required

Live per-type state.

stages
object[] | null
required

The stages of a localization job in run order; null for other types.

cost
object
required

Quoted at creation; charged turns true once the charge is committed. A localization job has no charge of its own: minutes is the sum of its stages charged and not refunded so far, charged is true once any stage is charged, refunded is true only when every charged stage was refunded, refunded_at is the latest refund. stages[].cost holds each stage; the quote is params.expected_cost_minutes.

result
object
required

Set when succeeded; a failed segment_generation job may also list clips already voiced.

error
object | null
required

Set when failed; on a canceled job only for the cancellation reason project_deleted (the project was deleted while the job ran; its work is discarded, refunded only for on-screen); instance is /v3/jobs/{id}, detail is generic. Each code's status, retry, recommendation and hint are in components.x-rask-job-errors. Codes by type: media_import source_download_failed, unsupported_media_type, media_corrupt, media_processing_failed, media_too_large (a voice sample above its limit); project_processing media_processing_failed, source_unavailable, no_audio_track, transcription_failed, no_speech_detected, audio_separation_failed, speaker_detection_failed, translation_failed, subtitle_import_rolled_back, project_processing_timeout, internal_error; translation translation_failed, translation_dispatch_failed, translation_timeout; segment_generation (cause_code) segment_generation_failed, segment_generation_timeout; localization localization_stage_failed, localization_stage_skipped (failed_stage, cause_code); dub (cause_code) dub_voiceover_failed, dub_merge_failed, dub_failed, dub_timeout; lipsync lipsync_failed, face_check_failed, no_face_detected, lipsync_rejected (cause_code), lipsync_timeout; onscreen onscreen_queue_timeout, onscreen_runner_lost, onscreen_runner_failed, onscreen_provider_unavailable, onscreen_finalize_timeout, onscreen_invalid_result, onscreen_publish_failed, onscreen_source_unavailable, onscreen_charge_failed; voice_clone voice_clone_failed, voice_clone_timeout; export export_failed; file_restore restore_failed. A failed job refunds its minutes (onscreen_charge_failed never charged). A failed localization job refunds only the failed stage, by its type's rule: succeeded stages stay charged, and skipped or unreached stages were never charged. A failed project_processing job refunds its project credit when a stage from transcription to translation failed, when it timed out and when a copy failed, but not for media_processing_failed, source_unavailable, no_audio_track or the internal_error of a new project.

created_at
string<date-time>
required

Creation time.

started_at
string<date-time> | null
required

Start time.

finished_at
string<date-time> | null
required

End time.

Path-absolute API links.