estimate generation cost
generations_estimate-costEstimate lipsync, image-to-video, or translate-and-dub generation cost and check duration eligibility before creating a job or reserving credits.
Instructions
Estimate a lipsync, image-to-video or translate-and-dub generation and check duration eligibility; creates no job and reserves no credits. Use it before lipsync_create or dubbing_create, and price one representative item before batches_create. The base-rate estimate can be nonzero for a free account: read account_get-usage to check coverage and, when the whole request is covered, do not mention prices or request spending confirmation. Not for what a past generation cost (generations_get-costs, when available), the final Edit Dialogue video (dialogue-videos_estimate) or a translated-audio preview (translation-previews_estimate). Give one length: duration, or for replacement speech script or measured audioDuration, which replace duration; never quote the full source video length for a shorter replacement script. Without workflow=translate-and-dub the quote covers lipsync only, never the full translation workflow. Returns estimatedGenerationCost in USD, estimatedCredits for credit-billed organizations (null otherwise), estimatedFrameCount, durationCheck (whether that length fits the plan and model limits; a price does not guarantee admission), breakdown for translate-and-dub, and durationEstimate for script or audio quotes. When presenting a paid or unknown-coverage quote, explain durationEstimate, label script quotes approximate, show the breakdown, and disclose that speech synthesis and external provider charges are excluded.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "generations_estimate-cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Source video frame rate. When omitted, credit-billed organizations are quoted at 25, the rate generation admission holds credits at when the source frame rate cannot be read; other organizations at 30. | |
| model | Yes | Model name from models_list, such as sync-3; use the same model the create call will use. | |
| script | No | Replacement speech text. Estimates spoken duration without synthesizing audio. Use for script-driven lipsync instead of pricing the full source video. An approximate quote; final speech length may differ. | |
| duration | No | Billable output seconds, or source seconds for translate-and-dub. For replacement speech, supply script or measured audioDuration instead. Never use the source video length for a shorter replacement script. | |
| syncMode | No | The sync_mode the generation will use; only valid alongside script or audioDuration. For a video, cut_off bills the shorter of speech and videoDuration and silence the longer; images and other modes follow the speech length. | |
| workflow | No | translate-and-dub prices dubbing plus lipsync from the source duration in duration, and returns a breakdown with external provider charges excluded; it rejects script and audioDuration. Omit for lipsync only. | |
| visualType | No | Visual input type. Set image for image-to-video quotes; images always follow speech duration, including with cut_off or silence. Videos require videoDuration for those modes. | |
| audioDuration | No | Measured replacement audio duration in seconds. Prefer this over a script estimate once speech audio exists. | |
| videoDuration | No | Source video length in seconds. Needed with syncMode cut_off or silence when quoting script or audioDuration for a video; only valid alongside script or audioDuration, and rejected for an image. | |
| 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. | |
| reasoningEnabled | No | Quote with reasoning on. Only lipsync-2-pro supports it. |