Generate a video (billable)
generate_videoCreates a billed video-generation task after you approve the estimated cost; returns a task ID to poll with get_task.
Instructions
BILLABLE: creates a paid video task (POST /v1/videos) charged per second to the user's APIKO balance. Only call after estimate_cost on the same input and the user's explicit approval of the model, duration, resolution and cost. Reference videos add billed seconds. Returns a task_id at once; poll with get_task (videos take minutes). Never call again to check progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Model request fields exactly as listed in get_model input_schema (e.g. {"prompt": "...", "resolution": "2k"}). Leave out model and async. | |
| model | Yes | Exact video model id. | |
| prompt | No | Shortcut for input.prompt; give the prompt once. | |
| max_cost_usd | No | Budget the user approved; the call is refused if the estimate (or its upper bound) is higher or cannot be computed. | |
| wait_seconds | No | Seconds to wait (default 0; videos take minutes, use get_task). | |
| client_request_id | No | Your id for this one approved request (8-96 chars of letters, digits, . _ -). Reusing it with the same input returns the earlier task instead of charging twice. | |
| reference_video_seconds | No | Total reference video length, for the cost check only; not sent. |