create_basic_edit
Make a basic edit of an analyzed post and deliver it: takes an asset (by default the first one of the analysis' asset matching), lays the on-screen text the analysis read over it (same style as the video editor: white text, black outline), replaces its sound with the post's audio, and renders a 1080x1920 MP4 as long as the shorter of the two. The result is added to the asset library and returned with a download link valid 24h. Takes up to a couple of minutes. Get the post id from list_analyzed_posts; matched assets are in get_post_analysis (analysis.asset_matching) or search_assets. To send the finished reel to a poster, call assign_edit with the returned asset id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the analysis text to use (the analysis keeps an English and a French copy) | en |
| name | No | Name of the new asset. Empty = '@account · asset name · edit'. | |
| text | No | Text to lay over the video, lines separated by \n. Omit to use the on-screen text of the analysis; empty string = no text. | |
| post_id | Yes | Analyzed post id (UUID, from list_analyzed_posts) | |
| asset_id | No | Asset to edit (id from the analysis' matching or search_assets). Empty = the first matched asset. | |
| position | No | Where the text sits | top |