Render an approved draft
autoshort_render_draftRender an approved draft into a short video after user confirmation, charging estimated credits upfront and returning a new video ID to poll until completion.
Instructions
Render an approved draft. Call ONLY after the user has seen the draft and said yes. Charges the draft's estimatedCredits now (40 with the default voice), before any rendering work; refunded automatically if the render fails for good. Narration is read verbatim and each scene shows its visual; targetDuration is recorded as requested, and the video runs as long as its narration takes to read (any mismatch was in the draft's warnings). Retry-safe: a repeated call returns the first submission and charges nothing. A short balance returns 402 and keeps the draft. If the account has no credits and has not yet had its free first video, this renders that video instead of failing: watermarked, labelled AI-generated, up to 30 seconds, standard voice, one per account, subject to the day's availability. The answer carries the new video id (not the draft id): poll that one. Rendering is asynchronous: poll autoshort_get_video every 20-30 seconds until status is COMPLETED or FAILED. If get_video returns blockedReason, stop polling and act on it (e.g. top up credits).
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": {
"draftId": "<draftId>"
},
"name": "autoshort_render_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | ||
| idempotencyKey | No | Optional; recorded with the submission. The draft itself can only be rendered once. |