estimate an edited dialogue video
dialogue-videos_estimateEstimate the cost and credits for a lipsynced Edit Dialogue video before generating it. Returns USD cost, credits, frame count, and duration allowance.
Instructions
Quote the final lipsynced Edit Dialogue video for a finished preview without charging: returns estimatedGenerationCost in US dollars, estimatedCredits (1 credit = $0.01; null when the organization is billed in dollars), estimatedFrameCount and, when present, durationCheck (whether the plan and model allow that length). Call it before dialogue-videos_create with the same projectId, videoAssetId, dialogueEditId, model, options and organizationId, and show the user the quote; it holds only for that model and options. Not for other workflows (generations_estimate-cost) or what a past generation actually cost (generations_get-costs). It checks project and source access but creates no job, reserves no credits and does not guarantee admission. The API rejects a preview that is missing or not COMPLETED or COMPLETED_PARTIAL, and returns 422 cost_estimate_unavailable when the source duration cannot be resolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Lipsync model name from models_list, such as sync-3. Use the same model on dialogue-videos_create. | |
| options | No | Optional model controls. Omit any field to use its default. | |
| projectId | Yes | Project the Edit Dialogue work belongs to, from projects_create. | |
| videoAssetId | Yes | Saved VIDEO asset being edited. Use the videoAssetId dialogue-transcriptions_create returned when it made a copy. | |
| dialogueEditId | Yes | Id of the COMPLETED or COMPLETED_PARTIAL preview from dialogue-previews_create that the user approved; not a transcription or generation id. | |
| organizationId | No | Run only this call in another of the user’s Sync organizations, by id from organizations_list, when the user asks for it (for example “generate this in the Acme org”). The session keeps its organization; reads of the ids this call returns stay in this organization. Omit to use the session’s organization. |