AI Edit: create
create_ai_editPolish uploaded footage (captions, punch-ins, optional b-roll, SFX). ASYNC — returns a projectId; poll get_job. SPENDS CREDITS (~5 per 30s of source, +5 if broll=true; b-roll is off by default). Requires an r2Key from ai_edit_upload.
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": {
"sourceR2Key": "<sourceR2Key>",
"sourceFileName": "<sourceFileName>",
"sourceDurationSeconds": "<sourceDurationSeconds>",
"recipe": "<recipe>",
"captionStyle": "<captionStyle>",
"captionPosition": "<captionPosition>",
"sfxIntensity": "<sfxIntensity>",
"outputFormat": "<outputFormat>"
},
"name": "create_ai_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| broll | No | Cut in matching stock b-roll (+5 credits). Defaults to false | |
| notes | No | ||
| recipe | Yes | ||
| editStyle | No | ||
| sourceR2Key | Yes | r2Key from ai_edit_upload | |
| captionStyle | Yes | ||
| outputFormat | Yes | ||
| sfxIntensity | Yes | ||
| sourceFileName | Yes | ||
| captionPosition | Yes | ||
| sourceDurationSeconds | Yes | Source length in seconds (drives cost) |