Edit a video
edit_videoChange a short video with words: swap the subject, outfit, setting, style or weather while keeping the motion. OAuth uses site credits (from 127 credits per second with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.
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": {
"video_url": "<video_url>",
"prompt": "<prompt>"
},
"name": "edit_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model that can edit videos (list_models with category video shows them). Leave empty for the default, Kling O3. | |
| prompt | Yes | What to change, in plain words: the subject, outfit, setting, style or weather. What you don't mention stays the same. | |
| max_usd | No | API key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits. | |
| currency | No | Billing unit: USD for API keys; credits for OAuth (optional for existing OAuth clients). | |
| video_url | Yes | The clip to change (3 to 10 seconds works best): a popnow:// link from an earlier result, or a public https link. | |
| max_credits | No | OAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price. | |
| production_id | No | Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts. | |
| reference_image_urls | No | Optional reference pictures (https or popnow:// links) for a new character, outfit, object or place. |