> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dubly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit limits

> How often the API lets you edit, update, lip-sync and subtitle a dub.

Editing a dub through the API, burning in subtitles and changing the original-voice volume charge no credits:

* **Editing a dub:** [`GET /api/v1/dubs/{id}/segments`](https://docs.dubly.ai/api-reference/dub-editing/get-dub-segments), [`PATCH /api/v1/dubs/{id}/segments`](https://docs.dubly.ai/api-reference/dub-editing/patch-dub-segments), [`POST /api/v1/dubs/{id}/segments/timeline`](https://docs.dubly.ai/api-reference/dub-editing/save-dub-timeline), [`POST /api/v1/dubs/{id}/segments/{segmentId}/regenerate`](https://docs.dubly.ai/api-reference/dub-editing/regenerate-dub-segment), [`POST /api/v1/dubs/{id}/update`](https://docs.dubly.ai/api-reference/dub-editing/start-dub-update), [`GET /api/v1/dubs/{id}/update`](https://docs.dubly.ai/api-reference/dub-editing/get-dub-update), [`GET /api/v1/dubs/{id}/lipsync/segments`](https://docs.dubly.ai/api-reference/lip-sync/get-lipsync-segments), [`PATCH /api/v1/dubs/{id}/lipsync/segments`](https://docs.dubly.ai/api-reference/lip-sync/patch-lipsync-segments)
* **Burning in subtitles:** [`POST /api/v1/dubs/{id}/subtitled-video`](https://docs.dubly.ai/api-reference/subtitled-video/start-subtitled-video)
* **Changing the original-voice volume:** [`PATCH /api/v1/dubs/{id}/audio-settings`](https://docs.dubly.ai/api-reference/dubs/patch-dub-audio-settings)

In return, the API allows at most 2 edits per segment and 2 update rounds per language of a dub, 2 subtitle burn-ins per language and 2 original-voice volume changes per dub, and 2 lip-sync applies per language. The limits are fixed and the same for everyone. Downloads, renaming, moving and deleting a dub have no limit.

| What is counted | Counted per | API limit |
| - | - | - |
| Edits — segment corrections, timeline saves and regenerates share them | segment | 2 |
| Update rounds | language | 2 |
| Lip-sync applies | language | 2 |
| Subtitle burn-ins | language | 2 |
| Original-voice volume changes | dub | 2 |

## What counts

* **Edits:** every `PATCH /api/v1/dubs/{id}/segments` that actually changes a segment counts 1 for that segment, however many of its fields it changes. A segment re-translated into another language through `also_retranslate_languages` counts 1 for that language's segment. Entries reported as `"unchanged"` or `"failed"` do not count.
* **Timeline saves and regenerates** count on the same edits: every segment in `updated` of `POST …/segments/timeline` that actually changes (start, length, speech rate, text or speaker) counts 1, at most 1 per segment and request; `"unchanged"` entries and deleted segments do not count. A segment in `created` starts with 1 edit used; after a split, both halves have the original's count + 1 — splitting never resets it. Every accepted `POST …/segments/{segmentId}/regenerate` counts 1 for that segment.
* **Lip-sync applies:** every `PATCH /api/v1/dubs/{id}/lipsync/segments` that actually re-assembles the lip-sync video counts 1 for that language, on a counter of its own. A PATCH in which every block already has the requested value (`applied` false) does not count.
* **Update rounds:** every language that `POST /api/v1/dubs/{id}/update` actually starts counts 1 for that language. `"nothing_to_apply"`, `"already_running"`, `"deferred"` and `"failed"` do not count.
* **Subtitle burn-ins:** every run `POST /api/v1/dubs/{id}/subtitled-video` actually starts counts 1 for that language. A start that fails with a server error (5xx) does not count, and parallel starts never go over the limit.
* **Original-voice volume changes:** every `PATCH /api/v1/dubs/{id}/audio-settings` that actually changes the value counts 1 for the dub. Sending the current value does not count, and neither does a change refused before anything is written or one whose save fails with a server error (5xx). Once the new value is saved, the change counts even if the request then fails: with `409` when another change was re-mixing a language at the same moment, with a server error (5xx) when the re-mix fails or after an unexpected error that may have left the value saved — the message says which.

## Only API calls count

Edits, regenerates, updates, lip-sync blocks, burn-ins and volume changes in the Dubly web app are not counted, do not reset the counters, and are never blocked by a reached API limit.

## When a limit is reached

A request that would go over a limit — for even one segment or language, or for the dub's volume changes — returns `403 FORBIDDEN`, naming the limit and the exhausted segments or languages. Nothing is changed or started and nothing is counted — all of it is still possible in the Dubly web app. A request that ends in `400`, `404` or `409` is not counted either — except a volume change whose new value was already saved (see [`PATCH /api/v1/dubs/{id}/audio-settings`](https://docs.dubly.ai/api-reference/dubs/patch-dub-audio-settings)).

## What is left

Every answer that can be limited tells you how much is left:

* `api_edits_remaining` on every segment of `GET …/segments`, every result of `PATCH …/segments`, every created and updated entry of `POST …/segments/timeline` and in `POST …/regenerate`
* `api_lipsync_applies_remaining` in `GET` and `PATCH …/lipsync/segments`
* `api_update_rounds_remaining` in `GET …/segments`, `GET …/update` and every language result of `POST …/update`
* `api_runs_remaining` in `POST` and `GET …/subtitled-video`
* `api_changes_remaining` in `PATCH …/audio-settings` and in `audio_settings` of `GET /api/v1/dubs/{id}`

## Request size

One PATCH carries at most 500 segments, one timeline save at most 500 entries in `created`, `updated` and `deleted` together (more returns `400`). Split larger corrections into several requests — that costs nothing extra, because the limit is counted per segment, not per request.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.