# Dubly API > Create, edit and download AI-dubbed videos with the Dubly API. - [Introduction](https://docs.dubly.ai/index.md): Create, edit and download AI-dubbed videos with the Dubly API. - [Quickstart](https://docs.dubly.ai/quickstart.md): Create an API token, start your first dub and download the result. - [Authentication](https://docs.dubly.ai/authentication.md): Send your API token as a Bearer token with every request. - [Dub status lifecycle](https://docs.dubly.ai/guides/dub-status.md): What each dub status means, and how long result links stay valid. - [Errors](https://docs.dubly.ai/guides/errors.md): The error envelope and what each error code means. - [Edit limits](https://docs.dubly.ai/guides/edit-limits.md): How often the API lets you edit, update, lip-sync and subtitle a dub. - [Supported target languages](https://docs.dubly.ai/guides/supported-languages.md): The language codes you can dub into, per dubbing engine. - [Create a dub from a YouTube video](https://docs.dubly.ai/api-reference/create-dubs/create-dub-youtube.md): Downloads the video from YouTube, extracts metadata, charges credits based on duration, and starts the dubbing pipeline. - [Create a dub from a Google Drive video](https://docs.dubly.ai/api-reference/create-dubs/create-dub-google-drive.md): Checks the Google Drive file, takes its name and duration, charges credits based on that duration, and starts the dubbing pipeline. The file must be shared as "Anyone with the link" with downloading allowed. - [Create a dub from a video URL](https://docs.dubly.ai/api-reference/create-dubs/create-dub-url.md): Creates a dub from a publicly accessible video URL. A minimum credit charge (1 minute per language) is applied upfront — additional credits are charged once the actual duration is known. - [Get dub status and result URLs](https://docs.dubly.ai/api-reference/dubs/get-dub.md): Check the current status of a dub. Returns "Processing" while in progress, "Dubbed" with download URLs when complete, or "Error" if the dub failed. After a change in the editor ("Update"), the dub is re-rendered: the status is "Updating" without URLs until the new version is ready, then "Dubbed" aga… - [Delete a dub permanently](https://docs.dubly.ai/api-reference/dubs/delete-dub.md): Deletes the dub with all its languages, segments and stored files (videos, audio, subtitles, lip syncs), like "Delete" in the web app. - [Rename a dub or move it to a project](https://docs.dubly.ai/api-reference/dubs/patch-dub.md): Renames the dub and/or moves it into a project, like "Rename" and "Move to project" in the web app. Send title, project_id or both; a body with neither returns 400. Both are checked before anything is written: if one of them is invalid, neither is changed. A value that is already as stored is not wr… - [List the downloads of one language](https://docs.dubly.ai/api-reference/dubs/get-dub-downloads.md): Returns exactly the files the Download tab of the web app offers for one target language of a completed dub. Each entry has id, file_name (the same file name as a download in the web app), a signed url and expires_at (ISO 8601): the link is valid for 1 hour — the same as a download in the web app —… - [Change the volume of the original voice](https://docs.dubly.ai/api-reference/dubs/patch-dub-audio-settings.md): Sets how loud the original voice plays under the dubbed voice, like the audio settings on the dub page of the web app. The value is saved for the dub; if the dub has finished processing, every language is re-mixed with it right away — nothing is re-voiced and no credits are charged. While the re-mix… - [List the segments of one language](https://docs.dubly.ai/api-reference/dub-editing/get-dub-segments.md): Returns every segment of one target language of a completed dub, sorted by index, with its id (what PATCH …/segments takes), start and end in seconds as the editor shows them, source_text, target_text, speaker, is_muted, speech_rate, pending_revoice (engine v1: edited and waiting to be voiced at the… - [Correct segments of one language](https://docs.dubly.ai/api-reference/dub-editing/patch-dub-segments.md): Corrects source text, translation and/or speaker of up to 500 segments of one target language at once, with the web editor's own save logic. Every entry is checked before anything is written: an unknown, deleted or duplicate segment id, a field the dub's engine does not allow or an unknown speaker r… - [Save timeline edits of one language](https://docs.dubly.ai/api-reference/dub-editing/save-dub-timeline.md): One save of the web app's visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor's own save logic and limits. Engine v1 only (capability sup… - [Re-voice one segment](https://docs.dubly.ai/api-reference/dub-editing/regenerate-dub-segment.md): Re-voices one segment of a completed dub right away with its stored state — "Regenerate" in the web app's visual editor. The stored translation is spoken again (mode "revoice"). If the translation was cleared because POST /api/v1/dubs/{id}/segments/timeline changed the source text, the segment is fi… - [Get the render state of one language](https://docs.dubly.ai/api-reference/dub-editing/get-dub-update.md): Returns the render state of one language — the same fields as the language level of GET /api/v1/dubs/{id}/segments: pending_changes (edits that POST /api/v1/dubs/{id}/update would apply; v1: segments waiting for an update, v2: changes waiting for "Apply changes"), is_updating, update_status ("idle",… - [Apply pending edits and re-render](https://docs.dubly.ai/api-reference/dub-editing/start-dub-update.md): Applies the pending edits of the given languages. Engine v1 runs the editor's "Update": re-voices every waiting segment, merges the audio and renders the video. Engine v2 runs "Apply changes", which also carries corrected source texts over to every other language of the dub that is not busy: those l… - [Get lip-sync status and result URL](https://docs.dubly.ai/api-reference/lip-sync/get-lipsync.md): Check the current status of a lip-sync job. Returns "NotStarted" if lip-sync has never been triggered, "Processing" with the current pipeline step while running (step is one of "face_setup", "segmenting", "processing", "reconstructing"), "Synced" with the final video URL when complete, or "Error" if… - [Start lip-sync for a subdub](https://docs.dubly.ai/api-reference/lip-sync/start-lipsync.md): Starts the lip-sync pipeline for one target language of a dub. The dub must already be fully processed (status "Dubbed") — this includes waiting for a re-render after an editor update (status "Updating"). Credits are charged at 1 credit per minute of video, rounded up (at least 1 credit). The job ru… - [List the lip-sync blocks of one language](https://docs.dubly.ai/api-reference/lip-sync/get-lipsync-segments.md): Returns the lip-sync blocks of one target language of a completed dub — the lip-sync track of the web app's visual editor — in track order, each with its id (what PATCH /api/v1/dubs/{id}/lipsync/segments takes), start and end in seconds and enabled (true: the block shows the lip-synced video; false:… - [Switch lip sync on or off per block](https://docs.dubly.ai/api-reference/lip-sync/patch-lipsync-segments.md): Switches lip sync on or off for blocks of one target language and re-assembles the finished lip-sync video from the segments it already has — the visual editor's "Re-render" when only the lip-sync track changed. There is no POST /api/v1/dubs/{id}/update, no new lip-sync run and no credits. Send the… - [Get the burn-in state of one language](https://docs.dubly.ai/api-reference/subtitled-video/get-subtitled-video.md): Returns the burn-in state of one target language: status (null = never started, "aligning", "rendering", "ready" or "failed"), style and accent_color of the last run (accent_color is null for a style without an accent colour or when its default colour is used), error (only when "failed": what went w… - [Burn subtitles into the video of one language](https://docs.dubly.ai/api-reference/subtitled-video/start-subtitled-video.md): Starts burning subtitles into the video of one target language of a completed dub — the same burn-in as on the dub page of the web app. The base is the lip-sync video when the lip sync of this language is finished ("Synced"), otherwise the final dubbed video. The run is asynchronous: the answer's st… - [List your projects](https://docs.dubly.ai/api-reference/account/list-projects.md): Returns all projects owned by your account, newest first. Use the returned project IDs as project_id when creating a dub. - [List your custom voices](https://docs.dubly.ai/api-reference/account/list-custom-voices.md): Returns all custom voices configured for your account, newest first. Use the returned id as custom_voice_id when creating a dub. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.