Estimate the cost of a call
autoshort_estimate_costPrice a paid call BEFORE making it: pass {tool, arguments} — the tool name and the exact arguments you would send (or just {draftId} to price autoshort_render_draft). Returns the most credits it can commit, the balance it needs, whether the balance and this key's daily cap cover it, and when it is charged. Nothing is created or charged. For a clip tool (autoshort_generate_motion_clip, autoshort_generate_image_to_video) it also returns priceClass ("standard" | "lower"), standardCredits and lowerCredits (null when none) of exactly this call, and creditsThisAccountPays = credits: quote credits, never standardCredits. approxUsd: the credits converted to USD at what one credit is worth on your plan (a conversion of the plan price; only credits are charged). Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "autoshort_estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | e.g. autoshort_generate_video, autoshort_render_draft, autoshort_ugc_render_batch | |
| draftId | No | Shortcut: price autoshort_render_draft for this draft (same as {tool: "autoshort_render_draft", arguments: {draftId}}). | |
| arguments | No | The arguments you would pass to that tool. |