- Editing a dub:
GET /api/v1/dubs/{id}/segments,PATCH /api/v1/dubs/{id}/segments,POST /api/v1/dubs/{id}/segments/timeline,POST /api/v1/dubs/{id}/segments/{segmentId}/regenerate,POST /api/v1/dubs/{id}/update,GET /api/v1/dubs/{id}/update,GET /api/v1/dubs/{id}/lipsync/segments,PATCH /api/v1/dubs/{id}/lipsync/segments - Burning in subtitles:
POST /api/v1/dubs/{id}/subtitled-video - Changing the original-voice volume:
PATCH /api/v1/dubs/{id}/audio-settings
What counts
- Edits: every
PATCH /api/v1/dubs/{id}/segmentsthat actually changes a segment counts 1 for that segment, however many of its fields it changes. A segment re-translated into another language throughalso_retranslate_languagescounts 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
updatedofPOST …/segments/timelinethat 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 increatedstarts with 1 edit used; after a split, both halves have the original’s count + 1 — splitting never resets it. Every acceptedPOST …/segments/{segmentId}/regeneratecounts 1 for that segment. - Lip-sync applies: every
PATCH /api/v1/dubs/{id}/lipsync/segmentsthat 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 (appliedfalse) does not count. - Update rounds: every language that
POST /api/v1/dubs/{id}/updateactually 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-videoactually 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-settingsthat 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: with409when 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 — returns403 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).
What is left
Every answer that can be limited tells you how much is left:api_edits_remainingon every segment ofGET …/segments, every result ofPATCH …/segments, every created and updated entry ofPOST …/segments/timelineand inPOST …/regenerateapi_lipsync_applies_remaininginGETandPATCH …/lipsync/segmentsapi_update_rounds_remaininginGET …/segments,GET …/updateand every language result ofPOST …/updateapi_runs_remaininginPOSTandGET …/subtitled-videoapi_changes_remaininginPATCH …/audio-settingsand inaudio_settingsofGET /api/v1/dubs/{id}
Request size
One PATCH carries at most 500 segments, one timeline save at most 500 entries increated, 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.
